Answer the question
In order to leave comments, you need to log in
How to disable packets via iptables?
There is a gateway to ubuntu-server, it is also a firewall. It is necessary to prohibit a certain IP from sending and receiving any packets through the external interface. I tried to do like this:
$ip -A FORWARD -s 10.40.1.250 -i $EXTERNAL -j DROP
$ip -A FORWARD -o $EXTERNAL -d 10.40.1.250 -j DROP
iptables -I OUTPUT -s 10.40.1.250 -m conntrack --ctstate NEW, ESTABLISHED -j DROP
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question