All of lore.kernel.org
 help / color / mirror / Atom feed
* Linux Routers working
@ 2005-05-13  4:16 cranium2003
  2005-05-13 14:09 ` James R. Leu
  0 siblings, 1 reply; 6+ 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] 6+ messages in thread
* Re: Linux Routers working
@ 2005-05-13  6:09 cranium2003
  2005-06-04  9:08 ` Jonas Berlin
  0 siblings, 1 reply; 6+ messages in thread
From: cranium2003 @ 2005-05-13  6:09 UTC (permalink / raw)
  To: Jonas Berlin; +Cc: netfilter


--- Jonas Berlin <xkr47@outerspace.dyndns.org> wrote:
> Quoting cranium2003 on 2005-05-13 04:15 UTC:
> >         Is there any way on linux routers to know
> on
> > which interface packet is forwarded before
> actually
> > packet trasmission begins?
> 
> In the FORWARD table you know both the incoming and
> outgoing interface:
> 
> This will match packets coming in from eth0 and
> going out on eth1:
> 
> iptables -A FORWARD -i eth0 -o eth1 ...
> 
   Can i get that information thru' C program
user/kernel mode netfilter program? Because you have
given the rule to forward packet but what if Router
have 3 or 4 NIC network interfaces? I want to print
somrthing like LOG that prints that packet has srcip
and dstip and is going through eth0/eth1/eth2/eth3.
 
> > Also before packet
> > processed by IP layer can it be possible to know
> from
> > which adjecent Router'IP packet came to that
> router?
> 
> No, but the MAC address is available. You just have
> to find out what the
> mac address of the router in question and do:
> 
> iptables -A INPUT -m mac --mac-source
> 01:23:45:67:89:AB ...
       No suppose i have no info about adjecent
routers mac addresses and when packet came at
destination Router at Link layer/IP layer can i
determine from which router the packet came to
destination router?
regards,
cranium


		
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Linux Routers working
@ 2005-05-13  4:15 cranium2003
  2005-05-13  5:24 ` Jonas Berlin
  0 siblings, 1 reply; 6+ messages in thread
From: cranium2003 @ 2005-05-13  4:15 UTC (permalink / raw)
  To: netfilter

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] 6+ messages in thread

end of thread, other threads:[~2005-06-04  9:08 UTC | newest]

Thread overview: 6+ 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
  -- strict thread matches above, loose matches on Subject: below --
2005-05-13  6:09 cranium2003
2005-06-04  9:08 ` Jonas Berlin
2005-05-13  4:15 cranium2003
2005-05-13  5:24 ` Jonas Berlin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.