0

If I had to block port 144 for udp on eth1 in an active way, for packets with source port 8080, but block it actively so not silently ignore, but to send active signal to the sender of this packet that this port is blocked, how would I do it under linux?

3

Your iptables rule should REJECT with an ICMP port unreachable, e.g.:

-j REJECT --reject-with icmp-port-unreachable

or for IPV6:

-j REJECT --reject-with icmp6-port-unreachable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.