Nated connection behavior

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

 



Hi,
I have a question related to a NAT connection behavior:

|CLIENT|<----->[ROUTER/IPTABLES/NAT]<---->|SERVER|

Why is it that if I ping SERVER from CLIENT, I see answers comming
from SERVER internal IP instead of ROUTER external IP.

NAT rule on ROUTER is:

iptables -t nat -A POSTROUTING -s <IP SERVER> -o <external eth of
ROUTER> -j SNAT --to-source <external IP of ROUTER>

I know that it is awful too basic question for you guys, but if
someone could explain that I'll be much appreciative.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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