From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: netfilter Digest, Vol 8, Issue 50
Date: Tue, 29 Mar 2005 11:27:29 -0500 [thread overview]
Message-ID: <20050329162729.GA10710@bender.817west.com> (raw)
In-Reply-To: <9927912d050328213425051db9@mail.gmail.com>
On Tue, Mar 29, 2005 at 09:34:05AM +0400, Visham Ramsurrun wrote:
> I wanted to ask if it is possible to have packets enter a firewall
> host on eth0 and get sent back on the same interface, i.e sth like
> ...-i eth0 -o eth0...
if your routing table says that a packet needs to go out eth0, then it
will go out eth0...if it happened to enter on eth0 isn't really part of
the decision.
> Is this possible using the iptables commands. If not, is there a way
> to do it (I mean by modifying IPTables code)?
if you are trying to override the normal routing decision, you could use
netfilter targets such as DNAT, or ROUTE...or you could use netfilter
MARK-ing in conjunction with iproute2, or just solely iproute2.
-j
--
"The kneebone's connected to the... something. The something's
connected to the... red thing. The red thing's connected to my wrist
watch... Uh oh."
--The Simpsons
prev parent reply other threads:[~2005-03-29 16:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4246eaa4.1642866a.28b0.5dafSMTPIN_ADDED@mx.gmail.com>
2005-03-29 5:34 ` netfilter Digest, Vol 8, Issue 50 Visham Ramsurrun
2005-03-29 14:47 ` Mohamed Eldesoky
2005-03-29 16:27 ` Jason Opperisano [this message]
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=20050329162729.GA10710@bender.817west.com \
--to=opie@817west.com \
--cc=netfilter@lists.netfilter.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