Public | Automated Build

Last pushed: a year ago
Short Description
Straight forward docker image for the SoftEther VPN
Full Description

Docker image for SoftEther VPN

This will deploy a fully functional SoftEther VPN server as a docker image.

Available on Docker Hub.

Download

docker pull frosquin/softether

Run

Simplest version:

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
Docker Pull Command
Owner
frosquin
Source Repository

Comments (11)
g4njawizard
2 years ago

@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.

andy2222
2 years ago

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?

yumin9822
2 years ago

The last step, Don't forget to config your softether server by the tools here
http://www.softether-download.com/en.aspx?product=softether

zcirill
3 years ago

@frosquin thank you

frosquin
3 years ago

@zcirill if you are using --net host, port mapping has little use. You need to change it in the softether admin interface.

zcirill
3 years ago

Good day.
@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

combro2k
3 years ago

@frosquin @jokester
Thou I see i've used privileged = true ;-)

combro2k
3 years ago

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 ;-)

frosquin
3 years ago

Hi,

@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.

Thanks

combro2k
3 years ago

@jokester
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