Hello,
This is my first post, but I already learned a lot from this forum. I especially thanks Merlin for his work.
I have a RT-AC66U (with the latest Merlin build and SSH access activated). I set an openVPN client on it to give all my LAN a secured access to the web. my VPN provider is AirVPN. That works pretty well except that, when the openVPN client is on, my hosted services (some HTTP/s, FTPes and SSH) are no longer available from the outside.
From here and there, I understood the requests from the web should reach my local devices, but the openVPN client redirects by defaults the response through the tunnel where the packets are lost. From a number of forums (e.g. that one), I gather these ip rules that tells such packets to use the router gateway/interface instead of the VPN's:
where 192.168.0.X is my LAN device hosting web services, 192.168.0.0/24 is my LAN subnet, and 192.168.0.2 is my router LAN ip.
However, these settings do not work for me, whether they're done before or after the VPNclient starts.
If you had to go through this kind of issue, or if you have any idea, any help would be appreciated.
Thanks !
This is my first post, but I already learned a lot from this forum. I especially thanks Merlin for his work.
I have a RT-AC66U (with the latest Merlin build and SSH access activated). I set an openVPN client on it to give all my LAN a secured access to the web. my VPN provider is AirVPN. That works pretty well except that, when the openVPN client is on, my hosted services (some HTTP/s, FTPes and SSH) are no longer available from the outside.
From here and there, I understood the requests from the web should reach my local devices, but the openVPN client redirects by defaults the response through the tunnel where the packets are lost. From a number of forums (e.g. that one), I gather these ip rules that tells such packets to use the router gateway/interface instead of the VPN's:
Code:
ip rule add from 192.168.0.X table 128
ip route add table 128 to 192.168.0.0/24 dev eth0
ip route add table 128 default via 192.168.0.2
where 192.168.0.X is my LAN device hosting web services, 192.168.0.0/24 is my LAN subnet, and 192.168.0.2 is my router LAN ip.
However, these settings do not work for me, whether they're done before or after the VPNclient starts.
If you had to go through this kind of issue, or if you have any idea, any help would be appreciated.
Thanks !