![]() Registered Member ![]()
|
Hello friends!
I'm using ktorrent behind firewall, which deny all incoming attempts except ports 22, 80 and 443. I don't have access to tune firewall. I'm running ktorrent from an ordinary user account. So I set NAT port redirection: all incoming requests for port 443 automaticaly redirected to port 50443. It' was done by "iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 50443" command. Main goal: 1. Tell to tracker and peers, that all incoming TCP connections are accepting on port 443. 2. Instead of listening port 443, listen port 50443. The question is: how explain for ktorrent, that it should listen for incoming peers connections on port 50443, but in the same time to report port 443 for tracker/peers from outside world? And maybe one more question: where in source of ktorrent-2.2 should I search to add new option in settings dialog: "Listen port number"? P.S: I tried to use "setpcaps" from root login to give ktorrent permission to open privileged port, but recieve "operation not permited". Don't know how to fix it. P.P.S: Maybe I'm paranoid, but I don't want to set "setuid" bit for ktorrent executable. |
![]() Moderator ![]()
|
This is not possible currently. But we could add this feature. There already is a feature to send a custom IP or hostname to the tracker, so we can put that in the same place in the GUI.
It shouldn't be difficult to implement. GUI changes would need to go in generalpref.ui and pref.cpp, httptracker.cpp is the tracker code. You will need to add an entry in the ktorrent.kcfg to add it to the settings. The 2.2 code can be found on the downloads page. |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]