A
A
Artem Kiryanov2021-04-29 16:56:40
System administration
Artem Kiryanov, 2021-04-29 16:56:40

How to forward a port through 2 routers?

There is a router in which a SIM card is installed from an operator with a white IP address. This router has only one output, which goes to the WAN port of another router, respectively, the second router already distributes the Internet to other computers on the network.
I need to make it so that I can connect from outside to a computer that is connected to a second router.

On the first router, the LAN address is 192.168.1.1
On the second router, the LAN address is 192.168.0.1 and WAN 192.168.1.2
Something I don’t understand how to do the forwarding correctly.

Scheme: https://drive.google.com/file/d/1b8rt_QBJupt-Oas3r...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vaut, 2021-04-29
@hacker342

Why do you need two nats? Why is the first router not in bridge mode?
Just two port forwards: On the first one to 192.168.1.2 (to the second router). On the second, it is already forwarding to the target computer.

A
Alexey Dmitriev, 2021-04-29
@SignFinder

Set up unconditional port forwarding twice.
On the first - From the Internet to 192.168.1.2
On the second from the Internet to the ip of the desired computer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question