Docker image for SoftEther VPN
This will deploy a fully functional SoftEther VPN server as a docker image.
Available on Docker Hub.
docker pull frosquin/softether
docker run -d --net host --cap-add NET_ADMIN --name softether frosquin/softether
With external config file:
touch /etc/vpnserver/vpn_server.config docker run -d -v /etc/vpnserver/vpn_server.config:/usr/local/vpnserver/vpn_server.config --net host --cap-add NET_ADMIN --name softether frosquin/softether
If you want to keep the logs in a data container:
docker volume create --name softether-logs docker run -d --net host --cap-add NET_ADMIN --name softether -v softether-logs:/var/log/vpnserver frosquin/softether
All together now:
touch /etc/vpnserver/vpn_server.config docker volume create --name softether-logs docker run -d -v /etc/vpnserver/vpn_server.config:/usr/local/vpnserver/vpn_server.config -v softether-logs:/var/log/vpnserver --net host --cap-add NET_ADMIN --name softether frosquin/softether
@Combro, can i contact you somehow? i have no idea how i can add the tap device to my docker container. i would use the docker from frosquin, but i dont know how to log in or to change credentials to access the admin console. i run my container external on an XEN guest.
Hi, i used the "--net host" mode and softether is running fine, the clients can use DHCP from the remote physical router so i don't net secure NAT.
The problem is that i can ping/reach the remote physical router (192.168.178.1) and other client machines on the same subnet, but i can not reach the server itself where softether is running on? In my case the server is a synology NAS using 192.168.178.2, yet i can not remotely ping the server or reach any of the services running on the NAS? I can reach the router web interface just fine or any services not running on the server, but i want the clients to have access to the server services ofc.
Any hint on why this happens?
@frosquin thank you
@zcirill if you are using --net host, port mapping has little use. You need to change it in the softether admin interface.
@frosquin How to change public port 443 to 444 ?
I try docker run -p 0.0.0.0:444:443 -d -v /etc/vpnserver/vpn_server.config:/usr/local/vpnserver/vpn_server.config --volumes-from vpn-server-logs --net host --name vpn-server frosquin/softether but it not working
Thou I see i've used privileged = true ;-)
I fixed it @frosquin.
Take a look at my forked softether from yours.
I used supervisor for running the service instead so people can add some other tasks.
What I've done is adding tap_soft in the config, then start a dhcp server (ics dhcp server) on the interface and it works flawless, even you can give a static ip to a ethernet mac address.
If you need help jokester contact me ;-)
@jokester and @combro2k I'll try having a look at this somewhere this week.
In the mean time, if you find the answer yourself, please do leave a comment about it.
I had the same when I tried to run it with --net host
perhaps it has to do something with that?
On my own build I didn't had that issue when I didn't use --net host