libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

Option no_connect_privileged_ports extends to web seed

Open kirill-782 opened this issue 2 years ago • 1 comments

libtorrent version (or branch): RC_1_2

platform/architecture: Widnows 10 x64

I think that this is a bit wrong, since torrent trackers work on standard HTTP (80) and HTTPS (443) ports. And for the web seed to work, you either have to disable this setting or change the configuration of the web server.

Line from log

(W) 2022-07-10T16:58:27 - URL seed name lookup failed. Torrent: "maps". URL: "http://example.com/". Error: "maps url seed (http://example.com/) failed: port blocked by port-filter"

kirill-782 avatar Jul 11 '22 08:07 kirill-782

Yes, I think I agree. Web seeds aren't gossiped around, so it's not as easy to get magnification on a DDoS attack, as far as I can tell.

arvidn avatar Jul 11 '22 13:07 arvidn

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 16 '22 03:10 stale[bot]

The error you posted suggests that the port-filter was enabled though, not no_connect_privileged_ports. Those are separate features.

as far as I can tell, the no_connect_privileged_ports does not apply to web seeds, but the port-filter applies to all peers. The expected error code for this feature is a peer_blocked_alert with a reason code peer_blocked_alert::privileged_ports.

arvidn avatar Oct 16 '22 15:10 arvidn

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 22 '23 11:01 stale[bot]

Hi, can we reopen this issue? My friend and I tried to create a web seed torrent, and when we test it with qBitTorrent, I hit the same issue. The only difference between a working default config and the config that can't function is this switch. And the error log is the same:

2/13/2024 3:12 PM - URL seed DNS lookup failed. Torrent: "blablabla". URL: "https://example.com/foo". Error: "blablabla url seed (https://example.com/foo) failed: port blocked by port-filter"

The error you posted suggests that the port-filter was enabled though, not no_connect_privileged_ports. Those are separate features.

As far as I can tell, there is no option for port-filter in qBitTorrent, did qBit do something internally with it when I enable Disallow connection to peers on privileged ports and should be avoided?

escape0707 avatar Feb 13 '24 06:02 escape0707