自从编译 openwrt 时加入 Qbittorent 后,transmission 就出现了 403 错误。

1
2
3
4
5
6
7
8
403: Forbidden
Unauthorized IP Address.

Either disable the IP address whitelist or add your address to it.

If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.

If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.

搜索了一些中文资料, 都是你抄我, 我抄你. 没有一个正确的答案. 自己研究了一下配置文件, 尝试了一下已经解决了.
一般都是说到把 127.0.0.1 改成 0.0.0.0. 但是问题依然存在。
但是肯定是 rpc-whitelist 的问题。所以还是在这个上面找原因。

1
nano /etc/config/transmission

检查option rpc_host_whitelist '127.0.0.1,192.168.1.*'这项。果然,白名单被改成了默认的网段。
果断改成

1
option rpc_host_whitelist '127.0.0.1,192.168.2.*'

呵呵,一切 OK 了