/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting!
/* ALSO: Don't quote this header. It makes you look lame :-) */
At Tue, 10 Apr 2001 it looks like Sean A. Walberg composed:
sean->I assume you're trying to make 1.2 act as if were on your gateway?
sean->Assuming the outside is on interface eth0, then you want to do Destination
sean->NATing. DNAT only really has meaning at the PREROUTING stage, ie before
sean->the box decides where to send the packet.
sean->
sean->iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT --to
sean->192.168.1.2:80
sean->
sean->all on one line.
sean->
sean->FWIW, I'm giving a presentation to my local LUG on iptables tonight. I'll
sean->post a link to the slides if you'd like. It covers the basics, along with
sean->an example of dnat and some of the options that iptables provides.
sean->
sean->Sean
sean->
sean->--
sean->Sean A. Walberg <[EMAIL PROTECTED]> http://www.ertw.com *updated!*
sean->Join the weekly brainbuzz.com Linux newsletter for news and resources!
sean->Send a blank email to: [EMAIL PROTECTED]
sean->
sean->
sean->
Thanks Sean,
By the way, what LUG is that ? And yes I'd very much like to have
access to this presetation as I would assume everyone else would.
The ruleset changes with kernels 2.0, 2.2, and now Iptables are
always a bitter pill to swallow when you have existing networks in
place, I hope iptables sticks around for awhile.
--
Bill Schoolcraft
PO Box 210076 -o)
San Francisco CA 94121 /\
"UNIX, A Way Of Life." _\_v
http://forwardslashunix.com
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ --
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.