Настройка OpenVPN

с одной стороны

# cat lt_dragomir.conf
proto udp
dev tun0
local xx.xx.243.118
port 5003
comp-lzo
verb 3
user openvpn
group openvpn
ifconfig 10.0.0.3 10.0.0.4
secret /etc/openvpn/keys/lt_dragomir.key
auth MD5
cipher DES-CBC
tun-mtu 1500
persist-key
persist-tun
ping 30
ping-restart 120
log        /var/log/openvpn_dragomir.log

на другой стороне

# cat home_lt.conf 
proto udp
dev tun3 
port 5003 
comp-lzo 
verb 3 
#ping-restart 120
persist-tun 
persist-key 
user nobody
group nobody
remote xx.xx.243.118
ifconfig 10.0.0.4 10.0.0.3 
route 10.0.0.2 255.255.255.255 10.0.0.3
route 10.98.98.0 255.255.255.0 10.0.0.3
route 176.16.200.0 255.255.255.0 10.0.0.3
route 192.168.201.0 255.255.255.0 10.0.0.3
secret /etc/openvpn/keys/home_lt.key 
auth MD5 
cipher DES-CBC 
tun-mtu 1500 
#writepid /var/run/openvpn_lt.pid
log /var/log/openvpn_lt.log

генерим ключи так:

openvpn --genkey --secret static.key