Friday, March 29, 2013

Free VPN connection: OpenVPN on Ubuntu 12.04 with SecurityKISS

Came across SecurityKiss who offer 300MB per day VPN free.

Setting up an account is easy, and then you need to get it going.

1. Log into the client area and then click 'download' and then 'linux'.




This gets you a zip file with some files in it. So unzip

2. Check if you have IP is set up:


    sudo nano /proc/sys/net/ipv4/ip_forward

it needs to be "1"

and


    sudo nano /etc/sysctl.conf

add


    net.ipv4.ip_forward = 1

at the bottom

3. Install the Open VPN GUI


    sudo apt-get install openvpn network-manager-openvpn

4. Start the network configuration, by clicking on the wireless symbol in the menu bar, dragging down and selecting "VPN Connections" > "Configure VPN" and then "Add"

5. Select OpenVPN and then "create"




6. Put in the following.




In the Gateway box I put the IP for LA 199.229.232.42

Then load the files you unzipped earlier

User Certificate = "client.crt"
CA certificate = "ca.crt"
Private Key = "client.key"


7. Click Advanced




Make the gateway port 443

and

enable "Use a TCP connection"

8. Click OK and then Save

9. Then from the wireless / network connection icon you can select the new VPN connection. For me it takes about 13 seconds to connect



10. For bonus points you can monitor the sys log and see whats going on


    sudo tail -f /var/log/syslog

I would guess this works with other Linux distros as well.

4 comments:

previouslysilent said...

You don't need to turn on IP forwarding for the openvpn client unless it is acting as a gateway for other hosts.
Anyway if you want to turn it on simply
echo 1 >
/proc/sys/net/ipv4/ip_forward


And you'd need to use iptables masquerade too on the tun0 device.

Steve Mansfield said...

ahhh OK, thanks

previouslysilent said...

If you want other hosts to use the device with the openvpn:
iptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE
This makes it NAT all connections going over the vpn tunnel.

You may want to consider putting firewall rules in place to protect you from the other end of the vpn tunnel from attacking you.. treat it like a WAN connection.

Muhammad Amir said...

Setting up an account vpn tunnel is easy, and then you need to get it going.