* It's possible mark or classify packets per gateway in a multihop route ?
@ 2010-06-04 8:49 Victor Carceler
2010-06-04 9:38 ` Jan Engelhardt
0 siblings, 1 reply; 3+ messages in thread
From: Victor Carceler @ 2010-06-04 8:49 UTC (permalink / raw)
To: netfilter
Hi,
I have multiple DSL routers, all of them in the same subnet
(192.168.100.0/24) and reacheable by eth0. I use a multihop default
route and I want to shape traffic with limits per gateway. So, it's
possible to mark or classify packets once it's known with router will
be routed through ? wich extension/selector should I use ?
-------
ip route show
192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.100.5
192.168.10.0/24 dev eth1 proto kernel scope link src 192.168.10.30
169.254.0.0/16 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default
nexthop via 192.168.100.2 dev eth0 weight 1
nexthop via 192.168.100.3 dev eth0 weight 1
------------
192.168.10.0/24 it's my LAN
eth0 has address 192.168.100.5 (to balance traffic), and alias
(eth0:0, eth0:1) exists with addresses (192.168.100.102,
192.168.100.103) to rule traffic to specific router.
It's even possible to apply HTB qdisc to eth0 and shape traffic with
limits per gateway ?
Best regards,
Victor
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: It's possible mark or classify packets per gateway in a multihop route ?
2010-06-04 8:49 It's possible mark or classify packets per gateway in a multihop route ? Victor Carceler
@ 2010-06-04 9:38 ` Jan Engelhardt
2010-06-04 13:37 ` Victor Carceler
0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2010-06-04 9:38 UTC (permalink / raw)
To: Victor Carceler; +Cc: netfilter
On Friday 2010-06-04 10:49, Victor Carceler wrote:
>
>I have multiple DSL routers, all of them in the same subnet
>(192.168.100.0/24) and reacheable by eth0. I use a multihop default
>route and I want to shape traffic with limits per gateway. So, it's
>possible to mark or classify packets once it's known with router will
>be routed through ? wich extension/selector should I use ?
-m realm
>-------
>ip route show
>
>192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.100.5
>192.168.10.0/24 dev eth1 proto kernel scope link src 192.168.10.30
>169.254.0.0/16 dev eth0 scope link
>127.0.0.0/8 dev lo scope link
>default
> nexthop via 192.168.100.2 dev eth0 weight 1
> nexthop via 192.168.100.3 dev eth0 weight 1
make that
nexthop via 192.168.100.2 dev eth0 weight 1 realm 1
nexthop via 192.168.100.3 dev eth0 weight 1 realm 2
so that you have realm values to match against.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: It's possible mark or classify packets per gateway in a multihop route ?
2010-06-04 9:38 ` Jan Engelhardt
@ 2010-06-04 13:37 ` Victor Carceler
0 siblings, 0 replies; 3+ messages in thread
From: Victor Carceler @ 2010-06-04 13:37 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter
Hello Jan,
> make that
> nexthop via 192.168.100.2 dev eth0 weight 1 realm 1
> nexthop via 192.168.100.3 dev eth0 weight 1 realm 2
>
> so that you have realm values to match against.
>
it works !!!
Vielen Dank,
Victor
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-04 13:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-04 8:49 It's possible mark or classify packets per gateway in a multihop route ? Victor Carceler
2010-06-04 9:38 ` Jan Engelhardt
2010-06-04 13:37 ` Victor Carceler
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).