Firewalling ports to open for access to web interface?

shwetha17

Member
May 24, 2018
785
0
16
I am running Debian6 squeeze on a VPS and rutorrent is set up and working but if I enable the firewall and try and connect to the webui I get the following error.
Code:
[26.03.2012 11:09:13] No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.With the firewall disabled everything works like it's supposed to.
I tried opening port 23876 which is the port listed in /home/username/.rtorrent.rc as the scgi port but I still don't get connected. There is another port I need to open.

My current rules from ufw withthe actual IPs removed are
Code
To Action From
-- ------ ----
6881 ALLOW Anywhere
Anywhere ALLOW xx.xx.xx.xx
22 ALLOW Anywhere
80/tcp ALLOW Anywhere
443 ALLOW Anywhere
Anywhere ALLOW xx.xx.xx.xx
23877 ALLOW Anywhere

What other ports do I need to open? I can't seem to locate what I need to know.
 

jith45

Member
May 25, 2018
960
0
16
1) rtorrent instance and your web-server with ruTorrent installation must be placed on the some host.
2) $scgi_port MUST BE CLOSED in firewall.
3) rtorrent incoming port (tcp) and dht port (udp, if you use it) and web-server port (80 or/and 443, tcp) must be opened in firewall.
4) Try to install plugin 'rpc' (or 'httprpc') and check result.