[NTLUG:Discuss] can anyone explain it for me?

m m llliiilll at hotmail.com
Wed May 29 14:53:28 CDT 2002


hi all:

I have a network like this.

internet
  |
(eth0)1.2.3.4
------------
|          |  running dnscache on 127.0.0.1
| firewall |  running dnscachex on 192.168.1.1
|          |  running tinydns on 1.2.3.4
------------
(eth1)192.168.1.1
  |
------------------
| network switch |
------------------
  |
  |__ 192.168.1.2


firewall rules:

iptables -t nat -A PREROUTING -p tcp -d $1.2.3.4:8080 --dport http -j DNAT 
--to 192.268.1.1:80
iptables -t nat -A PREROUTING -p tcp -d $1.2.3.4:8081 --dport http -j DNAT 
--to 192.268.1.2:80


Q1:
a packet after arrived to 192.168.1.1 port 80, what does the web server at 
192.168.1.1 see?
does web server see the packet comes from 1.2.3.4:8080 or 192.168.1.1:80? or 
both?

Q2:
a packet after arrived to 192.168.1.2 port 80, what does the web server at 
192.168.1.2 see?
does web server see the packet comes from 1.2.3.4:8081 or 192.168.1.1:80? or 
192.168.1.2:80 or all?


how do I set web server At 192.168.1.2 can be surfed from internet?

thanks






_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.





More information about the Discuss mailing list