Page 1 of 1

Listening in anonymous mode and incoming connections

Posted: Fri Jun 06, 2014 3:31 pm
by morfikov
I finally got a public ip, but there's something I don't get. When I was able to connect to the internet, I had maybe 30-40 "bad" incoming connections an hour, usually to port 22. But that was normal. The thing is that after an hour or two, I run qbittorrent and opened the port that was set in the application (port used for incoming connections). The ball at the bottom of the interface became green instantly, so I think everything was fine. I had 5-10 new connections per second I could see in iptables. But then I stopped qbittorrent and what I had seen was weird -- the connections still was trying to go to the open port in the same rate, more or less. It's been about 2 hours since I closed qbittorrent and I still see those connections in iptables.  Shortly after closing qbittorrent, I got 4-5k attempts per 5-6mins, it's a little bit large number. Now, after two hours, I have 1k for 20mins. The question is: is it a normal behavior when you close the app, you still receive connections, even after 2hrs? I don't think that any other app would do such a thing. Is it just a torrent feature?

The other thing concerns the anonymous mode. I just wanted to see how it works, so I enabled it. The listening process died after this action, and this is what I expected, but after starting qbittorent anew, the listening socket appeared again, despite the fact that the option was still enabled. Here's the shot:

Image

I can fix this by unchecking the option, clicking apply and switching it on again. Then the green ball becomes red, and the process dies. I'm not sure if this is a bug, or it just happened  to me, but I wanted to see what was going to happen to the incoming connections because without a listening process on that port, qbittorrent can't receive new connections. But it didn't work, the connections to that port still pound my wall. :]

Could you cast some light on this situation? I'm using debian testing + qbittorrent 3.1.8

Re: Listening in anonymous mode and incoming connections

Posted: Fri Jun 06, 2014 3:47 pm
by sledgehammer_999
When you join the bittorrent network you broadcast your IP to the trackers of each torrent in your list and to DHT (+PeX + LSD).
Other peers will see your IP and try to connect to you. Even if you close the app your IP will be in trackers list + DHT for quite a time. So peers will try to connect to you.
After some hours have passed you shouldn't see any traffic.

Use the anonymous mode only if you are using a proxy(and MAYBE if you are using VPN).

Re: Listening in anonymous mode and incoming connections

Posted: Fri Jun 06, 2014 3:55 pm
by morfikov
Ok, I get it now, thanks