[LARTC] BW Shaping: cant figure it out
Hey Hope somebody can help me? I have an 6/6 mbit provider connection on a NAT system. People in the forward chain is allowed to get though to the internet. I want to implement some sort of QoS on it. I want to have 3 prioties high, normal, low. I use iptables to mark these with 0x01 0x02 and 0x03 on the different ports such as ssh would get "high" As i can understand i should have a master class and 3 subclasses. I would like to use as much as possible of my bw so the subclasses may "loan" from each other in priotiesed order high have 1. prio i have 20 machines on the lan and i want them to share bw equaly. Can that be done and how ? i tried to understand the http://lartc.org/howto/ but i cant find the right way to get it done. Can anyone help me? -- Lasse B. Jensen ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Timeout problem !
Hey all I have 5 adsl lines and have the following setup INTERNET ADSL lines 192.168.1.1-5 | | | | | - switch - | - eth1 linux nat box eth0 - | - LAN Right now i do the following, which are working correctly: I mark incoming packets via mark in iptables, connection are marked 1-5 Then i via 5 ip route tables adsl1-5 in each of them i specify the gateway (one of the adsl lines 192.168.1.1-5) This all works correctly. However i would like to have all adsllines i on multipath. i have tried: Marking all traffic with mark 1 ip route table adsl1 ip route add table adsl1 default equalize proto static nexthop via 192.168.1.1 dev eth1 nexthop via 192.168.1.2 dev eth1 nexthop via 192.168.1.3 dev eth1 nexthop via 192.168.1.4 dev eth1 nexthop via 192.168.1.5 dev eth1 I have applied the patches to the kernel from http://www.ssi.bg/~ja/#routes I have a "ping-operation" in the background as descripted in the dgd-usage.txt All traffic now is now sent via on of the adsl lines, everything seems to work, but Programs from the lan-computer seems to timeout, i have tried quite some thing but nothing seems to work! Please help ;) LBJ ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Connection timeout on multipath
Cant anyons help on this ? -- Lasse B. Jensen On Mon, 6 Oct 2003, Lasse B. Jensen wrote: > Hey all > > I have 5 adsl lines and have the following setup > > INTERNET > > ADSL lines 192.168.1.1-5 > > | | | | | > - > switch > - > | > - > eth1 > linux nat box > eth0 > - > | > - >LAN > > Right now i do the following, which are working correctly: > > I mark incoming packets via mark in iptables, connection are marked 1-5 > > Then i via 5 ip route tables adsl1-5 in each of them i specify the gateway > (one of the adsl lines 192.168.1.1-5) > > This all works correctly. > > However i would like to have all adsllines i on multipath. i have tried: > > Marking all traffic with mark 1 > > ip route table adsl1 > > ip route add table adsl1 default equalize proto static nexthop via > 192.168.1.1 dev eth1 nexthop via 192.168.1.2 dev eth1 nexthop via > 192.168.1.3 dev eth1 nexthop via 192.168.1.4 dev eth1 nexthop via > 192.168.1.5 dev eth1 > > I have applied the patches to the kernel from > http://www.ssi.bg/~ja/#routes > > I have a "ping-operation" in the background as descripted in the > dgd-usage.txt > > All traffic now is now sent via on of the adsl lines, everything seems to > work, but Programs from the lan-computer seems to timeout, i have > tried quite some thing but nothing seems to work! Please help ;) > > -- > Lasse B. Jensen > ___ > LARTC mailing list / [EMAIL PROTECTED] > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Connection timeout on multipath
Hey all I have 5 adsl lines and have the following setup INTERNET ADSL lines 192.168.1.1-5 | | | | | - switch - | - eth1 linux nat box eth0 - | - LAN Right now i do the following, which are working correctly: I mark incoming packets via mark in iptables, connection are marked 1-5 Then i via 5 ip route tables adsl1-5 in each of them i specify the gateway (one of the adsl lines 192.168.1.1-5) This all works correctly. However i would like to have all adsllines i on multipath. i have tried: Marking all traffic with mark 1 ip route table adsl1 ip route add table adsl1 default equalize proto static nexthop via 192.168.1.1 dev eth1 nexthop via 192.168.1.2 dev eth1 nexthop via 192.168.1.3 dev eth1 nexthop via 192.168.1.4 dev eth1 nexthop via 192.168.1.5 dev eth1 I have applied the patches to the kernel from http://www.ssi.bg/~ja/#routes I have a "ping-operation" in the background as descripted in the dgd-usage.txt All traffic now is now sent via on of the adsl lines, everything seems to work, but Programs from the lan-computer seems to timeout, i have tried quite some thing but nothing seems to work! Please help ;) -- Lasse B. Jensen ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Help on multipath
hey all I have a setup with 4 adsl lines with gw 192.168.1.1-4 connected to a switch and then to eth1 i my linux box (ip 192.168.1.10) currently i mark connection via iptables and via: ip rule add fwmark 1 table m1 ip rule add fwmark 2 table m2 i send connection to the 2 tables. My problem is now that i would like to do something like this: ip route add default table m1 via 192.168.1.1 dev eth1 this part works fine the next doesnt ip route add default table m2 \ nexthop via 192.168.1.2 dev eth1 \ nexthop via 192.168.1.3 dev eth1 \ nexthop via 192.168.1.4 dev eth1 Can anyone help me the erro message is: RTNETLINK answers: Invalid argument Lasse B. Jensen ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/