Posts

Showing posts with the label OpenVPN

[Level 2] Use expect to run openvpn.

#!/usr/bin/expect set password [lindex $argv 0] spawn sudo openvpn --script-security 2 --config /home/stanley/VPN/MyVPN_config/MyVPN.ovpn expect Enter\ Private\ Key\ Password: sleep 1 send $password sleep 1 interact Test run: # ./openvpn.expect mypassword Wish this helps.  regards, Stanley Huang

[Level 1] Install openvpn in Ubuntu

How to setup openvpn client in Ubuntu? The steps as following: 1. Install openvpn package: # apt-get install openvpn 2. Setup client configuration: # vi ./my.ovpn 3. Run openvpn with root permission: # sudo openvpn --config ./my.ovpn Wish this helps. regards, Stanley Huang

[Level 2] Setup OpenVPN in OpenSolaris

Down pkgutil from Blastwave: http://sourceforge.net/projects/pkgutil/ Prepare environment: # unzip ./pkgutil-2.0.zip # mkdir -p /var/opt/csw/ # ln -s `pwd` /var/opt/csw/ Install OpenVPN : # /opt/csw/bin/pkgutil -i tun tap # /opt/csw/bin/pkgutil -i openvpn Modify config: # cd  /etc/csw/openvpn # cp ./openvpn.conf.CSW ./openvpn.conf # vi ./openvpn.conf Setting vpn client:  client dev tun proto tcp remote vpn.server.hostname 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert client1.crt key client1.key comp-lzo verb 3 Wish this helps.  regards,  Stanley Huang