Page 1 of 1

Managing bandwidth (problem with the file transfer service)

Posted: 16 Feb 2011, 10:43
by B3M
Hi

Whenever I have the file transfer service running (FTP/BitTorrent) running the B3 consumes all available bandwidth. I’ve tried setting Torrent limits ridiculously low, and from the Web UI they appear to be respected. But still there is no bandwidth available to anything else.

If I turn off the service I don’t have this problem with all up and down bandwidth being consumed.

Re: Managing bandwidth (problem with the file transfer servi

Posted: 17 Feb 2011, 06:57
by RandomUsername
Are you sure it's bandwidth? It could be the number of connections the ftd is trying to open.

Re: Managing bandwidth (problem with the file transfer servi

Posted: 17 Feb 2011, 07:38
by B3M
RandomUsername wrote:Are you sure it's bandwidth? It could be the number of connections the ftd is trying to open.
This actually sounds more plausible. Is there an easy way to manage that?

Re: Managing bandwidth (problem with the file transfer servi

Posted: 17 Feb 2011, 10:21
by RandomUsername
Not that I'm aware of. The configuration options in the FTD seem fairly limited.

Re: Managing bandwidth (problem with the file transfer servi

Posted: 17 Feb 2011, 12:28
by Ubi
I *guess* you can check this by running lsof and counting the number of ports FTD is connected to. This doesn't stop it though. Limiting the port numbers on the firewall or in the FTD config might, but it's an ugly hack.

Re: Managing bandwidth (problem with the file transfer servi

Posted: 18 Feb 2011, 15:23
by Cheeseboy
This might give you a better idea about what is going on:

Code: Select all

# apt-get install iptraf

Code: Select all

# iptraf

Re: Managing bandwidth (problem with the file transfer servi

Posted: 18 Feb 2011, 17:20
by B3M
I don’t know what I’m looking for in IPTraf. But there are tens of thousands of TCP:80 requests. But I don’t have the server available externally, nor do I use it for anything on port 80 myself. Must be the FTD, right?

Re: Managing bandwidth (problem with the file transfer servi

Posted: 18 Feb 2011, 17:37
by Cheeseboy
I don’t know what I’m looking for in IPTraf. But there are tens of thousands of TCP:80 requests. But I don’t have the server available externally, nor do I use it for anything on port 80 myself. Must be the FTD, right?
Wrong, probably.
Look at:

Code: Select all

# grep port /etc/ftd/*
You will probably see something like this:

Code: Select all

proxyport=0
listenportstart=10000
listenportend=14000
dhtsupport=false
metadatasupport=true
peerexchangesupport=true
Port 80 is not in there.

The only thing that is configured to listen to port 80 by default is Apache.
Try turning it it off and see if things improve.

Cheers,

StinkyFeet

EDIT:
Check /var/log/apache2/access.log

Re: Managing bandwidth (problem with the file transfer servi

Posted: 18 Feb 2011, 17:46
by Ubi
Is all that port 80 (i.e. HTTP) traffic going into your local network or to exteranl unkown people?

Re: Managing bandwidth (problem with the file transfer servi

Posted: 18 Feb 2011, 18:26
by B3M
Ubi wrote:Is all that port 80 (i.e. HTTP) traffic going into your local network or to exteranl unkown people?
Port 80 is not forwarded to B3 from my router. So it must be internal stuff.