Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port filter blocks my own IP when using "Disallow connection to peers on proveleged ports" #13804

Closed
sakkamade opened this issue Nov 24, 2020 · 3 comments
Labels
Core Network Issues related to network connectivity

Comments

@sakkamade
Copy link

sakkamade commented Nov 24, 2020

qBittorrent version and Operating System

qBittorrent 4.3.0.1, Windows 10 1903

What is the problem

In the log of blocked IPs I can see my own IP more frequently than once per minute:
24/11/2020 8:30 - **.**.**.*** was blocked. Reason: port filter.

What can be a reason for this?

What is the expected behavior

Not seeing my own IP there, I guess.

Steps to reproduce

Turn on Disallow connection to peers on proveleged ports.

Extra info(if any)

It's doesn't depend whether Windows Defender turned off or on.
Using only Windows Firewall.
Port is always 5-digits.
Availing myself of no proxy/VPN.
Within router settings the each of the ports (internal and external of UDP and TCP) are forwarded by UPnP just fine, leastwise seeming to.

@sakkamade sakkamade changed the title Port filter blocks my own ip Port filter blocks my own IP Nov 24, 2020
@Seeker2
Copy link

Seeker2 commented Nov 24, 2020

It's a loopback somewhere. Usually involves a router and/or multiple IP addresses to have this happen normally.

The problem can possibly be traced back to qBitTorrent not knowing its own IP address, so when it's fed that IP address from PEX (Peer EXchange) or DHT...qBT attempts to connect to it and then you see the Port filter blocking your own IP.

At least that's one way your problem can happen...no doubt there's others which may be bug-related instead of "weird" networking.

Disallow connection to peers on privileged ports ...means qBT "sees" the connection attempt as though it was on a "low" port number (less than 1000?)...but that shouldn't be happening because you also added:
"Port is always 5-digits."
That's still a possibility if the outgoing port number isn't the same as the incoming port number. If the networking traffic goes through a filter, it's possible the source port number gets changed at least as it's perceived by the destination. (Such as with "imperfect" proxy servers.)
Either that or qBT sees the incoming connection originating from 0.0.0.0 or 127.0.0.1 or something and blocks that ...incorrectly stating the reason for the block was "peers on privileged ports".

@FranciscoPombal FranciscoPombal added Core Network Issues related to network connectivity labels Nov 29, 2020
@FranciscoPombal FranciscoPombal changed the title Port filter blocks my own IP Port filter blocks my own IP when using "Disallow connection to peers on proveleged ports" Nov 29, 2020
@sakkamade
Copy link
Author

Just fancy to denote that perfectly equal issue I experience on Linux as well—Manjaro, to be precise—the cause, thus, is everything but Windows.

@sakkamade
Copy link
Author

sakkamade commented Jun 18, 2021

I guess this issue is the result of #10791, hence is the duplicate.
Since I am also seeing my own IP in the peers list.

@qbittorrent qbittorrent locked and limited conversation to collaborators Jul 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core Network Issues related to network connectivity
Projects
None yet
Development

No branches or pull requests

3 participants