Re: How to drop ping silently??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Use -j REJECT instead of -j DROP. You cannot act like if ping was received
on the other side tho.

I tried REJECT and it didn't worked: $ iptables -A OUTPUT -p icmp -j REJECT PING 10.1.1.2 (10.1.1.2) 56(84) bytes of data. ping: sendmsg: Operation not permitted

I do NOT want to act like if ping was received on the other side. I just want to avoid this error message "operation not permitted" acting like ping (echo request) was successfully sent. So ping won't receive any reply nor any error message.


Depends what you want the user to see.
Maybe some more info would help ?

I just need to drop the packets on the OUTPUT chain without let the sender app know that these packets were dropped. Ping is returning an error when I drop his packets and I want to avoid it.


Tks for the Help



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux