Linux Netfilter discussions
 help / color / mirror / Atom feed
* Rule question
@ 2002-06-22  7:35 Patrick Petermair
  2002-06-22  7:38 ` Antony Stone
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Patrick Petermair @ 2002-06-22  7:35 UTC (permalink / raw)
  To: netfilter

Hi!

I've read the following example script for a linux box with masquerading and 
some firewall rules:
http://www.ecst.csuchico.edu/~dranch/LINUX/ipmasq/examples/rc.firewall-2.4-stronger

So far I think I understand everything except this line:
$IPTABLES -A OUTPUT -o $INTIF -s $EXTIP -d $INTNET -j ACCEPT

How can an OUTPUT of the internal interface have the external IP address as 
source IP ?? And why would it be accepted?
As far as I understand it, the masquerading and stuff is all done in the 
FORWARD chain. I can't think of an example where a packet originating from 
the internal interface of my firewall can have the external IP as source.

Regards
Patrick



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

end of thread, other threads:[~2002-06-26 14:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-22  7:35 Rule question Patrick Petermair
2002-06-22  7:38 ` Antony Stone
2002-06-22  7:46 ` Patrick Schaaf
2002-06-22  7:53   ` Antony Stone
2002-06-22  8:08     ` Patrick Schaaf
2002-06-22  8:17       ` Patrick Schaaf
2002-06-22  7:55   ` Patrick Schaaf
2002-06-22  7:46 ` Antony Stone
2002-06-26 14:57   ` Joe Patterson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox