LeRoy Cressy on Mon, 10 Mar 2003 07:34:14 -0500 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This is what I use: iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 \ - -m limit --limit 1/hour -j LOG --log-level info \ - --log-prefix "Forward WWW Request " iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 \ - -j DNAT --to 192.168.10.1 - -i is the ethernet card connected to the Internet - -p tcp protocal - --dport 80 is the destination port. Most web requests are sent on port 80 and unless you are using a closed private system that you do not want the world to see then you should be using port 80 unless you mangle the packet in the router and change the destination port of the incoming packet. I hope this helps Naresh wrote: Group: - -- Rev. LeRoy D. Cressy mailto:leroy@lrcressy.com /\_/\ http://lrcressy.com ( o.o ) Phone: 215-535-4037 > ^ < gpg fingerprint: 62DE 6CAB CEE1 B1B3 359A 81D8 3FEF E6DA 8501 AFEA Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me. (John 14:6) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQE+bHhCP+/m2oUBr+oRAk43AJ4vhMsY/rQCuyFbtCP97bEcSjc7LACeKnbe zlplUVqY9AYAcnMld9kHtk8= =x8LR -----END PGP SIGNATURE----- _________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|