cenk1cenk2 / docker-softether-vpnsrv

SoftEther VPN Server with DNSMASQ DHCP Server or bridge mode connection for VPN-to-site setup.
29 stars 15 forks source link

no internet access in clients #17

Closed malikshi closed 2 years ago

malikshi commented 2 years ago

hi set-up docker like this

docker create \ --name=softether-vpnsrv \ -e TZ=Asia/Jakarta \ -e SRVIPSUBNET=10.255.0 \ -e SRVIPNETMASK=255.255.255.0 \ -p 110:110/tcp \ -p 992:992/tcp \ -p 5555:5555/tcp \ -p 1194:1194/udp \ -p 25000:25000/udp \ -p 500:500/udp \ -p 4500:4500/udp \ -p 1701:1701/tcp \ -v $PWD/cfg/vpn_server.config:/cfg/vpn_server.config \ -v $PWD/cfg/dnsmasq.conf:/cfg/dnsmasq.conf \ -v /etc/letsencrypt/:/etc/letsencrypt/ \ -v /etc/ssl/:/etc/ssl/ \ --restart unless-stopped \ --privileged \ cenk1cenk2/softether-vpnsrv:latest

then setting hub and importing letsencrypt certs. there is trouble after I set the whole thing in server, clients can't connect or get assign IP from server. and trying reboot server then login softether manager(server) in windows and all the setting removed, just what happened, did I miss something?

malikshi commented 2 years ago

solved: no need to add

-v $PWD/cfg/vpn_server.config:/cfg/vpn_server.config -v $PWD/cfg/dnsmasq.conf:/cfg/dnsmasq.conf

if using vpncmd to setting up a server

malikshi commented 2 years ago

still need help docker cp

malikshi commented 2 years ago

All done

cenk1cenk2 commented 2 years ago

To make stuff persistent you should make a persistent volume for config. If nothing is found it will create that configuration.

docker create
--name=softether-vpnsrv
-e TZ=Asia/Jakarta
-e SRVIPSUBNET=10.255.0
-e SRVIPNETMASK=255.255.255.0
-p 110:110/tcp
-p 992:992/tcp
-p 5555:5555/tcp
-p 1194:1194/udp
-p 25000:25000/udp
-p 500:500/udp
-p 4500:4500/udp
-p 1701:1701/tcp
-v $PWD/cfg/:/cfg/
-v /etc/letsencrypt/:/etc/letsencrypt/
-v /etc/ssl/:/etc/ssl/
--restart unless-stopped
--privileged
cenk1cenk2/softether-vpnsrv:latest

This would be more useful in the docker setup, so you dont have to copy paste stuff each time. But it is advised that you use a docker-compose specification.

malikshi commented 2 years ago

I'm too newb for docker. Thank you for the advice.