From: "James R. Leu" <jleu@mindspring.com>
To: cranium2003 <cranium2003@yahoo.com>
Cc: net dev <netdev@oss.sgi.com>
Subject: Re: Linux Routers working
Date: Fri, 13 May 2005 09:09:38 -0500 [thread overview]
Message-ID: <20050513140938.GB5384@mindspring.com> (raw)
In-Reply-To: <20050513041623.95169.qmail@web41425.mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 878 bytes --]
On Thu, May 12, 2005 at 09:16:23PM -0700, cranium2003 wrote:
> Hello,
> Is there any way on linux routers to know on
> which interface packet is forwarded before actually
> packet trasmission begins? Also before packet
> processed by IP layer can it be possible to know from
> which adjecent Router'IP packet came to that router?
> regards,
> cranium
I think the OUTPUT chain in iptables already knows what the outbound
interface is, so you could make a decision based on that.
I think you can use the mac target in the PREROUTING chain to get access
to the source MAC address.
I think all of your answers are in iptables.
>
>
>
> __________________________________
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
> http://mobile.yahoo.com/learn/mail
--
James R. Leu
jleu@mindspring.com
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2005-05-13 14:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 4:16 Linux Routers working cranium2003
2005-05-13 14:09 ` James R. Leu [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=20050513140938.GB5384@mindspring.com \
--to=jleu@mindspring.com \
--cc=cranium2003@yahoo.com \
--cc=netdev@oss.sgi.com \
/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;
as well as URLs for NNTP newsgroup(s).