Hi,
I am struggling a bit with the following scenario...
I have a LAN (192.168.1.x) with ASUS Merlin router and a remote LAN (192.168.10.x & 192.168.5.x) also with a ASUS Merlin router.
Due to several reasons, I cannot VPN directly to the remote LAN, but the remote LAN can VPN to me.
So, I created a OpenVPN server on my local router and a OpenVPN client on the remote router, so that the remote router connects to my local network.
That connection works, the virtual IPs are in the range of 10.2.0.x.
The remote router does NOT route internet traffic through the VPN, even though it has an internet connection.
I suppose, I could manage to give a static IP (e.g. 10.2.0.100) to the remote router when it connects via OpenVPN, in case I need a fixed gateway IP.
What I want to achieve in the end is the following:
As I wrote above, I have a ASUS router with the newest Merlin firmware.
This is where I stand right now (which for me already does solve my most urgent needs, but I know, that I probably need to do it completely differently to achieve all requirements):
With these settings, I reliably can access the remote IPs from my LAN (but also my IPs are reachable from the remote network).
I need 2. & 3. to be able to access the remote IPs.
Since I don't need access to the remote IPs permanently and allowing multiple OpenVPN clients to access the remote IPs would only be the next step, I can simply either configure the OpenVPN server to "clients can access internet only" or shut down my server altogether in order to hide my LAN when I don't need remote access myself.
But this cannot be the final solution, I guess.
I suppose, shielding all OpenVPN clients from my LAN and allowing all OpenVPN clients to access the remote IPs would be first priority (I still can connect via OpenVPN myself to access the remote IPs then, even though this would be a bit clumsy). If then there is a way to also directly access the remote IPs from my LAN, it would be the icing on the cake.
Any ideas and (optimally concrete) tips how I can achieve that in ASUSWRT Merlin?
Really, any help is very very much appreciated!
Thanks in advance
Markus
I am struggling a bit with the following scenario...
I have a LAN (192.168.1.x) with ASUS Merlin router and a remote LAN (192.168.10.x & 192.168.5.x) also with a ASUS Merlin router.
Due to several reasons, I cannot VPN directly to the remote LAN, but the remote LAN can VPN to me.
So, I created a OpenVPN server on my local router and a OpenVPN client on the remote router, so that the remote router connects to my local network.
That connection works, the virtual IPs are in the range of 10.2.0.x.
The remote router does NOT route internet traffic through the VPN, even though it has an internet connection.
I suppose, I could manage to give a static IP (e.g. 10.2.0.100) to the remote router when it connects via OpenVPN, in case I need a fixed gateway IP.
What I want to achieve in the end is the following:
- every OpenVPN client which is connected to my OpenVPN server is
- able to access the remote IPs (192.168.10.x & 192.168.5.x)
- able to access the internet (which could also be achieved by routing all traffic through the remote router)
- NOT able to access my LAN IPs (192.168.1.x)
- from my LAN (192.168.1.x) I can access all remote IPs (192.168.10.x & 192.168.5.x), too
As I wrote above, I have a ASUS router with the newest Merlin firmware.
This is where I stand right now (which for me already does solve my most urgent needs, but I know, that I probably need to do it completely differently to achieve all requirements):
- the remote router connects to my OpenVPN server
- I have assigned additional subnets (192.168.10.x & 192.168.5.x) to that client in the OpenVPN config (!! every client currently gets these subnets, which is no issue while I only connect the remote router)
- I have configured the clients to be able to use both, internet and LAN
With these settings, I reliably can access the remote IPs from my LAN (but also my IPs are reachable from the remote network).
I need 2. & 3. to be able to access the remote IPs.
Since I don't need access to the remote IPs permanently and allowing multiple OpenVPN clients to access the remote IPs would only be the next step, I can simply either configure the OpenVPN server to "clients can access internet only" or shut down my server altogether in order to hide my LAN when I don't need remote access myself.
But this cannot be the final solution, I guess.
I suppose, shielding all OpenVPN clients from my LAN and allowing all OpenVPN clients to access the remote IPs would be first priority (I still can connect via OpenVPN myself to access the remote IPs then, even though this would be a bit clumsy). If then there is a way to also directly access the remote IPs from my LAN, it would be the icing on the cake.
Any ideas and (optimally concrete) tips how I can achieve that in ASUSWRT Merlin?
Really, any help is very very much appreciated!
Thanks in advance
Markus