I tried to install OpenVPN and I found the process long and complicated and at the end, I had issues.
I searched on the forum for an alternative like hamachi, neorouter and found nothing useful. I was able to setup Neorouter but I had few issues and I discovered SoftEther so I decided to give it a try.
Here is what you need to do to install a SoftEther VPN that will give you access to the server remotely and securely or you can also create a VPN bridge that will give you access to the complete remote network.
I need feedback from FreeNAS guru for advice regarding the security and/or configuration.
More info here regarding the installation: https://www.softether.org/4-docs/1-...3_Install_on_Linux_and_Initial_Configurations
First, I'll do that in a jail because it's easy to try again or disable if needed.
So create a jail with the FreeNAS GUI, jails, add jail and give a name.
When the jail is created, open a shell inside this jail.
Execute commands:
Then go to http://www.softether-download.com/en.aspx?product=softether, select softether VPN server, FreeBSD, x64 and copy download link:
http://www.softether-download.com/f...9613-beta-2016.04.24-freebsd-x64-64bit.tar.gz
Execute:
Select 1 for the license agreement, 1 for the understanding of the license agreement, and 1 to agree the license agreement.
Now move everything to /usr/local/
Double check permissions:
Now create a startup script at /etc/rc.d/vpnserver with nano (pkg install nano) or ee
change permissions:
add in /etc/rc.conf
Restart Jail and open shell
execute:
Now on your computer, download and install the SoftEther VPN Server Manager at : http://www.softether-download.com/en.aspx?product=softether
http://www.softether-download.com/f...613-beta-2016.04.24-windows-x86_x64-intel.exe
Everything else will be made with the server manager.
Start the SoftEther VPN Server Manager,
Connect to the IP address of the jail with no password. At first login, it will ask you to generate the password.
Then select Remote access VPN server
It will propose you to automatically create a DNS address for you at softether.net.
If you don't want to have any configuration to make on your router, you can also setup a VPN Azure cloud address for free. If not, you'll have to open port 442, 500, 4500 and maybe others.
Create your users at this screen and to not forget to setup the local bridge by selecting the epair adapter.
You can create users with password authentication only but certificate is a better idea.
After that, download the SoftEther VPN client, enter the VPN Azure cloud address or your DNS address, username and password and you're ready to go!
I searched on the forum for an alternative like hamachi, neorouter and found nothing useful. I was able to setup Neorouter but I had few issues and I discovered SoftEther so I decided to give it a try.
Here is what you need to do to install a SoftEther VPN that will give you access to the server remotely and securely or you can also create a VPN bridge that will give you access to the complete remote network.
I need feedback from FreeNAS guru for advice regarding the security and/or configuration.
More info here regarding the installation: https://www.softether.org/4-docs/1-...3_Install_on_Linux_and_Initial_Configurations
First, I'll do that in a jail because it's easy to try again or disable if needed.
So create a jail with the FreeNAS GUI, jails, add jail and give a name.
When the jail is created, open a shell inside this jail.
Execute commands:
pkg update
(maybe optional) pkg upgrade
(maybe optional) pkg install wget
pkg install lang/gcc
(this one takes a long time).Then go to http://www.softether-download.com/en.aspx?product=softether, select softether VPN server, FreeBSD, x64 and copy download link:
http://www.softether-download.com/f...9613-beta-2016.04.24-freebsd-x64-64bit.tar.gz
Execute:
cd /tmp
wget http://www.softether-download.com/files/softether/v4.21-9613-beta-2016.04.24-tree/FreeBSD/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.21-9613-beta-2016.04.24-freebsd-x64-64bit.tar.gz
tar zxvf softehter*
cd vpnserver
make
Select 1 for the license agreement, 1 for the understanding of the license agreement, and 1 to agree the license agreement.
Now move everything to /usr/local/
cd ..
mv vpnserver /usr/local
Double check permissions:
cd /usr/local/vpnserver/
chmod 600 *
chmod 700 vpncmd
chmod 700 vpnserver
Now create a startup script at /etc/rc.d/vpnserver with nano (pkg install nano) or ee
Code:
#!/bin/sh . /etc/rc.subr name="softether" rcvar="softether_enable" start_cmd="softether_start" stop_cmd="softether_stop" softether_start(){ cd /usr/local/vpnserver ./vpnserver start } softether_stop() { cd /usr/local/vpnserver ./vpnserver stop } load_rc_config $name run_rc_command "$1"
change permissions:
chmod 755 /etc/rc.d/vpnserver
add in /etc/rc.conf
Code:
softether_enable="YES"
Restart Jail and open shell
execute:
ps aux
to see if vpnserver is running.Now on your computer, download and install the SoftEther VPN Server Manager at : http://www.softether-download.com/en.aspx?product=softether
http://www.softether-download.com/f...613-beta-2016.04.24-windows-x86_x64-intel.exe
Everything else will be made with the server manager.
Start the SoftEther VPN Server Manager,
Connect to the IP address of the jail with no password. At first login, it will ask you to generate the password.
Then select Remote access VPN server

It will propose you to automatically create a DNS address for you at softether.net.
If you don't want to have any configuration to make on your router, you can also setup a VPN Azure cloud address for free. If not, you'll have to open port 442, 500, 4500 and maybe others.
Create your users at this screen and to not forget to setup the local bridge by selecting the epair adapter.

You can create users with password authentication only but certificate is a better idea.
After that, download the SoftEther VPN client, enter the VPN Azure cloud address or your DNS address, username and password and you're ready to go!
Last edited by a moderator: