From: Arthur van Leeuwen <arthurvl@sci.kun.nl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Source Mac based Routing
Date: Tue, 26 Jun 2001 08:01:50 +0000 [thread overview]
Message-ID: <marc-lartc-99354260327883@msgid-missing> (raw)
In-Reply-To: <marc-lartc-99353793112357@msgid-missing>
On Tue, 26 Jun 2001, Deepak singhal wrote:
> Hi ,
>
> Has anybody out there implemented source mac based routing .. The Howto
> mentions the following line :
>
> Do routing based on user id (yes!), MAC address, source IP address, port,
> type of service, time of day or content
> But i could not find any mention of mac based routing anywhere else .I am
> also interested in user id based routing ..How to implement these ..I read
> the man pages for ip rule ..but it accepts only an ip address in 'from'
> field. Can anybody help on this ?
Yes. The ip routing tables also allow rule-selection based on fwmarks. This
gives you all the power of netfilter for routing-rule-selection. So, given
something like
iptables -A INPUT -m mac --mac-source ab:cd:ef:01:23:45 -m mark --mark 45
ip rule add fwmark 45 table 45
Would let all packets coming from MAC ab:cd:ef:01:23:45 be routed according
to the rules in routing table 45.
Doei, Arthur.
--
/\ / | arthurvl@sci.kun.nl | Work like you don't need the money
/__\ / | A friend is someone with whom | Love like you have never been hurt
/ \/__ | you can dare to be yourself | Dance like there's nobody watching
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
prev parent reply other threads:[~2001-06-26 8:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-26 6:45 [LARTC] Source Mac based Routing Deepak singhal
2001-06-26 8:01 ` Arthur van Leeuwen [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=marc-lartc-99354260327883@msgid-missing \
--to=arthurvl@sci.kun.nl \
--cc=lartc@vger.kernel.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