Routing problem IOS device via WIFI
Posted: Sat Sep 03, 2016 12:21 pm
Hi everyone,
I'm facing with a routing problem in ios devices. I think that i know the problem but i don't know how to fix it. I will try to explain it.
the server address is in a 192.168.1.0/24, the openvpn server offers addresses in a 10.8.0.0/24 and the subnet that I'm facing the ios problems is in 192.168.1.0/24. I know that having the same subnet on both sides can cause some issues, but for know I can't change the server subnet. All the devices that I have (windows, mac os x, linux) works fine, the only problem is with ios devices and obviously when it is connect via wifi that the address is in the subnet 192.168.1.0/24, when the ios device is connect via cellular works fine.
The problem that I see is that the routing table on the ios device don´t change the rounting table. The subnet 192.168.1.0 still is known via en0 when the tunnel is stablished. The default route is known via utun0 that is the correct path. I try to push a route path in the server.conf file
push "route 192.168.1.0 255.255.255.128 def1"
push "route 192.168.1.128 255.255.255.128 def1"
But this config don't updates the routing table on the ios devices
these are the routing tables on the ios device
Routing Table Ios device connect via cellular interface
Internet:
Destination Gateway Flags Refs Use Netif Expire
default link#11 UCS 6 0 utun0
default 10.190.17.74 UGScI 4 0 pdp_ip0
10.8/24 link#11 UCS 2 0 utun0
10.8.0.1 link#11 UHWIi 1 13 utun0
10.8.0.2 10.8.0.2 UH 1 0 utun0
10.190.17.74 10.190.17.74 UHr 5 0 pdp_ip0
10.190.17.74/32 link#2 UCS 1 0 pdp_ip0
127 127.0.0.1 UCS 1 0 lo0
127.0.0.1 127.0.0.1 UH 12 1309593 lo0
224.0.0 link#2 UmCS 2 0 pdp_ip0
224.0.0.251 link#2 UHmWI 1 0 pdp_ip0
255.255.255.255/32 link#2 UCS 1 0 pdp_ip0
Routing Table Ios device connect via wifi interface
Destination Gateway Flags Refs Use Netif Expire
default link#11 UCS 1 0 utun0
default 10.190.17.74 UGScI 3 0 pdp_ip0
default 192.168.1.1 UGScI 1 0 en0
10.8/24 link#11 UCS 2 0 utun0
10.8.0.1 link#11 UHWIi 2 5 utun0
10.8.0.2 10.8.0.2 UH 1 0 utun0
10.190.17.74 10.190.17.74 UHr 4 0 pdp_ip0
10.190.17.74/32 link#2 UCS 1 0 pdp_ip0
127 127.0.0.1 UCS 1 0 lo0
127.0.0.1 127.0.0.1 UH 12 1309557 lo0
169.254 link#8 UCS 1 0 en0
192.168.1 link#8 UCS 1 0 en0
192.168.1.1/32 link#8 UCS 2 0 en0
192.168.1.1 UHLWIir 4 0 en0 1178
192.168.1.37/32 link#8 UCS 1 0 en0
224.0.0 link#8 UmCS 2 0 en0
224.0.0 link#2 UmCSI 1 0 pdp_ip0
224.0.0.251 1:0:5e:0:0:fb UHmLWI 1 0 en0
255.255.255.255/32 link#8 UCS 1 0 en0
255.255.255.255/32 link#2 UCSI 1 0 pdp_ip0
Any idea how to fix it?
thanks in advance
I'm facing with a routing problem in ios devices. I think that i know the problem but i don't know how to fix it. I will try to explain it.
the server address is in a 192.168.1.0/24, the openvpn server offers addresses in a 10.8.0.0/24 and the subnet that I'm facing the ios problems is in 192.168.1.0/24. I know that having the same subnet on both sides can cause some issues, but for know I can't change the server subnet. All the devices that I have (windows, mac os x, linux) works fine, the only problem is with ios devices and obviously when it is connect via wifi that the address is in the subnet 192.168.1.0/24, when the ios device is connect via cellular works fine.
The problem that I see is that the routing table on the ios device don´t change the rounting table. The subnet 192.168.1.0 still is known via en0 when the tunnel is stablished. The default route is known via utun0 that is the correct path. I try to push a route path in the server.conf file
push "route 192.168.1.0 255.255.255.128 def1"
push "route 192.168.1.128 255.255.255.128 def1"
But this config don't updates the routing table on the ios devices
these are the routing tables on the ios device
Routing Table Ios device connect via cellular interface
Internet:
Destination Gateway Flags Refs Use Netif Expire
default link#11 UCS 6 0 utun0
default 10.190.17.74 UGScI 4 0 pdp_ip0
10.8/24 link#11 UCS 2 0 utun0
10.8.0.1 link#11 UHWIi 1 13 utun0
10.8.0.2 10.8.0.2 UH 1 0 utun0
10.190.17.74 10.190.17.74 UHr 5 0 pdp_ip0
10.190.17.74/32 link#2 UCS 1 0 pdp_ip0
127 127.0.0.1 UCS 1 0 lo0
127.0.0.1 127.0.0.1 UH 12 1309593 lo0
224.0.0 link#2 UmCS 2 0 pdp_ip0
224.0.0.251 link#2 UHmWI 1 0 pdp_ip0
255.255.255.255/32 link#2 UCS 1 0 pdp_ip0
Routing Table Ios device connect via wifi interface
Destination Gateway Flags Refs Use Netif Expire
default link#11 UCS 1 0 utun0
default 10.190.17.74 UGScI 3 0 pdp_ip0
default 192.168.1.1 UGScI 1 0 en0
10.8/24 link#11 UCS 2 0 utun0
10.8.0.1 link#11 UHWIi 2 5 utun0
10.8.0.2 10.8.0.2 UH 1 0 utun0
10.190.17.74 10.190.17.74 UHr 4 0 pdp_ip0
10.190.17.74/32 link#2 UCS 1 0 pdp_ip0
127 127.0.0.1 UCS 1 0 lo0
127.0.0.1 127.0.0.1 UH 12 1309557 lo0
169.254 link#8 UCS 1 0 en0
192.168.1 link#8 UCS 1 0 en0
192.168.1.1/32 link#8 UCS 2 0 en0
192.168.1.1 UHLWIir 4 0 en0 1178
192.168.1.37/32 link#8 UCS 1 0 en0
224.0.0 link#8 UmCS 2 0 en0
224.0.0 link#2 UmCSI 1 0 pdp_ip0
224.0.0.251 1:0:5e:0:0:fb UHmLWI 1 0 en0
255.255.255.255/32 link#8 UCS 1 0 en0
255.255.255.255/32 link#2 UCSI 1 0 pdp_ip0
Any idea how to fix it?
thanks in advance