Hello everyone,
I'm having problems with routing for WLAN. The idea is to route WLAN Internet traffic to the OpenVPN tun0 interface on my laptop, which acts as wifi Access Point.
I have a laptop acting as AP. It has a VPN connection through tun0, which is made a default route upon connection. The connection is manual, no mention of it in /etc/rc.conf.
Upon connection the routing table of the laptop looks like this:
There one can see
"${hidden} 192.168.24.1" -- that's connection to VPN server with IP ${hidden} through my router's gateway 192.168.24.1;
then 192.168.24.0/24 -- that's from laptop to gateway router, wired;
the 172.16.55.0/24 network, that's VPN tunnel net;
then 192.168.28.0/27 -- that's WLAN.
My wlan0 is configured through isc-dhcpd and clients are given as default route the wlan0's IP = 192.168.28.1. But somehow the Internet requests coming from WLAN are not sent to the laptop's default route, at the time it's 172.16.55.1 from the OpenVPN net, as shown in the route table above.
At the same time this address can be pinged from the Android tablet. Which indicates that routing works OK. There is NAT translation from VPN net to WLAN and back. But Internet hosts can't be pinged, which tells me that Internet requests from WLAN are not forwarded to system's default gateway.
QUESTION:
What might be the matter and why isn't computer's default route used for Internet requests from WLAN? I don't need any specific configuration for that, do I? Except ip forwarding, which is enabled via gateway_enable="YES" in /etc/rc.conf.
I'm having problems with routing for WLAN. The idea is to route WLAN Internet traffic to the OpenVPN tun0 interface on my laptop, which acts as wifi Access Point.
I have a laptop acting as AP. It has a VPN connection through tun0, which is made a default route upon connection. The connection is manual, no mention of it in /etc/rc.conf.
Upon connection the routing table of the laptop looks like this:
Code:
Internet:
Destination Gateway Flags Netif Expire
default 172.16.55.1 UGS tun0
${hidden} 192.168.24.1 UGS em0
127.0.0.1 link#2 UH lo0
172.16.55.0/24 172.16.55.2 UGS tun0
172.16.55.1 link#4 UH tun0
172.16.55.2 link#4 UHS lo0
192.168.24.0/24 link#1 U em0
192.168.24.100 link#1 UHS lo0
192.168.28.0/27 link#3 U wlan0
192.168.28.1 link#3 UHS lo0
"${hidden} 192.168.24.1" -- that's connection to VPN server with IP ${hidden} through my router's gateway 192.168.24.1;
then 192.168.24.0/24 -- that's from laptop to gateway router, wired;
the 172.16.55.0/24 network, that's VPN tunnel net;
then 192.168.28.0/27 -- that's WLAN.
My wlan0 is configured through isc-dhcpd and clients are given as default route the wlan0's IP = 192.168.28.1. But somehow the Internet requests coming from WLAN are not sent to the laptop's default route, at the time it's 172.16.55.1 from the OpenVPN net, as shown in the route table above.
At the same time this address can be pinged from the Android tablet. Which indicates that routing works OK. There is NAT translation from VPN net to WLAN and back. But Internet hosts can't be pinged, which tells me that Internet requests from WLAN are not forwarded to system's default gateway.
QUESTION:
What might be the matter and why isn't computer's default route used for Internet requests from WLAN? I don't need any specific configuration for that, do I? Except ip forwarding, which is enabled via gateway_enable="YES" in /etc/rc.conf.