Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using ubuntu 12.04 to connect an openvpn server.

Two scripts update-resolv-conf and vpn-up.sh in /etc/openvpn should be executed then the connection established.

The commands following added to the configure file client.ovpn to make the two scripts run when openvpn connects and stop when openvpn disconnects:

script-security 2
up /etc/openvpn/update-resolv-conf
up /etc/openvpn/vpn-up.sh
down /etc/openvpn/vpn-down.sh
down /etc/openvpn/update-resolv-conf

However, during connection only the first script executed. And every time I have to run the script vpn-up.sh individualy by hand. So I want to know how to get them both work when openvpn established?

Thanks.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.