Externalized custom post-up commands.
This commit is contained in:
parent
a27a7194fa
commit
2fee11611b
@ -28,11 +28,7 @@ trap "shut_down" SIGINT SIGTERM SIGKILL
|
|||||||
# start service in background here
|
# start service in background here
|
||||||
start_openvpn
|
start_openvpn
|
||||||
sleep 3
|
sleep 3
|
||||||
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
|
test -f /root/post-up.sh && /root/post-up.sh
|
||||||
# L2TP route
|
|
||||||
ip route add 192.168.2.0/24 via 172.31.1.3 dev eth0
|
|
||||||
#ip route add 192.168.1.0/24 via 192.168.2.1 dev eth0
|
|
||||||
#bash
|
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user