PDA

View Full Version : [Q] Help with OpenVpn client and dhcp options - foreign_option



hyperplus
10th May 2012, 03:02 AM
Ok, I am frustrated with how much time I has spent trying to figure out OpenVpn and DCHP / DNS configurations...

So far I can only connect vpn to work BY MANUALLY setting ip and dns (@resolv.conf). But with this setup I can't remote into my pc. I can ping my pc name, but not pcName.domainAddress which I find strange.

I can connect OK from Windows with almost the same client config file. Where I am stuck is reading the options from the up / down scripts correctly by using foreing_option_x. And I don't see how to debug this... (echo maybe)?....

Here is the part where I see something strange while connecting...

Mon May 7 23:11:14 2012 OPTIONS IMPORT: timers and/or timeouts modified
Mon May 7 23:11:14 2012 OPTIONS IMPORT: route options modified
Mon May 7 23:11:14 2012 ROUTE default_gateway=192.168.0.1
Mon May 7 23:11:14 2012 TUN/TAP device tap0 opened
Mon May 7 23:11:14 2012 TUN/TAP TX queue length set to 100
Mon May 7 23:11:14 2012 /etc/openvpn/update-resolv-conf tap0 1500 1574 init
Redirecting to /bin/systemctl nscd.service
Unknown operation nscd.service
Mon May 7 23:11:14 2012 /sbin/ip route add 172.21.16.0/23 via 172.21.20.1 metric 600
RTNETLINK answers: No such process
Mon May 7 23:11:14 2012 ERROR: Linux route add command failed: external program exited with error status: 2
Mon May 7 23:11:14 2012 /sbin/ip route add 172.21.18.0/23 via 172.21.20.1 metric 500
RTNETLINK answers: No such process

The last line kind of repeats for all routes.. and I don't see the DNS IP in any of the IPs pushed.


IDEAS PLEASE...

george_toolan
10th May 2012, 12:04 PM
You probably have a syntax error in your route commands.