Hello everybody.
I am not a network expert, therefore bear with me on this issue, because even if I have already searched a lot for the solution, I seem to be unable to solve the problem.
I have a GL-MT300N-V2 connected to another router "main router” (the GL-MT300N-V2 WAN port is connected to one of the the main router's LAN ports with a static IP address).
The GL-MT300N-V2 is configured as an openvpn client, connected to a VPN server.
The address of the GL-MT300N-V2 is 192.168.8.1
Attached to the LAN interface of the GL-MT300N-V2 is a computer that needs to be constantly connected to the VPN. It's address is 192.168.8. 242
The main network is 192.168.1.x, with the main router connected to the internet (the router is the gateway and it's address is 192.168.1.254)
Attached to the main router is a NAS, with static address 192.168.1.103
I need the "192.168.8.242" computer attached to the GL-MT300N-V2 to access the shares of the "192.168.1.103" NAS, but I am unable to achieve this.
I thought I had to create a static route for the WAN interface of the GL-MT300N-V2 to the 192.168.1.103 NAS, with the main router (192.168.1.254) as the gateway, but it didn't work.
Any help would be very much appreciated.
Thank you very much.
Any insights? It has been working until I changed ISP. The new one gave me a new modem/router and now I can't even ping the NAS (which responds when pinged from the main network)!
You don't need a static route, you need port forwarding. If you're NATing, no need to static route anyways. Also confirm that your ISP issues a public IP to your modem port/WAN interface.
Also verify that your ISP allows that traffic inbound to customers.
Hi. Thanks for your reply. I don't think it's a port forwarding problem, since all the involved devices are on the LAN.
All the traffic happens locally, although they are on two different networks (192.168.1.x and 192.168.8.X).
Or am I missing something?
root@GL-MT300N-V2:~# ip route
0.0.0.0/1 via 10.8.2.1 dev tun0
0.0.0.0/1 dev tun0 scope link
default via 192.168.1.254 dev eth0.2 proto static src 192.16
8.1.64 metric 10
10.8.2.0/24 dev tun0 proto kernel scope link src 10.8.2.4
82.102.21.227 via 192.168.1.254 dev eth0.2
128.0.0.0/1 via 10.8.2.1 dev tun0
128.0.0.0/1 dev tun0 scope link
192.168.1.0/24 dev eth0.2 proto static scope link metric 10
192.168.8.0/24 dev br-lan proto kernel scope link src 192.16
8.8.1
No firewall on second router. Unfortunately static routes are disabled on the ISP router. I will have to find a way to "hack" it and get static routes available again.