Page 1 of 1

outgoing port range ignored

Posted: Tue Jan 20, 2009 1:16 pm
by Stedevil
Hi

I run deluge on ubuntu 8.10 i386 and just updated to 1.1.0.

According to changelog you have

* Implement #79 ability to change outgoing port range

But when I try to set the sendports to eg 32881-32889 and specify tcp --sport 32881:32889 -j ACCEPT for iptables I get nothing but dropped packets, pretty much all of them from about sport 35000-60000

So it seems to me my outgoing portrange is simply ignored. I tried restarting Deluge a number of times, but the problem seems persistent. Am I the only one having these problems (or is just noone else filtering outgoing traffic?)

Re: outgoing port range ignored

Posted: Wed Jan 21, 2009 5:46 am
by gazpachoking
I tried to set up some traffic shaping on the outgoing traffic based on the outgoing port with no luck. I also tried to do it with the tos bit and couldn't get that to work either. There is however a distinct possibility that I failed to set up my filters correctly. Anyone out there using this feature and got it working?

Re: outgoing port range ignored

Posted: Wed Jan 21, 2009 11:20 am
by Stedevil
Yes, seems the UI in general dont affect the backend at all when it comes to outgoing stuff.

Putting --sport 30000:65535 for my firewall makes it stop blocking things, so it's not my firewall acting up either. So that verifies the portsvalues I set is just simply ignored.

Re: outgoing port range ignored

Posted: Wed Jan 21, 2009 3:07 pm
by andar
I've fixed the TOS byte in svn and I am currently working on fixing the outgoing ports bug.. Both of these fixes will be in 1.1.1.

Re: outgoing port range ignored

Posted: Wed Jan 21, 2009 3:20 pm
by Stedevil
Great :)

Re: outgoing port range ignored

Posted: Sun Jan 25, 2009 10:44 pm
by gazpachoking
Just upgraded to 1.1.1 and my traffic shaper can now filter my outgoing torrent traffic based on tos byte, nice! It was a bit confusing as (at least in my router, running vyatta) tos byte has been replaced with dscp, so I had to find a table to translate the tos value to dscp.
Thanks!