[LARTC] Multiple upload links on same eth

2004-08-30 Thread Alex



Hello..

I have a big problem and It seems I can't solve 
it..

Scenario: Linux server , 2 eths (one 
for Lan (eth0), one for Internet (eth1)). I use NAT for LAN 
clients..

The internet eth is linked into a switch , along 
with 6 sdsl modems.. (256 kbit each link - most probably an htb on 
the other side)..

So , I made 6 aliases to my eth1 with ip's for the 
DSL connections.. ( 82.xx.xx.50 - .56)

Now , how can I make some load balancing , in order 
to achieve a download rate of 256 * 6 kbit ?

I tried to use sch_teql , but seems that tc cannot 
work with aliases...

Anybody can help me here ?



Regards
 Alex


Re: [LARTC] IMQ on 2.6.x + iptraf = problem

2004-08-30 Thread Andre Correa
Hi Bety, a problem like this was reported on IMQ mailling list a couple 
of weeks ago. It is still pending review but it must be somehow related 
  to iptraf. :-|

I'm sorry for not being able to give you some positive advice on it 
for now.

Tks for reporting this issue. If you need assistance feel free to write 
me privately or to join our list at www.linuximq.net

Cheers
Andre

[EMAIL PROTECTED] wrote:
Does anybody have the following problem?
Affected:
IMQ interfaces with --todev target on PREROUTING chain
appear only on 2.6.x kernels (2.4.x working good)
Counters on PREROUTING chain working good (with iptraf sniffing on any
interface), but imq interfaces lost TCP packets which are forwarded from the
internet to the network behind router (only TCP; the rest of traffic like
icmp, udp is ok).
Try to make two imq interfaces on your internet interface and download file
(via ftp, www or somtging else),  NOT from your internet router but from
computer behind NAT (behind router) and then enable iptraf. Because for
router traffic everything working fine.
your computer --- router (with nat, imq and iptraf) --- imq0, and imq1 ---
internet interface --- Internet
configuration:
  iptables -F
  iptables -X
  iptables -Z
  iptables -F -t nat
  iptables -X -t nat
  iptables -F -t mangle
  iptables -X -t mangle
  iptables -P FORWARD ACCEPT
  iptables -P INPUT ACCEPT
  iptables -P OUTPUT ACCEPT
iptables -t nat -A POSTROUTING -s $i -o $INTERNET_ETH -d 0/0 -j SNAT --to
$INTERNET_IP
  # Download
iptables -t mangle -A PREROUTING -i $INTERNET_ETH -j IMQ --todev 0
  # Upload
iptables -t mangle -A POSTROUTING -o $INTERNET_ETH -j IMQ --todev 1
ip link set imq0 up
ip link set imq1 up
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] HTB.init for zebra BGP

2004-08-30 Thread Kristiadi Himawan



Hi,I have successfully shape bandwidth using htb.init using ip 
address , butwhen i try to shape zebra BGP using their ip address and BGP 
port it can'tmatch the class for BGP and always get the default 
class.Here's my htb.init script in the bridge 
:#eth0-2:50.bgpRATE=128kbitRULE=192.168.192.163RULE=192.168.199.22RULE=*:179#eth1-2:50.bgpRATE=128kbitRULE=192.168.192.163,RULE=192.168.199.22,RULE=*:179,And 
here's the tcpdump result for the traffic :09:57:36.875357 
192.168.199.22.1843  192.168.192.163.179: P1280098168:1280098187(19) ack 
1407875708 win 34752 nop,nop,timestamp58101584 523141495: BGP 
(KEEPALIVE) (DF) [tos 0x2,ECT]09:57:36.875730 192.168.192.163.179  
192.168.199.22.1843: . ack 19 win 5792nop,nop,timestamp 523201215 
58101584 (DF)09:57:37.166515 192.168.192.163.179  
192.168.199.22.1843: P 1:20(19) ack 19win 5792 nop,nop,timestamp 
523201505 58101584: BGP (KEEPALIVE) (DF) [tos0x2,ECT]09:57:37.166543 
192.168.199.22.1843  192.168.192.163.179: . ack 20 win34752 
nop,nop,timestamp 58101875 523201505 (DF)09:58:36.876202 
192.168.199.22.1843  192.168.192.163.179: P 19:38(19) ack20 win 34752 
nop,nop,timestamp 58161594 523201505: BGP (KEEPALIVE) (DF)[tos 
0x2,ECT]09:58:36.876477 192.168.192.163.179  192.168.199.22.1843: . ack 
38 win 5792nop,nop,timestamp 523261218 58161594 
(DF)09:58:37.174566 192.168.192.163.179  192.168.199.22.1843: P 
20:39(19) ack38 win 5792 nop,nop,timestamp 523261516 58161594: BGP 
(KEEPALIVE) (DF)[tos 0x2,ECT]09:58:37.174589 192.168.199.22.1843  
192.168.192.163.179: . ack 39 win34752 nop,nop,timestamp 58161892 
523261516 (DF)09:59:36.877134 192.168.199.22.1843  
192.168.192.163.179: P 38:57(19) ack39 win 34752 nop,nop,timestamp 
58221604 523261516: BGP (KEEPALIVE) (DF)[tos 0x2,ECT]09:59:36.877456 
192.168.192.163.179  192.168.199.22.1843: . ack 57 win 
5792nop,nop,timestamp 523321222 58221604 (DF)09:59:37.181463 
192.168.192.163.179  192.168.199.22.1843: P 39:58(19) ack57 win 5792 
nop,nop,timestamp 523321526 58221604: BGP (KEEPALIVE) (DF)[tos 
0x2,ECT]Any idea how to overcome this?