custom ICMP message in iptables

Bruno Wolff III bruno at wolff.to
Wed Sep 23 13:53:22 UTC 2009


On Wed, Sep 23, 2009 at 12:29:46 +0530,
  Jatin K <ssh.fedora at gmail.com> wrote:
> Dear all,
>
>
> I'm wondering that, is there any method to add custom ICMP message to  
> iptables ... e.g  say I block Echo Request (ping) through  
> system-config-firewall, other systems on my network cannot ping my  
> system ...  but on on the system from where I try to ping .. it shows  
> message like  [1]
>
> [1] From xxx.xxx.xxx.xxx icmp_seq=xxx Destination Host Prohibited
>      From xxx.xxx.xxx.xxx icmp_seq=xxx Destination Host Prohibited
>      From xxx.xxx.xxx.xxx icmp_seq=xxx Destination Host Prohibited
>      From xxx.xxx.xxx.xxx icmp_seq=xxx Destination Host Prohibited

--reject-with icmp-host-prohibited

This information is covered in the man page.




More information about the users mailing list