How to balance OUTBOUND traffic by packet if..

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am still looking for a solution to this problem.......
> junk@xxxxxxxxxxxxx wrote:
>> Hi,
>> Yes i did give this a try a couple of times before with no success
>>
>>  /sbin/iptables -I OUTPUT -m nth --every 2 --packet 1 -t mangle -j MARK
>> --set-mark 0x2
>>  /sbin/iptables -I OUTPUT -m nth --every 2 --packet 0 -t mangle -j MARK
>> --set-mark 0x1
>>
>>  ip rule :
>> 0:      from all lookup local
>> 201:    from all fwmark 0x2 lookup 202
>> 201:    from all fwmark 0x1 lookup 201
>> 32766:  from all lookup main
>> ip route show table 202
>> default via 212.199.28.244 dev ppp1  proto static  src 80.178.89.120
>> ip route show table 201
>> default via 212.199.26.111 dev ppp0  proto static  src 84.94.148.214
>> ip route show table main
>> 212.199.26.111 dev ppp0  proto kernel  scope link  src 84.94.148.214
>> 212.199.28.244 dev ppp1  proto kernel  scope link  src 80.178.89.120
>> default  proto static equalize
>>         nexthop via 212.199.26.111  dev ppp0 weight 1
>>         nexthop via 212.199.28.244  dev ppp1 weight 1
>
>
>
> I must admit I am more into tc than ip so I've never tried it.
>
> My guess is that you need to get rid of equalize/weights as these load
> balance per connection and the routes get cached.
>
> Andy.
>
>
how to use iproute/iptables to balance by packet OUTBOUND traffic between
2 PPP (pptp cable modem and pppoe adsl modem) links to the same ISP . also
by using the fact that the ISP dosen't filter  source IP address - meaning
i can use either PPP's link assigned IP address as the source IP in the ip
header.., it works for both devices.., what i want to achive is  : when
uploading a large file , i could use both devices to shoot data but bound
only to one source IP.

Naturally i could expect all data to go back through the device with that
corresponding IP , atleast that is what happens according to ethereal


how to use iproute/iptables to balance by packet OUTBOUND traffic between 2
PPP (pptp cable modem and pppoe adsl modem) links to the same ISP . also
by using the fact that the ISP dosen't filter  source IP address - meaning
i can use either PPP's link assigned IP address as the source IP in the ip
header.., it works for both devices.., what i want to achive is  : when
uploading a large file , i could use both devices to shoot data but bound
only to one source IP.

Naturally i could expect all data to go back through the device with that
corresponding IP , atleast that is what happens according to ethereal


_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux