Script 'up' after accepting pushed settings
Posted: Wed Jul 22, 2015 1:15 am
I need to run a 'up' script on the client only after the setting routings, which came from the server.
Without this routings, service, who started from the script, can not make the necessary connections to it.
Here is a fragment of the log file.
How can I execute the script only after will be installed all the changes that came with "push" from the server?
Ogogon.
Without this routings, service, who started from the script, can not make the necessary connections to it.
Here is a fragment of the log file.
It is clearly seen that the first script is run, and then set routes that send from the server.Fri Jul 17 15:58:50 2015 /etc/openvpn/scripts/client.up tun0 1500 1542 10.10.100.16 10.10.100.15 init
mount error: could not resolve address for server1.net.ru: Unknown error
Fri Jul 17 15:59:15 2015 /usr/sbin/ip route add 10.10.100.0/24 via 10.10.100.15
Fri Jul 17 15:59:15 2015 /usr/sbin/ip route add 172.16.0.0/16 via 10.10.100.15
Fri Jul 17 15:59:15 2015 /usr/sbin/ip route add 172.17.0.0/16 via 10.10.100.15
Fri Jul 17 15:59:15 2015 /usr/sbin/ip route add 172.18.0.0/16 via 10.10.100.15
Fri Jul 17 15:59:15 2015 Initialization Sequence Completed
How can I execute the script only after will be installed all the changes that came with "push" from the server?
Ogogon.