Make OpenVPN connect on Ubuntu startup and then when connected, run a script as su
Hey (That title was a mouthful)
I want that OpenVPN makes a connection when Ubuntu starts up and when the connection is up and running, to run a small script as su(peruser) without any user intervention. How can I acomplish this? Thank you |
Quote:
Make sure that you've generated a pre-shared key that both sides of the vpn connection will use. configure the openvpn config file to use the keys and to use ip addresses to talk to each other. to run a script w/superuser privileges, just run it as root. create a script in /etc/init.d/ and configure it to start after your openvpn connection is up. |
Quote:
I dont use preshared keys; Im using certified based OpenVPN connections...... Yes I imagine thats the way to do it but how do I configure it to start after my OpenVPN connection is up?? |
Quote:
Quote:
Quote:
http://ubuntuforums.org/showthread.php?t=1609579 |
All times are GMT -5. The time now is 03:15 PM. |