Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Patrick Petermair <captain.nuke@gmx.at>
To: netfilter@lists.samba.org
Subject: Rule question
Date: Sat, 22 Jun 2002 09:35:12 +0200	[thread overview]
Message-ID: <200206220935.12908.captain.nuke@gmx.at> (raw)

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



             reply	other threads:[~2002-06-22  7:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-22  7:35 Patrick Petermair [this message]
2002-06-22  7:38 ` Rule question 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200206220935.12908.captain.nuke@gmx.at \
    --to=captain.nuke@gmx.at \
    --cc=netfilter@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox