Hi,

Thanks for this answer.

Actually, I am resetting the conntrack table with "conntrack -F" everytime I 
restart shorewall.
So the problem should not occur. But it keeps loadbalancing.

Also, thanks for taking the attention to 
http://www.shorewall.org/MultiISP.html#Local

But unfortunately my application does not support specifying some  interfaces 
to bind.
It can either bind to all interfaces (0.0.0.0) or just one interface. I can't 
select a specific interface because I have to listen on local (eth) interface 
as well.

What else can I try  ?

Is the following configuration enough ?

2:P     192.168.254.0/24             0.0.0.0/0              udp     5060
2       $FW                          0.0.0.0/0              udp     5060

How can I  force that ?

Should I also add something like "ppp0 ppp1" to the "masq" file ?

Thanks.

-----Original Message-----
From: Tom Eastep [mailto:[email protected]] 
Sent: Wednesday, March 19, 2014 10:59 PM
To: [email protected]
Subject: Re: [Shorewall-users] multi ISP - port based routing

On 3/19/2014 12:31 PM, İlker Aktuna wrote:

> Now I need to route a specific application through only  one of these 
> ppp interfaces.
> 
> I follow the instructions in 
> http://shorewall.net/MultiISP.html#Applications
> 
> So I add the following 2 lines to my tcrules file:
> 
> 2:P     192.168.254.0/24             0.0.0.0/0              udp     5060
> 2       $FW                          0.0.0.0/0              udp     5060
> 
> But the result does not change. The packets for this app are still 
> being loadbalanced.
> 
> My providers file is like:
> 
> vdsl    1       1       -       ppp1    -       track,balance=4
> adsl    2       2       -       ppp0    -       track,balance=1  
> 
> What am I missing ? Is there another step I should take ?

I doubt that new flows are being loadbalanced, but existing flows will stay 
where they are until you delete there conntrack entries using the 'conntrack -F 
...' command. Also, pay particular attention to 
http://www.shorewall.org/MultiISP.html#Local

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to