[CentOS] ls network address traslation different in centos?

chloe K chloekcy2000 at yahoo.ca
Wed Dec 31 21:05:51 UTC 2008


Hi all
   
  ls the network address traslation in centos5.2 different?
   
  I disable the default iptable rule and use the following commands but I can't connect http://public:8080 from outside to this host 192.168.0.10 port 80
   
  eth1 is public address
  eth0 is private address 192.168.0.1
   
  iptables -F -t nat 
iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE 
iptables --append FORWARD --in-interface eth0 -j ACCEPT 
iptables -t nat -A PREROUTING -p tcp --dport 8080 -i eth1 -j DNAT --to 192.168.0.10:80
   
  Thank you

       
---------------------------------
Looking for the perfect gift? Give the gift of Flickr!
       
---------------------------------
Now with a new friend-happy design! Try the new Yahoo! Canada Messenger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20081231/82ecd169/attachment.html 


More information about the CentOS mailing list