All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] How to balance OUTBOUND traffic by packet if..
Date: Wed, 12 Jan 2005 11:10:49 +0000	[thread overview]
Message-ID: <41E505B9.9060700@dsl.pipex.com> (raw)
In-Reply-To: <1383.192.168.1.2.1105108845@maild.mine.nu>

junk@maild.mine.nu wrote:
> I am still looking for a solution to this problem.......
> 
>>junk@maild.mine.nu 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.

More things I would try - mark in postrouting, snat to the adress of 
downlink you want return to use. Get rid of the src adresses in in tables.

Andy.


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

  parent reply	other threads:[~2005-01-12 11:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-07 14:40 [LARTC] How to balance OUTBOUND traffic by packet if junk
2005-01-08 12:02 ` Andy Furniss
2005-01-11  0:28 ` junk
2005-01-11  2:31 ` gypsy
2005-01-11 10:02 ` junk
2005-01-12 11:10 ` Andy Furniss [this message]
2005-01-12 11:36 ` Andy Furniss
2005-01-13  3:21 ` Andy Furniss
2005-01-13 12:27   ` Andy Furniss
2005-01-13 12:27     ` Andy Furniss
2005-01-14  2:08     ` Patrick McHardy
2005-01-14  2:08       ` Patrick McHardy
2005-01-14 15:10       ` Andy Furniss
2005-01-14 15:10         ` Andy Furniss

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=41E505B9.9060700@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.