IPTables - Don't log pings
What kind of iptable rule can I implement so that everything is logged besides pings? I want to log all icmp data but not to show ping requests/replies.
|
As iptables executes rules top down you'd need something like:
iptables -A INPUT -p icmp --icmp-type 8 -j ACCEPT # let ping through iptables -A INPUT -p icmp -j LOG --log-prefix="IPTables: [ICMP] " # log all other icmps iptables -A INPUT -p icmp -j accept # accept them now that we logged them Hope this gets you headed in the right direction. Freemor |
All times are GMT -5. The time now is 01:52 AM. |