I have a GL-MT300N-V2 connected to another router “home router” (GL-MT300N-V2 WAN port to main router LAN port with a static IP address).
Also, I have another device connected to the GL-MT300N-V2 LAN port, this device has it’s own web configuration interface.
Into the GL-MT300N-V2 I have configured an OpenVPN connection to an external OpenVPN Server (that work correctly).
I need to configure the GL-MT300N-V2 in order to:
If a user connects to the OpenVPN server and types the GL-MT300N-V2 VPN IP address, it must be forwarded to the web interface into the IP address of the device connected to the GL-MT300N-V2 LAN port.
If a user tries to connect to the GL-MT300N-V2 inside the home network (typing the GL-MT300N-V2 IP Address, it must be forwarded to the web interface into the IP address of the device connected to the GL-MT300N-V2 LAN port.
In other words, I need to make the GL-MT300N-V2 transparent to the connection in both VPN and WAN to LAN connections.
I have modified my image adding all the IP address, let me know if you need more info.
I’ll try to better explain my needs:
Every device I build has inside a GL-MT300N-V2 with its own OpenVPN client certificate and it’s unique IP address (I have written a series of IP address in the image only to explain), we can user 10.210.0.11 as an example.
If a user connects to the OpenVPN server and types the GL-MT300N-V2 VPN IP address, it must be forwarded to the web interface into the IP address of the device connected to the GL-MT300N-V2 LAN port.
If a user tries to connect to the GL-MT300N-V2 inside the home network (typing the GL-MT300N-V2 IP Address, it must be forwarded to the web interface into the IP address of the device connected to the GL-MT300N-V2 LAN port.
Only the system administrator can access to the GL-MT300N-V2 with ssh or thought the GL-MT300N-V2 WiFi port and use the GL-MT300N-V2 admin web interface.
Does not work, in both cases, when I type the LAN or VPN IP address, the MT300N-V2 open its own web interface after the 2 seconds message.
Also, If I enable the VPN forwarding, after the 2 seconds message, after the digited IP address appears /HTML/ and a connection error.
I have added your suggested config rule and I have tried to add another forward rule but without success.
Can help if I upload my configuration backup?
If yes, do you need all the zip archive or only specific files?
@lumiere Hey! I restore from your configuration achieve, it’s okay that WAN to LAN and VPN to LAN. I think the issue lie in the LAN device, you can use gli router instead of your LAN device, and try again.
@kyson-lok, thank you for your support.
It’s ok for me to give you a TeamViewer access.
I don’t understand what you mean with:
GL-MT300N-V2 is connected to my LAN but I have made some test in two different locations without success.
Please let me know what you need to connect in order to help me.