sype DD-WRT Novice
Joined: 21 Jan 2015 Posts: 6
|
Posted: Fri Mar 03, 2017 4:06 Post subject: SoftEther Working after reboots *Special Way with JFFS2* |
|
Hi all,
This is one of my first posts here,
and i'm a french speaker, so please give me a chance.
So this is how i got Softether server working across
reboots of dd-wrt, at least most of the times... (i still make a backup of vpn_server.config file for sure).
First, my tests are using a Linksys EA6900.
Second, you need to activate "JFFS2 Support" if
"Administration" tab.
Then, make sure you also have SSHd enabled in "Services" tab.
Then, i uploaded (with WinSCP software) a clean, empty file in "/jffs/tmp/var/lib/vpn_server.config"
Then, i activated ONLY *Server* in the "SoftEther VPN" in "Services/VPN" tab.
Then, i added a Command in "Administration/Commands" tab.
First in the command box, then "Run Commands", then "Save Startup".
---* here is the beggining of the text of the command *---
vpnserver stop
killall vpnserver
cd /tmp
rm vpn_server.config*
cd /tmp/var/lib/
rm vpn_server.config*
ln -s /jffs/tmp/var/lib/vpn_server.config /tmp/var/lib/vpn_server.config
vpnserver start
---* here is the end of the text of the command *---
Then, i connected to the VPN server with the "Softether VPN Server Manager for Windows",
downloaded from softether web site.
(http://www.softether-download.com/en.aspx?product=softether)
Hostname is the local ip adresse of your router, mine was 192.168.1.3.
Port number is generaly 5555 (or 443) when at basic first time usage.
then, make all the settings you wish
(there is a lot of things that can be done here, have fun!)
then, make a backup of you config file, doing this :
Click on "Edit Config" once managing your server, then click "Save fo File".
I suggest you also re-"Import File and Apply" the file you just saved...
Then go back to WinSCP to "/jffs/tmp/var/lib/" and make a copy of
"vpn_server.config" to, i juggest "vpn_server2.config".
This is working for me, most of the reboots...
good luck to you, and keep us informed if you have better ways to do it.
I can update this *bigginer guide*...
thanks
SyPE |
|
Offal DD-WRT Novice
Joined: 29 Jun 2011 Posts: 9
|
Posted: Sun Jun 04, 2017 5:36 Post subject: |
|
Thx for your tip to store the config in /jffs.
Instead of restarting the VPN server and file copies, you can just reload the configuration using vpncmd to persist the configuration across reboots.
1) Copy your vpn_server.config to the your router's /jffs directory.
2) In your startup script, paste the following. The commands below will force reload the VPN configuration from the /jffs parition. Also create a symlink to the configuration in /tmp.
Code: | vpncmd localhost:5555 /SERVER /PASSWORD: /CMD ConfigSet //jffs//vpn_server.config
ln -s /jffs/vpn_server.config /tmp/vpn_server.config
|
|
|