[NTLUG:Discuss] how is the packet been "seen" by servers?
m m
llliiilll at hotmail.com
Wed Jun 12 14:50:32 CDT 2002
Hi All:
here is an assumption:
internet
|
eth0 public ip 1.2.3.4
eth1 private ip 192.168.0.1
|
|- eth0 192.168.0.2
|- eth0 192.168.0.3
have rules:
iptables -t nat -A PREROUTING -i eth0 -d 192.168.0.1 -dport 80 -j DNAT --to
192.169.0.2
iptables -t nat -A PREROUTING -i eth0 -d 192.168.0.1 -dport 8800 -j DNAT
--to 192.169.0.3
a query/request from the internet:
1. what does the (web) server 192.168.0.1 "see"? does it see the packet
address as 1.2.3.4:80 or other internet ip?
2. what does the (web) server 192.168.0.2 "see"? does it see the packet
address as 1.2.3.4:80 or 192.168.0.1:80 other internet ip?
3. what does the (web) server 192.168.0.3 "see"? does it see the packet
address as 1.2.3.4:8800 or 192.168.0.1:8800 other internet ip?
Thanks in advance.
a request packet from internet
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the Discuss
mailing list