Thursday, October 26, 2017

OpenVPN Jumpstart

Yesterday I badly needed to establish VPN connection between two computers, nothing extraordinary, one server and one client. In order to accomplish this quite trivial task I created a key:

openvpn --genkey --secret whatever.key

and two configuration files for the server(192.168.1.1):

dev tun
ifconfig 10.0.0.1 10.0.02
secret whatever.key

and the client(192.168.1.2) respectively:

remote 192.168.1.1
dev tun
ifconfig 10.0.0.2 10.0.01
secret whatever.key

Then I just ran:

openvpn --config server.conf
openvpn --config client.conf

and surprisingly it worked :)

By the way, if you have some kinda firewall or something you might need to consider opening port 1194.

No comments:

Post a Comment