Page 1 of 1

OPENVPN

Posted: Sat 20 Feb 2010, 14:53
by nkanga
Help me for openvpn

Pentium II 233MHz Ram 192MB

Puppy work 100%

Help me only for install OPENVPN


Thank

Posted: Fri 07 May 2010, 16:43
by MU
install the openvpn pet from here:
http://www.murga-linux.com/puppy/viewtopic.php?t=13665

I have a openvpn configuration file with additional certificate files.
These I got from my account on the Astaro-firewall appliance from the company where I work.

I extracted them to /root/openvpn/.

Then I can create the tunnel with such a command:

Code: Select all

modprobe tun
cd /root/openvpn/mu@212.56.21.96/
openvpn --config mu@212.56.21.96.ovpn
Then I enter username and password, and the tunnel establishes.
Now I can ping the remote machines in their private network in a second terminal, like

Code: Select all

ping 172.16.4.10
I also can open the websites from the companies internal webserver by typing in a browser something like
http://172.16.4.10

I can connect to a windows desktop by typing:

Code: Select all

tsclient -f 
You can find a tsclient pet here:
http://www.murga-linux.com/puppy/viewtopic.php?t=31702

To simplify the steps, I wrote 2 scripts:

/usr/bin/mytunnel

Code: Select all

#!/bin/bash

rxvt -e "/root/openvpn/connect" &

tsclient -f &
/root/openvpn/connect

Code: Select all

#!/bin/bash

modprobe tun
cd /root/openvpn/mu@212.56.21.96/
openvpn --config mu@212.56.21.96.ovpn

read a
If you drag /usr/bin/mytunnel to your desktop, you can connect with a mouseclick, and just need to enter username and password in the terminal-window, and the values for the remote windows desktop in tsclient (save the settings there for future).

Mark