All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonas Berlin <xkr47@outerspace.dyndns.org>
To: cranium2003 <cranium2003@yahoo.com>
Cc: netfilter <netfilter-devel@lists.netfilter.org>
Subject: Re: Linux Routers working
Date: Fri, 13 May 2005 05:24:23 +0000	[thread overview]
Message-ID: <42843A07.6010702@outerspace.dyndns.org> (raw)
In-Reply-To: <20050513041529.87978.qmail@web41424.mail.yahoo.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 ...

> 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 ...

- --
- - xkr47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFChDoExyF48ZTvn+4RAsN5AJwPHokkgN2tnHTiA0skEJqT3x72BACgnPdp
Szvrqa0td9onDdsoNDw19Zw=
=gp/k
-----END PGP SIGNATURE-----

  reply	other threads:[~2005-05-13  5:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-13  4:15 Linux Routers working cranium2003
2005-05-13  5:24 ` Jonas Berlin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-13  4:16 cranium2003
2005-05-13 14:09 ` James R. Leu
2005-05-13  6:09 cranium2003
2005-06-04  9:08 ` Jonas Berlin

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=42843A07.6010702@outerspace.dyndns.org \
    --to=xkr47@outerspace.dyndns.org \
    --cc=cranium2003@yahoo.com \
    --cc=netfilter-devel@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 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.