All of lore.kernel.org
 help / color / mirror / Atom feed
* MASQUERADE and ACCEPT targets
@ 2010-02-24 14:45 ratheesh k
  2010-02-24 14:57 ` Mart Frauenlob
  0 siblings, 1 reply; 5+ messages in thread
From: ratheesh k @ 2010-02-24 14:45 UTC (permalink / raw)
  To: netfilter

All ,

     R1)   iptables -t nat -I POSTROUTING -o eth0 -m state --state
ESTABLISHED,RELATED -j ACCEPT
     R2)   iptables -t nat -A POSTROUTING   -o eth0 -j MASQERADE


                                        machine "B"
                                     ------------------------------------------
                                     |                                        |
                                     |                                        |
machine "A"   ------> eth0 |
|eth1----------------------------------------> internet
                                     |                                        |
                                     |                                        |
                                     ------------------------------------------

 I applied rules R2 and i am able to browse internet from machine A .

 1. Is there any problem if i apply R1 ?
 2. if packet state become ESTABLISHED ( not a new packet ) , do we
need MASQERADE target for remaing packets ???

Thanks,
Ratheesh

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-25 12:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 14:45 MASQUERADE and ACCEPT targets ratheesh k
2010-02-24 14:57 ` Mart Frauenlob
2010-02-25  4:01   ` ratheesh k
2010-02-25  9:59     ` Mart Frauenlob
2010-02-25 12:36       ` ratheesh k

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.