T
T
tsovak2015-03-16 12:12:51
iptables
tsovak, 2015-03-16 12:12:51

How to prevent packets from interface to interface in iptables?

how to prevent packets from interface to interface in iptables?
I'm sorry that the Internet does not help me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2015-03-16
@tsovak

iptables -A FORWARD -i eth0 -o eth1 -j DROP
iptables -A FORWARD -i eth1 -o eth0 -j DROP

A
Anton Nagaets, 2015-03-16
@gr1mm3r

Isn't it simpler ,
or
This prohibits the transfer of packets between any interfaces at all and it is not necessary to explicitly specify this in iptables.
Z.Y. do the same with net.ipv6.ip_forward
ZY.Y. do not forget
Z.Y.Y.Y On the fingers of tyks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question