* Linux Routers working
@ 2005-05-13 4:16 cranium2003
2005-05-13 14:09 ` James R. Leu
0 siblings, 1 reply; 2+ messages in thread
From: cranium2003 @ 2005-05-13 4:16 UTC (permalink / raw)
To: net dev
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
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Linux Routers working
2005-05-13 4:16 Linux Routers working cranium2003
@ 2005-05-13 14:09 ` James R. Leu
0 siblings, 0 replies; 2+ messages in thread
From: James R. Leu @ 2005-05-13 14:09 UTC (permalink / raw)
To: cranium2003; +Cc: net dev
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-13 14:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-13 4:16 Linux Routers working cranium2003
2005-05-13 14:09 ` James R. Leu
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).