[arch-general] Problems with openvpn
Iru Cai
mytbk920423 at gmail.com
Fri Aug 1 09:42:33 EDT 2014
Hi,
I just found out my openvpn doesn't work normally.
When I run `sudo openvpn --config client.ovpn', openvpn has the following
output:
```
Fri Aug 1 21:36:34 2014 TUN/TAP device tun0 opened
Fri Aug 1 21:36:34 2014 TUN/TAP TX queue length set to 100
Fri Aug 1 21:36:34 2014 do_ifconfig, tt->ipv6=0,
tt->did_ifconfig_ipv6_setup=0
Fri Aug 1 21:36:34 2014 /usr/bin/ip link set dev tun0 up mtu 1500
Fri Aug 1 21:36:34 2014 /usr/bin/ip addr add dev tun0 local 10.0.3.22 peer
10.0.3.21
Fri Aug 1 21:36:34 2014 ROUTE remote_host protocol differs from tunneled
Fri Aug 1 21:36:34 2014 /usr/bin/ip route add 0.0.0.0/1 via 10.0.3.21
Fri Aug 1 21:36:34 2014 /usr/bin/ip route add 128.0.0.0/1 via 10.0.3.21
Fri Aug 1 21:36:34 2014 /usr/bin/ip route add 10.0.3.0/24 via 10.0.3.21
Fri Aug 1 21:36:34 2014 Initialization Sequence Completed
```
Then I run `ip route', and I cannot see `0.0.0.0/1 via 10.0.3.21' in the
list, although I can then add it manually.
I did another test. I move /usr/bin/ip to /usr/local/bin/ip, and wrote
/usr/bin/ip as
```
#!/bin/sh
sleep 1
/usr/local/bin/ip "$@"
```
And this time openvpn can add the route normally.
Can someone tell me what's wrong with it?
Thanks,
Iru
More information about the arch-general
mailing list