Hi,
Sorry if this is not the correct place to post, I was unsure where client (rather than server) queries go.
I am getting this error on my openindiana server NOTE: unable to redirect default gateway -- Cannot read current default gateway from system and need assistance to make it work.
First up I am connecting to a commercial vpn which I dont have access to configure but the ovpn files have been tested on a linux pc and confirmed to be working.
I am running openvpn version 2.3.2 with the following client conf:
client
dev tun
proto udp
remote sg1.vyprvpn.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
persist-remote-ip
ca ca.vyprvpn.com.crt
auth-user-pass
comp-lzo
verb 3
<ca>
...
</ca>
When I connect I get the following:
Sun Mar 22 12:13:13 2015 Socket Buffers: R=[65536->262144] S=[65536->65536]
Sun Mar 22 12:13:13 2015 OPTIONS IMPORT: --ifconfig/up options modified
Sun Mar 22 12:13:13 2015 OPTIONS IMPORT: route options modified
Sun Mar 22 12:13:13 2015 OPTIONS IMPORT: route-related options modified
Sun Mar 22 12:13:13 2015 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun Mar 22 12:13:13 2015 ROUTE: default_gateway=UNDEF
Sun Mar 22 12:13:13 2015 open_tun: got dynamic interface 'tun0'
Sun Mar 22 12:13:13 2015 TUN/TAP device tun0 opened
Sun Mar 22 12:13:13 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Mar 22 12:13:13 2015 /usr/sbin/ifconfig tun0 10.64.1.217 10.64.1.217 netmask 255.255.0.0 mtu 1500 up
Sun Mar 22 12:13:13 2015 /usr/sbin/route add 10.64.0.0 -netmask 255.255.0.0 10.64.1.217 0
add net 10.64.0.0: gateway 10.64.1.217
Sun Mar 22 12:13:13 2015 NOTE: unable to redirect default gateway -- Cannot read current default gateway from system
Sun Mar 22 12:13:13 2015 Initialization Sequence Completed
I have tried a few things but cant make it work for the life of me.
My routing table looks like this with the vpn down:
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.1.1 UG 4 24938
127.0.0.1 127.0.0.1 UH 2 943 lo0
128.0.0.0 10.64.0.1 UGH 1 0
192.168.1.0 192.168.1.127 U 14 2630369 e1000g0
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
::1 ::1 UH 2 8 lo0
And like this with the vpn up.
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.1.1 UG 5 24931
10.64.0.0 10.64.1.217 U 1 0 tun0
10.64.1.217 10.64.1.217 UH 2 0 tun0
127.0.0.1 127.0.0.1 UH 2 943 lo0
128.0.0.0 10.64.0.1 UGH 1 0
192.168.1.0 192.168.1.127 U 14 2630267 e1000g0
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
::1 ::1 UH 2 8 lo0
Any assistance would be greatly appreciated.
Thankyou
Paul