qBittorrent has the ability to work as a tracker (Advanced > Enable embedded tracker). The default port is 9000. When I run qbittorrent on the host, it works great and I see port 9000 in sockstat output and this message in qbittorrent log:
However, when I run qbittorrent inside the jail, I see the following message in the log:
In the jail case, I don't see port 9000 in the sockstat output. In this regard, I concluded that the problem is probably not in the qbittorrent settings, but in the jail or sysctl settings on host machine.
jail.conf (host)
sysctl.conf (host) - here I experimentally set permissive options I knew
Please recommend the host settings (jail, sysctl) for the host so that qbittorrent can run on port 9000 as a tracker.
Code:
(I) 2022-09-21T20:59:23 - Embedded Tracker: Now listening on IP: 0.0.0.0, port: 9000
Code:
(W) 2022-09-21T21:03:40 - Embedded Tracker: Unable to bind to IP: 0.0.0.0, port: 9000. Reason: Protocol type not supported
jail.conf (host)
Code:
exec.clean;
exec.start="sh /etc/rc";
exec.stop="sh /etc/rc.shutdown";
ip4=inherit;
mount.devfs;
qbit {
path="/qbit";
}
sysctl.conf (host) - here I experimentally set permissive options I knew
Code:
net.inet.ip.forwarding=1
security.jail.chflags_allowed=1
security.bsd.see_jail_proc=1
security.jail.allow_raw_sockets=1
security.jail.sysvipc_allowed=1
Please recommend the host settings (jail, sysctl) for the host so that qbittorrent can run on port 9000 as a tracker.