Page 1 of 1

Deluge is downloading very slowly and is not seeding

Posted: Tue Jan 20, 2015 6:43 pm
by Gollum
Hi,

I have a problem with my deluge server. It is not seeding any more and when I want to download something, this is really slow (when it's agree to download). It can't be the server (running on a dedicated) and neither the torrents (I tested them semewhere else). The installation worked during some months and recently it stopped worrking. Without I've done anything.

I have a firewall. When I desactive it, it seems to work but I don't understand why because I opened the ports.

I'm using deluged 1.3.3 and libtorrent 0.15.10.0 on debian wheezy.
For output, I'm using ports 49152 -> 49162 and for input : 6881 -> 6891

My firewall config is :

Code: Select all

iptables -t filter -F
iptables -t filter -X                                                                                                                                                                                                  
iptables -t filter -P INPUT DROP
iptables -t filter -P FORWARD DROP
iptables -t filter -P OUTPUT DROP                                                                                                                                                                          
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT                                                                                                                                                                              
iptables -t filter -A INPUT -i lo -j ACCEPT
iptables -t filter -A OUTPUT -o lo -j ACCEPT                                                                                                                                                                                       
iptables -t filter -A INPUT -p icmp -j ACCEPT
iptables -t filter -A OUTPUT -p icmp -j ACCEPT
# here I open some other ports not dealing with deluge then the deluge ports
iptables -t filter -A INPUT -p udp --dport 6881:6891 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 6881:6891 -j ACCEPT
iptables -t filter -A OUTPUT -p udp --dport 6881:6891 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 6881:6891 -j ACCEPT
iptables -t filter -A INPUT -p udp --dport 49152:49162 -j ACCEPT
iptables -t filter -A OUTPUT -p udp --dport 49152:49162 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 49152:49162 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 49152:49162 -j ACCEPT
My core.conf is :

Code: Select all

{
  "file": 1,
  "format": 1
}{
  "info_sent": 0.0,
  "lsd": true,
  "send_info": false,
  "move_completed_path": "/opt/deluge/complete",
  "enc_in_policy": 1,
  "queue_new_to_top": false,
  "ignore_limits_on_local_network": true,
  "rate_limit_ip_overhead": true,
  "daemon_port": 58846,
  "natpmp": true,
  "max_active_limit": -1,
  "utpex": true,
  "max_active_downloading": -1,
  "max_active_seeding": -1,
  "allow_remote": false,
  "max_half_open_connections": 50,
  "download_location": "/opt/deluge/progress",
  "compact_allocation": false,
  "max_upload_speed": -1.0,
  "cache_expiry": 60,
  "prioritize_first_last_pieces": false,
  "auto_managed": true,
  "enc_level": 2,
  "max_connections_per_second": 20,
  "dont_count_slow_torrents": true,
  "random_outgoing_ports": false,
  "max_upload_slots_per_torrent": -1,
  "new_release_check": true,
  "enc_out_policy": 1,
  "outgoing_ports": [
    49152,
    49162
  ],
  "seed_time_limit": 180,
  "cache_size": 512,
  "share_ratio_limit": 2.0,
  "max_download_speed": -1.0,
  "geoip_db_location": "/usr/share/GeoIP/GeoIP.dat",
  "torrentfiles_location": "/var/lib/deluge/torrent",
  "stop_seed_at_ratio": false,
  "peer_tos": "0x00",
  "listen_interface": "eth0",
  "upnp": true,
  "max_download_speed_per_torrent": -1,
  "max_upload_slots_global": 200,
  "enabled_plugins": [
    "Label",
    "Notifications",
    "Execute",
    "Blocklist"
  ],
Has someone an idea ?
Thank you :)

Regards,

Re: Deluge is downloading very slowly and is not seeding

Posted: Tue Jan 20, 2015 10:20 pm
by scoobynz
You dont need to open outgoing ports. Try clearing the outgoing ports in Edit -->Preferences-->Network and selecting random.

Incoming ports should be high to bypass ISP restrictions. Try selecting say 1 x incoming port, say 49162.

I think you can reduce the last 8 x lines of your iptables commands to;
iptables -A INPUT -i $INTERFACE -p tcp --dport 49162 -j ACCEPT
iptables -A INPUT -i $INTERFACE -p udp --dport 49162 -j ACCEPT

Re: Deluge is downloading very slowly and is not seeding

Posted: Tue Jan 20, 2015 10:50 pm
by Gollum
Thank's for your reply.

I tried to use only the port 49162 for incoming but it is still not working.
For the outgoing, I can't use random ports because my firewall is locking every port non explicitely allowed.