ICMP Connections ...

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

 



Dear All,
First of all, let me introduce as a total newbie in filtering and iptables.
 
To ping a host in a different network, I have configured a dual homed[ two network interfaces] linux system to act as NAT router.
I have add a rule in the NAT table of iptables, to achieve the following.
If the Linux system recieves a icmp packet from a particular host in NETWORK A addressed to a particular HOST in NETWORK B , perform SNAT of the ICMP packet to that of the Linux System, so that the icmp replies reaches the Linux system.
 
The above is working very fine. The ICMP requests are reaching the expected destination.
But I'am unable to understand the fact that the ICMP replies are reaching the host in NETWORK A which had generated the requests, without adding a DNAT rule for the same.
How is this possible, does iptables automatically redirect ICMP replies ?
And How to avoid the same.
 
Thanking you,
Chetan M N


Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

[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