Pushed route not adding

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
rockgardenlove
OpenVpn Newbie
Posts: 4
Joined: Sat Sep 10, 2016 6:27 am

Pushed route not adding

Post by rockgardenlove » Sat Sep 10, 2016 6:35 am

Hi all, I am getting this error on iOS:

Code: Select all

2016-09-09 23:22:30 Error parsing IPv4 route: [route] [192.168.166.0] [255.255.255.0] [192.168.88.1] [1]  : tun_prop_route_error: route destinations other than vpn_gateway or net_gateway are not supported
LAN network: 192.168.166.0/24
LAN gateway: 192.168.166.1
VPN network: 192.168.88.0/24
VPN gateway: 192.168.88.1

The exact same config works great on Mac OS X.

This is my server config that pertains to this issue.
push "dhcp-option DNS 192.168.88.1"
push "dhcp-option DOMAIN HOME"
push "route 192.168.166.0 255.255.255.0 192.168.88.1 1"

I can ping the VPN gateway but nothing on my LAN from iOS. Same exact config works on my other devices fine.

Any input? I googled the error and didn't get much back.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Pushed route not adding

Post by TinCanTech » Sat Sep 10, 2016 11:31 am

Use

Code: Select all

push "route 192.168.166.0 255.255.255.0"
instead.

rockgardenlove
OpenVpn Newbie
Posts: 4
Joined: Sat Sep 10, 2016 6:27 am

Re: Pushed route not adding

Post by rockgardenlove » Sat Sep 10, 2016 6:47 pm

Same issue :(
Anybody else have any ideas?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Pushed route not adding

Post by TinCanTech » Sat Sep 10, 2016 7:53 pm

rockgardenlove wrote:Same issue :(
Please post your log.

rockgardenlove
OpenVpn Newbie
Posts: 4
Joined: Sat Sep 10, 2016 6:27 am

Re: Pushed route not adding

Post by rockgardenlove » Sun Sep 11, 2016 5:02 am

Here it is, thanks!

Code: Select all

2016-09-10 15:43:14 OS Event: SLEEP
2016-09-10 15:43:14 TUN reassert
2016-09-10 15:43:14 TUN reset routes
2016-09-10 15:43:14 EVENT: PAUSE
2016-09-10 15:43:14 OS Event: WAKEUP
2016-09-10 15:43:17 RESUME TEST: Internet:ReachableViaWWAN/WR t------ WiFi:NotReachable/WR t------
2016-09-10 15:43:17 EVENT: RESUME
2016-09-10 15:43:17 EVENT: RECONNECTING
2016-09-10 15:43:17 Contacting <vpn.placeholder.com resolved IP addr>:1194 via UDP
2016-09-10 15:43:17 EVENT: WAIT
2016-09-10 15:43:17 SetTunnelSocket returned 1
2016-09-10 15:43:17 Connecting to [vpn.placeholder.com]:1194 (<vpn.placeholder.com resolved IP addr>) via UDPv4
2016-09-10 15:43:18 EVENT: CONNECTING
2016-09-10 15:43:18 Tunnel Options:V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client
2016-09-10 15:43:18 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.7-199
IV_VER=3.0.11
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_LZO=1

2016-09-10 15:43:18 VERIFY OK: depth=1
cert. version    : 3
serial number    : E5:EA:E1:1A:5E:A9:A4:58
issuer name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=burgerVPN, ??=burgerVPN, emailAddress=user@placeholder.com
subject name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=burgerVPN, ??=burgerVPN, emailAddress=user@placeholder.com
issued  on        : 2016-03-08 05:47:38
expires on        : 2026-03-06 05:47:38
signed using      : RSA with SHA1
RSA key size      : 1024 bits
basic constraints : CA=true

2016-09-10 15:43:18 VERIFY OK: depth=0
cert. version    : 3
serial number    : 05
issuer name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=burgerVPN, ??=burgerVPN, emailAddress=user@placeholder.com
subject name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=server, ??=server, emailAddress=user@placeholder.com
issued  on        : 2016-03-08 05:53:46
expires on        : 2026-03-06 05:53:46
signed using      : RSA with MD5
RSA key size      : 1024 bits
basic constraints : CA=false
cert. type        : SSL Server
key usage        : Digital Signature, Key Encipherment
ext key usage    : TLS Web Server Authentication

2016-09-10 15:43:18 SSL Handshake: TLSv1.2/TLS-DHE-RSA-WITH-AES-256-GCM-SHA384
2016-09-10 15:43:18 Session is ACTIVE
2016-09-10 15:43:18 EVENT: GET_CONFIG
2016-09-10 15:43:18 Sending PUSH_REQUEST to server...
2016-09-10 15:43:18 OPTIONS:
0 [dhcp-option] [DNS] [192.168.88.1]
1 [dhcp-option] [DOMAIN] [HOME]
2 [route] [192.168.166.0] [255.255.255.0] [192.168.88.1]
3 [route-gateway] [192.168.88.1]
4 [topology] [subnet]
5 [ping] [10]
6 [ping-restart] [120]
7 [ifconfig] [192.168.88.4] [255.255.255.0]

2016-09-10 15:43:18 PROTOCOL OPTIONS:
  cipher: AES-256-CBC
  digest: SHA1
  compress: LZO
  peer ID: -1
2016-09-10 15:43:18 EVENT: ASSIGN_IP
2016-09-10 15:43:18 Error parsing IPv4 route: [route] [192.168.166.0] [255.255.255.0] [192.168.88.1]  : tun_prop_route_error: route destinations other than vpn_gateway or net_gateway are not supported
2016-09-10 15:43:18 Connected via tun
2016-09-10 15:43:18 EVENT: CONNECTED @vpn.placeholder.com:1194 (<vpn.placeholder.com resolved IP addr>) via /UDPv4 on tun/192.168.88.4/
2016-09-10 15:43:18 LZO-ASYM init swap=0 asym=0
2016-09-10 15:43:18 SetStatus Connected
2016-09-10 15:43:19 OS Event: SLEEP
2016-09-10 15:43:19 TUN reassert
2016-09-10 15:43:19 TUN reset routes
2016-09-10 15:43:19 EVENT: PAUSE
2016-09-10 15:46:53 OS Event: WAKEUP
2016-09-10 15:46:56 RESUME TEST: Internet:ReachableViaWWAN/WR t------ WiFi:NotReachable/WR t------
2016-09-10 15:46:56 EVENT: RESUME
2016-09-10 15:46:56 EVENT: RECONNECTING
2016-09-10 15:46:56 Contacting <vpn.placeholder.com resolved IP addr>:1194 via UDP
2016-09-10 15:46:56 EVENT: WAIT
2016-09-10 15:46:56 SetTunnelSocket returned 1
2016-09-10 15:46:56 Connecting to [vpn.placeholder.com]:1194 (<vpn.placeholder.com resolved IP addr>) via UDPv4
2016-09-10 15:46:56 EVENT: CONNECTING
2016-09-10 15:46:56 Tunnel Options:V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client
2016-09-10 15:46:56 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.7-199
IV_VER=3.0.11
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_LZO=1

2016-09-10 15:46:57 VERIFY OK: depth=1
cert. version    : 3
serial number    : E5:EA:E1:1A:5E:A9:A4:58
issuer name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=burgerVPN, ??=burgerVPN, emailAddress=user@placeholder.com
subject name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=burgerVPN, ??=burgerVPN, emailAddress=user@placeholder.com
issued  on        : 2016-03-08 05:47:38
expires on        : 2026-03-06 05:47:38
signed using      : RSA with SHA1
RSA key size      : 1024 bits
basic constraints : CA=true

2016-09-10 15:46:57 VERIFY OK: depth=0
cert. version    : 3
serial number    : 05
issuer name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=burgerVPN, ??=burgerVPN, emailAddress=user@placeholder.com
subject name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=server, ??=server, emailAddress=user@placeholder.com
issued  on        : 2016-03-08 05:53:46
expires on        : 2026-03-06 05:53:46
signed using      : RSA with MD5
RSA key size      : 1024 bits
basic constraints : CA=false
cert. type        : SSL Server
key usage        : Digital Signature, Key Encipherment
ext key usage    : TLS Web Server Authentication

2016-09-10 15:46:57 SSL Handshake: TLSv1.2/TLS-DHE-RSA-WITH-AES-256-GCM-SHA384
2016-09-10 15:46:57 Session is ACTIVE
2016-09-10 15:46:57 EVENT: GET_CONFIG
2016-09-10 15:46:57 Sending PUSH_REQUEST to server...
2016-09-10 15:46:57 OPTIONS:
0 [dhcp-option] [DNS] [192.168.88.1]
1 [dhcp-option] [DOMAIN] [HOME]
2 [route] [192.168.166.0] [255.255.255.0] [192.168.88.1]
3 [route-gateway] [192.168.88.1]
4 [topology] [subnet]
5 [ping] [10]
6 [ping-restart] [120]
7 [ifconfig] [192.168.88.4] [255.255.255.0]

2016-09-10 15:46:57 PROTOCOL OPTIONS:
  cipher: AES-256-CBC
  digest: SHA1
  compress: LZO
  peer ID: -1
2016-09-10 15:46:57 EVENT: ASSIGN_IP
2016-09-10 15:46:57 Error parsing IPv4 route: [route] [192.168.166.0] [255.255.255.0] [192.168.88.1]  : tun_prop_route_error: route destinations other than vpn_gateway or net_gateway are not supported
2016-09-10 15:46:57 Connected via tun
2016-09-10 15:46:57 EVENT: CONNECTED @vpn.placeholder.com:1194 (<vpn.placeholder.com resolved IP addr>) via /UDPv4 on tun/192.168.88.4/
2016-09-10 15:46:57 LZO-ASYM init swap=0 asym=0
2016-09-10 15:46:57 SetStatus Connected
2016-09-10 15:47:06 TUN reset routes
2016-09-10 15:47:06 EVENT: DISCONNECTED
2016-09-10 15:47:06 Raw stats on disconnect:
  BYTES_IN : 223629
  BYTES_OUT : 176348
  PACKETS_IN : 2371
  PACKETS_OUT : 2480
  RESOLVE_ERROR : 4
  N_PAUSE : 50
  N_RECONNECT : 53
2016-09-10 15:47:06 Performance stats on disconnect:
  CPU usage (microseconds): 3746234
  Network bytes per CPU second: 106767
  Tunnel bytes per CPU second: 0
2016-09-10 15:47:06 ----- OpenVPN Stop -----
2016-09-10 15:47:09 ----- OpenVPN Start -----
OpenVPN core 3.0.11 ios arm64 64-bit built on Apr 15 2016 14:13:50
2016-09-10 15:47:09 Frame=512/2048/512 mssfix-ctrl=1250
2016-09-10 15:47:09 UNUSED OPTIONS
4 [resolv-retry] [infinite]
5 [nobind]
6 [persist-key]
7 [persist-tun]
12 [verb] [3]

2016-09-10 15:47:09 EVENT: RESOLVE
2016-09-10 15:47:09 Contacting <vpn.placeholder.com resolved IP addr>:1194 via UDP
2016-09-10 15:47:09 EVENT: WAIT
2016-09-10 15:47:09 SetTunnelSocket returned 1
2016-09-10 15:47:09 Connecting to [vpn.placeholder.com]:1194 (<vpn.placeholder.com resolved IP addr>) via UDPv4
2016-09-10 15:47:09 EVENT: CONNECTING
2016-09-10 15:47:09 Tunnel Options:V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client
2016-09-10 15:47:09 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.7-199
IV_VER=3.0.11
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_LZO=1

2016-09-10 15:47:10 VERIFY OK: depth=1
cert. version    : 3
serial number    : E5:EA:E1:1A:5E:A9:A4:58
issuer name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=burgerVPN, ??=burgerVPN, emailAddress=user@placeholder.com
subject name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=burgerVPN, ??=burgerVPN, emailAddress=user@placeholder.com
issued  on        : 2016-03-08 05:47:38
expires on        : 2026-03-06 05:47:38
signed using      : RSA with SHA1
RSA key size      : 1024 bits
basic constraints : CA=true

2016-09-10 15:47:10 VERIFY OK: depth=0
cert. version    : 3
serial number    : 05
issuer name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=burgerVPN, ??=burgerVPN, emailAddress=user@placeholder.com
subject name      : C=US, ST=state, L=city, O=burgerserver, OU=burgerVPN, CN=server, ??=server, emailAddress=user@placeholder.com
issued  on        : 2016-03-08 05:53:46
expires on        : 2026-03-06 05:53:46
signed using      : RSA with MD5
RSA key size      : 1024 bits
basic constraints : CA=false
cert. type        : SSL Server
key usage        : Digital Signature, Key Encipherment
ext key usage    : TLS Web Server Authentication

2016-09-10 15:47:10 SSL Handshake: TLSv1.2/TLS-DHE-RSA-WITH-AES-256-GCM-SHA384
2016-09-10 15:47:10 Session is ACTIVE
2016-09-10 15:47:10 EVENT: GET_CONFIG
2016-09-10 15:47:10 Sending PUSH_REQUEST to server...
2016-09-10 15:47:10 OPTIONS:
0 [dhcp-option] [DNS] [192.168.88.1]
1 [dhcp-option] [DOMAIN] [HOME]
2 [route] [192.168.166.0] [255.255.255.0] [192.168.88.1]
3 [route-gateway] [192.168.88.1]
4 [topology] [subnet]
5 [ping] [10]
6 [ping-restart] [120]
7 [ifconfig] [192.168.88.4] [255.255.255.0]

2016-09-10 15:47:10 PROTOCOL OPTIONS:
  cipher: AES-256-CBC
  digest: SHA1
  compress: LZO
  peer ID: -1
2016-09-10 15:47:10 EVENT: ASSIGN_IP
2016-09-10 15:47:10 Error parsing IPv4 route: [route] [192.168.166.0] [255.255.255.0] [192.168.88.1]  : tun_prop_route_error: route destinations other than vpn_gateway or net_gateway are not supported
2016-09-10 15:47:10 Connected via tun
2016-09-10 15:47:10 EVENT: CONNECTED @vpn.placeholder.com:1194 (<vpn.placeholder.com resolved IP addr>) via /UDPv4 on tun/192.168.88.4/
2016-09-10 15:47:10 LZO-ASYM init swap=0 asym=0
2016-09-10 15:47:10 SetStatus Connected

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Pushed route not adding

Post by TinCanTech » Sun Sep 11, 2016 9:58 am

rockgardenlove wrote:2016-09-10 15:43:18 Sending PUSH_REQUEST to server...
2016-09-10 15:43:18 OPTIONS:
0 [dhcp-option] [DNS] [192.168.88.1]
1 [dhcp-option] [DOMAIN] [HOME]
2 [route] [192.168.166.0] [255.255.255.0] [192.168.88.1]
3 [route-gateway] [192.168.88.1]
4 [topology] [subnet]
5 [ping] [10]
6 [ping-restart] [120]
7 [ifconfig] [192.168.88.4] [255.255.255.0]

2016-09-10 15:43:18 PROTOCOL OPTIONS:
cipher: AES-256-CBC
digest: SHA1
compress: LZO
peer ID: -1
2016-09-10 15:43:18 EVENT: ASSIGN_IP
2016-09-10 15:43:18 Error parsing IPv4 route: [route] [192.168.166.0] [255.255.255.0] [192.168.88.1] : tun_prop_route_error: route destinations other than vpn_gateway or net_gateway are not supported
rockgardenlove wrote:push "route 192.168.166.0 255.255.255.0 192.168.88.1 1"
TinCanTech wrote:Use

Code: Select all

push "route 192.168.166.0 255.255.255.0"
instead.

rockgardenlove
OpenVpn Newbie
Posts: 4
Joined: Sat Sep 10, 2016 6:27 am

Re: Pushed route not adding

Post by rockgardenlove » Sun Sep 11, 2016 9:06 pm

That works, thanks.
I take it iOS the iOS client doesn't allow routes other than to the VPN or network gateway?

Post Reply