NAT tables chains

lekkie.aydot_at_gmail.com
Date: 07/28/05


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.



Relevant Pages

  • [PATCH 5/8] RT: Pre-route RT tasks on wakeup
    ... "pre-routing" (push the task away to a less important RQ before activating) ... while Steve utilized a "post-routing" approach. ... we ended up deploying Steve's idea. ... the pre-routing should work and yield lower overhead. ...
    (Linux-Kernel)
  • [PATCH 13/23] Subject: SCHED - Pre-route RT tasks on wakeup
    ... "pre-routing" (push the task away to a less important RQ before activating) ... while Steve utilized a "post-routing" approach. ... we ended up deploying Steve's idea. ... the pre-routing should work and yield lower overhead. ...
    (Linux-Kernel)
  • [PATCH v4 13/20] RT: Pre-route RT tasks on wakeup
    ... "pre-routing" (push the task away to a less important RQ before activating) ... while Steve utilized a "post-routing" approach. ... we ended up deploying Steve's idea. ... the pre-routing should work and yield lower overhead. ...
    (Linux-Kernel)
  • [PATCH v3 13/17] RT: Pre-route RT tasks on wakeup
    ... "pre-routing" (push the task away to a less important RQ before activating) ... while Steve utilized a "post-routing" approach. ... we ended up deploying Steve's idea. ... the pre-routing should work and yield lower overhead. ...
    (Linux-Kernel)