mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
12 lines
199 B
Bash
Executable File
12 lines
199 B
Bash
Executable File
#!/bin/sh -e
|
|
#
|
|
# entrypoint for strongswan
|
|
#
|
|
# - VPN_DEVICE
|
|
# - VPN_NETWORK
|
|
#
|
|
|
|
/init.sh
|
|
iptables -t nat -A POSTROUTING -s ${VPN_NETWORK} -o ${VPN_DEVICE} -j MASQUERADE
|
|
exec ipsec start --nofork "$@"
|