B
B
boo0312021-10-26 14:27:09
iptables
boo031, 2021-10-26 14:27:09

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

1 answer(s)
A
Alexander Karabanov, 2021-10-26
@karabanov

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 question

Ask a Question

731 491 924 answers to any question