I'm running a centos6 machine with openvpn-2.3.2-2.el6.x86_64, the machine is on 172.16.1.x 255.255.0.0, this is my server.conf:
Code: Select all
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
tls-auth ta.key 0
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
cipher AES-256-CBC
comp-lzo
persist-key
persist-tun
user nobody
group nobody
status openvpn-status.log
verb 3
#push "redirect-gateway def1"
push "route 172.16.0.0 255.255.0.0"
push "route 172.16.1.0 255.255.0.0"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 5 30
log /var/log/openvpn.log
Code: Select all
ERROR: Linux route add command failed: external program exited with error status: 2