A
A
Andrey Korytov2019-05-16 14:09:54
iptables
Andrey Korytov, 2019-05-16 14:09:54

How to forward traffic between interfaces in OpenWRT?

Good afternoon. There is a router with OpenWrt firmware. A provider is connected to the Wan port, on three ports the network is 192.168.1.0/24, on the fourth port there is a static address 192.168.0.20, to which the corresponding local network is connected. The question is how to configure OpenWrt so that the address 192.168.0.20 is the gateway for the network 192.168.0.0/24? From the 1.0/24 subnet, configured the appropriate routing so that the 0.0/24 subnet is visible

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dedalqq, 2019-05-17
@dedalqq

Well, in theory, as far as I remember: In the web interface, it simply creates 3 networks, one in the wan zone and two in the lan zone. These two networks in the lan zone are created in the same way, they only assign the necessary ports there and in one there is 192.168.0.0/24 in 192.168.1.0/24 well and ip hangs the appropriate one for GW. I installed OpenWRT on a virtual machine. In theory, everything should be the same on a piece of iron.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question