Here's the link from before: http://openvpn.net/static.html
On the client I have this in /etc/openvpn/client.conf
Code:
dev tun
remote myvpn.example.com
ifconfig 10.1.0.2 10.1.0.1
port XXXXX
secret /etc/openvpn/my.key
ping 15
ping-restart 45
ping-timer-rem
persist-tun
persist-key
verb 3
On the server I have basically the same file without the "remote" directive and with the IP addresses reversed in the "ifconfig" directive. (Syntax is local address followed by remote address.)
The port is an arbitrary number > 1023 and < 65535 not already in use. I often create mnemonics with a phone touch-pad, e.g, "crazy" => "27299". That port must be open on the VPS. It could be firewalled by default. If you are using iptables on the VPS, and your server has a fixed public IP, I'd use an iptables rule like this:
Code:
/sbin/iptables -I INPUT -s your.servers.public.ip -p udp --dport 27299 -j ACCEPT
If that doesn't work at first, try eliminating the "-s your.servers.public.ip" and allow all comers until you get this working.
Bookmarks