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

iptables need to configure forward port 80 to webserver



Hi,

I read your forum at debian.org. My problem is my port
forwarding seems not working.

scenario:
Linux box is behind my broadband router. And my w2k
webserver is behind Linux box NAT. w2k IP is
80.80.80.2.

Questions:
1. one of the forum I read said my W2k server
shouldn't put local LAN IP (80.80.80.2). Asked me to
purchase an IP from ISP. Is it true? Should it work
with local LAN IP?
2. is my configuration are correct?

with regards,
John


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@mail named]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
                                                      
                         
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
                                                      
                         
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
                                                      
                         
Chain RH-Lokkit-0-50-INPUT (0 references)
target     prot opt source               destination
------------------------------------------------------
[root@mail named]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       all  --  anywhere             192.168.1.1  
     to:80.80.80.1
DNAT       all  --  anywhere            
230.115.240.170    to:80.80.80.1
DNAT       tcp  --  anywhere             anywhere     
     tcp dpt:http to:80.80.80.2
                                                      
                         
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  anywhere             anywhere     
     to:192.168.1.3
                                                      
                         
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

__________________________________________________
Do You Yahoo!?
A free party for the most "shiok" photo! 
http://sg.yahoo.com/shiok



Reply to: