Answer the question
In order to leave comments, you need to log in
How to configure iptables routing?
Hello.
How to configure iptables routing?
There are 2 interfaces eth0 and eth1
I need to configure routing so that users on eth0 communicate with eth1 and vice versa eth1 with eth0. Routing is necessary without restrictions, with the opening of all ports.
Answer the question
In order to leave comments, you need to log in
iptables is a utility for configuring the Linux netfilter firewall (by the way, it is deprecated, nft is gaining popularity instead).
Before configuring anything, you need to allow traffic between interfaces ( forwarding ).
Then add the necessary routes and make sure that there are no restrictions in the firewall.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question