Hi everyone,
I have Asuswrt-Merlin running fine on my Asus RT-N66U for some years now.
Over time I have configured both OpenVPN servers, one server I use to let some virtual servers I rent all over the world connect to my network.
This first OpenVPN server uses TAP over UDP, clients connect and are authenticated using only certificates.
The 2nd OpenVPN server uses TUN over TCP, and I use this to connect mainly myself from different devices over the internet (Android only supports TUN protocol AFAIK, so I can't use first server for this).
My physical LAN behind the router at home is in the 192.168.2.0/24 range.
The DHCP server provides addresses from 192.168.2.52 to .99
The router itself has local address 192.168.2.51
The 1st OpenVPN server does not use DHCP for it's client, since all clients are servers connecting externally, they all have reserved IP's outside of the DHCP range, but still in the 192.168.2.0/24 range.
The 2nd OpenVPN server hands out DHCP addresses in the 10.8.0.0/24 range. I did this because I cannot choose 'Allocate from DHCP' when setting up a TUN server, compared to a TAP server.
So for example 1 virtual server I rent connects and gets IP 192.168.2.161
When I connect from my workstation at work (windows 7 pc) it will get for example 10.8.0.2, my router being 10.8.0.1.
Now my problem is, for some reason clients connected to server 2, cannot communicate to clients connected to server 1.
Both clients can talk fine to my local physically connected LAN devices in the 192.168.2.0/24 range.
And all devices physically connected to my LAN can talk both to the 192.168.2.161 client, and to the 10.8.0.2 client.
But I cannot get any communication going from 10.8.0.2 to 192.168.2.161.
The 10.8.0.2 client has the correct route, if I to 'tracert -d 192.168.2.161' it will show the first hop going correctly to 10.8.0.1 (openVPN server 2) but then dying.
I suspect there is some kind of routing missing to correctly forward the packets from one OpenVPN server to the other.
I have Asuswrt-Merlin running fine on my Asus RT-N66U for some years now.
Over time I have configured both OpenVPN servers, one server I use to let some virtual servers I rent all over the world connect to my network.
This first OpenVPN server uses TAP over UDP, clients connect and are authenticated using only certificates.
The 2nd OpenVPN server uses TUN over TCP, and I use this to connect mainly myself from different devices over the internet (Android only supports TUN protocol AFAIK, so I can't use first server for this).
My physical LAN behind the router at home is in the 192.168.2.0/24 range.
The DHCP server provides addresses from 192.168.2.52 to .99
The router itself has local address 192.168.2.51
The 1st OpenVPN server does not use DHCP for it's client, since all clients are servers connecting externally, they all have reserved IP's outside of the DHCP range, but still in the 192.168.2.0/24 range.
The 2nd OpenVPN server hands out DHCP addresses in the 10.8.0.0/24 range. I did this because I cannot choose 'Allocate from DHCP' when setting up a TUN server, compared to a TAP server.
So for example 1 virtual server I rent connects and gets IP 192.168.2.161
When I connect from my workstation at work (windows 7 pc) it will get for example 10.8.0.2, my router being 10.8.0.1.
Now my problem is, for some reason clients connected to server 2, cannot communicate to clients connected to server 1.
Both clients can talk fine to my local physically connected LAN devices in the 192.168.2.0/24 range.
And all devices physically connected to my LAN can talk both to the 192.168.2.161 client, and to the 10.8.0.2 client.
But I cannot get any communication going from 10.8.0.2 to 192.168.2.161.
The 10.8.0.2 client has the correct route, if I to 'tracert -d 192.168.2.161' it will show the first hop going correctly to 10.8.0.1 (openVPN server 2) but then dying.
I suspect there is some kind of routing missing to correctly forward the packets from one OpenVPN server to the other.