Wow, I have never thought of myself as stupid.

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
tinbilly
Posts: 2
Joined: Mon Jan 01, 2018 12:48 pm

Re: Wow, I have never thought of myself as stupid.

Post by tinbilly » Mon Jan 01, 2018 1:03 pm

You could refer to this https://www.dd-wrt.com/phpBB2/viewtopic.php?t=177532. I use a Netgear R6250 on dd-wrt kong ac mod.

If you attach a 1-partition usb thumbdrive to your router, that only one partition (/dev/sda1) will be mounted to /tmp/mnt/sda1. Then you should change all "sda2" to "sda1".

In step "1.1.2 Run the following line-by-line, using PuTTY", please run the following line-by-line (please note my R6250 is an armv7 router). Depending on your specific router, you might have to change to another platform (http://entware.net/about/)
wget -O - http://pkg.entware.net/binaries/armv7/i ... install.sh | sh
wget -O - http://pkg.entware.net/binaries/armv7/i ... upgrade.sh | sh
opkg install http://pkg.entware.net/binaries/armv7/g ... v7soft.ipk
opkg install http://pkg.entware.net/binaries/armv7/s ... v7soft.ipk

Visit http://entware.net for more other Entware-ng packages for your router.

To start vpnserver, run the following using PuTTY
/mnt/sda2/opt/etc/init.d/S05vpnserver start

Refer to SoftEther VPN server tutorial at:
http://bouli.ihostfull.com/?i=1

For softethervpn to suvive a router reboot, please put the following in the router's startup command (Management-Commands).

#! /bin/sh
sleep 10
if [ -f /mnt/sda1/.optware.enable ]; then
cp -a /etc sda1/
cp -a /tmp/root /mnt/sda1
mount -o bind /tmp/mnt/sda1/bin /bin
mount -o bind /tmp/mnt/sda1/etc /etc
mount -o bind /tmp/mnt/sda1/lib /lib
mount -o bind /tmp/mnt/sda1/opt /opt
mount -o bind /tmp/mnt/sda1/usr /usr
mount -o bind /tmp/mnt/sda1/root /tmp/root
/opt/etc/init.d/rc.unslung start
sleep 15
/opt/etc/init.d/S05vpnserver start
else
exit
fi
else
exit
fi

if [ -d /opt/usr ]; then
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'
export PATH='/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/sbin:/usr/sbin:/usr/bin'
else
exit
fi

Post Reply