<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
<br><br><br><br>/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 <br>    -d 192.168.0.1 --destination-port 80 -j DNAT --to 192.168.0.2:80<br><br>/sbin/iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.2 --destination-port 80 -j ACCEPT<br><br><br><br>> From: dmehler26@woh.rr.com<br>> To: centos@centos.org<br>> Date: Tue, 28 Aug 2007 12:27:08 -0400<br>> Subject: [CentOS] centos5 iptables expert needed<br>> <br>> Hello,<br>>     I'm setting up a centos5 router for a friend. It will direct traffic to <br>> an internal webserver, already in place, as well as run squid proxy. It <br>> should do nat and have a firewall with iptables. I've set up routers before <br>> for this purpose but always of the bsd type and using their firewalls. I <br>> understand the concepts, nat, packet filtering, etc. but i'm not getting <br>> iptales at all. If anyone is an expert on this i'd appreciate hearing from <br>> you. I have what are probably basic questions, i've read the docs, but i am <br>> lost.<br>> Thanks.<br>> Dave.<br>> <br>> _______________________________________________<br>> CentOS mailing list<br>> CentOS@centos.org<br>> http://lists.centos.org/mailman/listinfo/centos<br><br /><hr />Get the new Windows Live Messenger! <a href='http://get.live.com/messenger/overview ' target='_new'>Try it!</a></body>
</html>