NAT tables chains
lekkie.aydot_at_gmail.com
Date: 07/28/05
- Next message: Eric Teuber: "Re: Receivin packets from the intternet thru router"
- Previous message: Dale Dellutri: "Re: problems with large files"
- Next in thread: Eric Teuber: "Re: NAT tables chains"
- Reply: Eric Teuber: "Re: NAT tables chains"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jul 2005 11:56:44 -0700
Can some pls xplain to me how the Pre-Routing, Output and the
Post-routing chains works. I understand when one wants to masquerade,
i've to use the post-routing, what's the function of pre-routing. I
think, it shld help the packets been replied to a LAN be identified
with the original sender. I'm not really sure. Can some1 help to
clarify this?
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 192.168.0.0/255
this will allow network translation for packets comin from hosts on LAN
192.168.1.0 network to the eth0 which the external network (internet).
Also, when masquerading, is it the post-routing alone that matters or
both it, pre-routing and output.
- Next message: Eric Teuber: "Re: Receivin packets from the intternet thru router"
- Previous message: Dale Dellutri: "Re: problems with large files"
- Next in thread: Eric Teuber: "Re: NAT tables chains"
- Reply: Eric Teuber: "Re: NAT tables chains"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|