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

restart loop, iptables, 10-routing.sh #5

Closed SuperHofstad closed 4 years ago

SuperHofstad commented 4 years ago

[s6-finish] sending all processes the TERM signal.

[s6-finish] sending all processes the KILL signal and exiting.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

[s6-init] ensuring user provided files have correct perms...exited 0.

[fix-attrs.d] applying ownership & permissions fixes...

[fix-attrs.d] done.

[cont-init.d] executing container initialization scripts...

[cont-init.d] 10-routing.sh: executing...

Creating postrouting rules.

iptables v1.8.3 (legacy): host/network `10.0.0.0.0' not found

Try `iptables -h' or 'iptables --help' for more information.

[cont-init.d] 10-routing.sh: exited 2.

[cont-finish.d] executing container finish scripts...

[cont-finish.d] done.

[s6-finish] waiting for services.

[s6-finish] syncing disks.

[s6-finish] sending all processes the TERM signal.

[s6-finish] sending all processes the KILL signal and exiting.

I checked the code in 10-routing.sh, but to my limited knowledge about linux and network, it looks good.

This is the code it should run: "iptables -t nat -A POSTROUTING -s ${SRVIPSUBNET:-10.0.0}.0/24 -j MASQUERADE"

Haven't tried on an other server yet, but this is using the unmodified(almost, see pull request) "Deploy via Docker" command set

cenk1cenk2 commented 4 years ago

Srvipsubnet variable shall not have the last hexadecimal part I will correct it on the readme. So it should be like -e SRVIPSUBNET=10.0.0 That was a typo on my behalf sorry. Please try and see if that works.