Добрый день. У меня стоит archlinux на raspberry pi, на нем поставил openvpn со следующими настройками сервера:
port 1194
proto tcp-server
dev tun0
ca /etc/openvpn/cert/ca.crt
cert /etc/openvpn/cert/server.crt
key /etc/openvpn/cert/server.key
dh /etc/openvpn/cert/dh2048.pem
server 192.168.10.0 255.255.255.0
push "route 192.168.0.0 255.255.255.0"
tls-server
tls-auth cert/ta.key 0
tls-timeout 120
auth MD5
cipher AES-128-CBC
client-to-client
keepalive 10 120
max-clients 5
user nobody
group nobody
persist-key
persist-tun
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
verb 3
mute 20
#crl-verify /etc/openvpn/crl.pem
Клиент у меня на Windows 7 x64 с следующими настройками
client
dev tun
proto tcp-client
remote 111.222.333.444
port 1194
resolv-retry infinite
ca "ca.crt"
cert "client.crt"
key "client.key"
tls-client
tls-auth "ta.key" 1
auth MD5
cipher AES-128-CBC
ns-cert-type server
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 3
mute 20
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.20 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.10.0 192.168.10.2 255.255.255.0 UG 0 0 0 tun0
192.168.10.2 * 255.255.255.255 UH 0 0 0 tun0