Hi, I am trying to connect from openvpn client on a Wifi Pineapple to an my openvpn server on my Netgear R7000 router.
After connecting i get the "OpenVPN ROUTE: OpenVPN needs a gateway parameter" error.
It is not possible for me to change anything on the server side:
Is there any way to solve this on the client side?
See log from client below
----------------------------
Jul 18 13:55:27 Pineapple daemon.notice openvpn(sample_client)[25668]: Initialization Sequence Completed
Jul 18 13:55:27 Pineapple daemon.warn openvpn(sample_client)[25668]: ERROR: Linux route add command failed: external program exited with error status: 1
Jul 18 13:55:27 Pineapple daemon.notice openvpn(sample_client)[25668]: /sbin/route add -net 1.0.0.0 netmask 255.0.0.0 gw 172.17.2.172
Jul 18 13:55:27 Pineapple daemon.warn openvpn(sample_client)[25668]: ERROR: Linux route add command failed: external program exited with error status: 1
Jul 18 13:55:27 Pineapple daemon.notice openvpn(sample_client)[25668]: /sbin/route add -net 2.0.0.0 netmask 254.0.0.0 gw 172.17.2.172
Jul 18 13:55:27 Pineapple daemon.warn openvpn(sample_client)[25668]: ERROR: Linux route add command failed: external program exited with error status: 1
Jul 18 13:55:27 Pineapple daemon.notice openvpn(sample_client)[25668]: /sbin/route add -net 4.0.0.0 netmask 252.0.0.0 gw 172.17.2.172
Jul 18 13:55:27 Pineapple daemon.warn openvpn(sample_client)[25668]: ERROR: Linux route add command failed: external program exited with error status: 1
Jul 18 13:55:27 Pineapple daemon.notice openvpn(sample_client)[25668]: /sbin/route add -net 8.0.0.0 netmask 248.0.0.0 gw 172.17.2.172
Jul 18 13:55:27 Pineapple daemon.warn openvpn(sample_client)[25668]: ERROR: Linux route add command failed: external program exited with error status: 1
Jul 18 13:55:27 Pineapple daemon.notice openvpn(sample_client)[25668]: /sbin/route add -net 16.0.0.0 netmask 240.0.0.0 gw 172.17.2.172
Jul 18 13:55:27 Pineapple daemon.warn openvpn(sample_client)[25668]: ERROR: Linux route add command failed: external program exited with error status: 1
Jul 18 13:55:27 Pineapple daemon.notice openvpn(sample_client)[25668]: /sbin/route add -net 32.0.0.0 netmask 224.0.0.0 gw 172.17.2.172
Jul 18 13:55:27 Pineapple daemon.warn openvpn(sample_client)[25668]: ERROR: Linux route add command failed: external program exited with error status: 1
Jul 18 13:55:27 Pineapple daemon.notice openvpn(sample_client)[25668]: /sbin/route add -net 64.0.0.0 netmask 192.0.0.0 gw 172.17.2.172
Jul 18 13:55:27 Pineapple daemon.warn openvpn(sample_client)[25668]: NOTE: unable to redirect default gateway -- VPN gateway parameter (--route-gateway or --ifconfig) is missing
Jul 18 13:55:22 Pineapple daemon.notice openvpn(sample_client)[25668]: TUN/TAP TX queue length set to 100
Jul 18 13:55:22 Pineapple daemon.notice openvpn(sample_client)[25668]: TUN/TAP device tap0 opened
Jul 18 13:55:22 Pineapple daemon.warn openvpn(sample_client)[25668]: OpenVPN ROUTE: failed to parse/resolve route for host/network: 172.17.2.172
Jul 18 13:55:22 Pineapple daemon.warn openvpn(sample_client)[25668]: OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
Jul 18 13:55:22 Pineapple daemon.notice openvpn(sample_client)[25668]: OPTIONS IMPORT: route-related options modified
Jul 18 13:55:22 Pineapple daemon.notice openvpn(sample_client)[25668]: OPTIONS IMPORT: route options modified
Jul 18 13:55:22 Pineapple daemon.notice openvpn(sample_client)[25668]: OPTIONS IMPORT: timers and/or timeouts modified
Jul 18 13:55:22 Pineapple daemon.notice openvpn(sample_client)[25668]: PUSH: Received control message: 'PUSH_REPLY,route 172.17.2.172 255.255.255.0,route-delay 5,route 64.0.0.0 192.0.0.0 172.17.2.172,route 32.0.0.0 224.0.0.0 172.17.2.172,route 16.0.0.0 240.0.0.0 172.17.2.172
Jul 18 13:55:19 Pineapple daemon.notice openvpn(sample_client)[25668]: SENT CONTROL [netgear]: 'PUSH_REQUEST' (status=1)
Jul 18 13:55:14 Pineapple daemon.notice openvpn(sample_client)[25668]: SENT CONTROL [netgear]: 'PUSH_REQUEST' (status=1)
Jul 18 13:55:08 Pineapple daemon.notice openvpn(sample_client)[25668]: SENT CONTROL [netgear]: 'PUSH_REQUEST' (status=1)
Jul 18 13:55:05 Pineapple daemon.notice openvpn(sample_client)[25668]: [netgear] Peer Connection Initiated with IP.ADDRESS.REMOVED:12974
Jul 18 13:55:05 Pineapple daemon.notice openvpn(sample_client)[25668]: Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Jul 18 13:55:05 Pineapple daemon.notice openvpn(sample_client)[25668]: Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jul 18 13:55:05 Pineapple daemon.notice openvpn(sample_client)[25668]: Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Jul 18 13:55:05 Pineapple daemon.notice openvpn(sample_client)[25668]: Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jul 18 13:55:05 Pineapple daemon.notice openvpn(sample_client)[25668]: Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: VERIFY OK: depth=0, /C=TW/ST=TW/O=netgear/OU=netgear/CN=netgear/emailAddress=mail@netgear.com
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: VERIFY OK: depth=1, /C=TW/ST=TW/L=Taipei/O=netgear/OU=netgear/CN=netgear/emailAddress=mail@netgear.com
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: TLS: Initial packet from IP.ADDRESS.REMOVED:12974, sid=f4d3d289 a6d9c599
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: UDPv4 link remote: IP.ADDRESS.REMOVED:12974
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: UDPv4 link local: [undef]
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: Data Channel MTU parms [ L:1590 D:1450 EF:58 EB:135 ET:32 EL:0 AF:3/1 ]
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: Socket Buffers: R=[163840->131072] S=[163840->131072]
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: Control Channel MTU parms [ L:1590 D:138 EF:38 EB:0 ET:0 EL:0 ]
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: LZO compression initialized
Jul 18 13:55:04 Pineapple daemon.warn openvpn(sample_client)[25668]: WARNING: file '/etc/openvpn/client.key' is group or others accessible
Jul 18 13:55:04 Pineapple daemon.warn openvpn(sample_client)[25668]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Jul 18 13:55:04 Pineapple daemon.warn openvpn(sample_client)[25668]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Jul 18 13:55:04 Pineapple daemon.notice openvpn(sample_client)[25668]: OpenVPN 2.2.2 mips-openwrt-linux [SSL] [LZO2] [EPOLL] built on Mar 14 2013
Client side solution for route error
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 1
- Joined: Sat Jul 18, 2015 1:48 pm
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: Client side solution for route error
It looks like you will have to ask the server admin for help:branch wrote:Is there any way to solve this on the client side?
No --ifconfig command ...branch wrote:Jul 18 13:55:27 Pineapple daemon.warn openvpn(sample_client)[25668]: NOTE: unable to redirect default gateway -- VPN gateway parameter (--route-gateway or --ifconfig) is missing
...
Jul 18 13:55:22 Pineapple daemon.warn openvpn(sample_client)[25668]: OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
...
Jul 18 13:55:22 Pineapple daemon.notice openvpn(sample_client)[25668]: PUSH: Received control message: 'PUSH_REPLY,route 172.17.2.172 255.255.255.0,route-delay 5,route 64.0.0.0 192.0.0.0 172.17.2.172,route 32.0.0.0 224.0.0.0 172.17.2.172,route 16.0.0.0 240.0.0.0 172.17.2.172