Ticket #900 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

The default for port_range should be "6881-6999", not "6890-6999"

Reported by: anonymous Owned by: rakshasa
Priority: normal Component: rtorrent
Version: Severity: normal
Keywords: Cc:

Description

The default for port_range is "6890-6999". That means that rtorrent does not use the (old) default port range which you would expect for bittorrent usage (6881-6889). The FAQ at  http://dessent.net/btfaq/#ports says that 6881-6889 gets used prior to version 3.2, and that it has been extended to 6881-6999 as of BitTorrent 3.2. rtorrent uses the "extended" part only.

Therefor e.g. the Bittorrent macro for Shorewall fails, which uses 6881-6889 (I'll file a separate bug about this).

The patch seems quite trivial, but it's not tested: --- rtorrent-0.6.4/src/core/manager.cc.orig 2006-10-27 15:48:48.000000000 +0200

+++ rtorrent-0.6.4/src/core/manager.cc 2007-04-28 17:20:48.557490410 +0200 @@ -125,7 +125,7 @@

m_hashingView(NULL),

m_pollManager(NULL),

  • m_portFirst(6890), + m_portFirst(6881),

m_portLast(6999) {

m_downloadStore = new DownloadStore?();

This bug is reported in Launchpad for the Ubuntu distribution at:  https://bugs.launchpad.net/ubuntu/+source/rtorrent/+bug/110803

Change History

Changed 5 years ago by rakshasa

  • status changed from new to closed
  • resolution set to fixed

I think i remember someone commenting that it was better to use a default from 6890 due to firewalls blocking the defaults. I've considered setting the default range somewhere high, with random set by default.

And looking at the code, seem random is turned on.

Note: See TracTickets for help on using tickets.