/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 192.168.0.1 --destination-port 80 -j DNAT --to 192.168.0.2:80/sbin/iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.2 --destination-port 80 -j ACCEPT> From: dmehler26@woh.rr.com> To: centos@centos.org> Date: Tue, 28 Aug 2007 12:27:08 -0400> Subject: [CentOS] centos5 iptables expert needed> > Hello,> I'm setting up a centos5 router for a friend. It will direct traffic to > an internal webserver, already in place, as well as run squid proxy. It > should do nat and have a firewall with iptables. I've set up routers before > for this purpose but always of the bsd type and using their firewalls. I > understand the concepts, nat, packet filtering, etc. but i'm not getting > iptales at all. If anyone is an expert on this i'd appreciate hearing from > you. I have what are probably basic questions, i've read the docs, but i am > lost.> Thanks.> Dave.> > _______________________________________________> CentOS mailing list> CentOS@centos.org> http://lists.centos.org/mailman/listinfo/centos _________________________________________________________________ Did you know you can now customize your mailbox with different colours to suit your mood with Windows Live Hotmail? http://get.live.com/mail/features