我一直在使用 Transmission BitTorrent GTK 客户端在 ubuntu 12.04 LTS 上进行端口转发。我只需转到首选项并设置要打开的特定端口,并阻止它在启动时随机化端口。一切都运行良好,但每次重新启动时,我都必须手动再次打开它。
我只是想知道是否有人知道如何使用 transmission-daemon 做同样的事情,这样我就可以在启动时运行它。我查看了文件“/root/.config/transmission-daemon/settings.json”,并对其进行了一些更改,使其看起来像这样:
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/root/Downloads",
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/root/Downloads",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"message-level": 2,
"peer-congestion-algorithm": "",
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 8888,
"peer-port-random-high": 8888,
"peer-port-random-low": 8888,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": 1,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": false,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{55d4d000989c62965af36b6e6638320ae1c06c4f/JRl7s8X",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "",
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": true,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 18,
"upload-slots-per-torrent": 14,
"utp-enabled": true,
"watch-dir": ".config/transmission-daemon/settings.json",
"watch-dir-enabled": true
}
我还想知道是否可以通过使用同一台计算机上的一个或多个客户端来打开多个端口
答案1
这里有两件事:
在 transmission-gtk/daemon 应用程序中将用于转发的端口“p”设置为静态,这可以在配置文件中完成并保存。这将在重启后保持。
在路由器中创建端口转发规则,这一点更为重要。此规则规定,任何通过端口 p(第 1 点)进入路由器外部 IP 的网络数据包,都会被正确转发到在 Ubuntu 内部/私有 IP 地址(如 192.168.100.1)上监听该端口 p 的 torrent 程序。。)。要做到这一点,您需要登录/访问路由器本身,这在公司网络中可能无法实现。在家用路由器 (192.168.。/html/index1.html),但是许多路由器没有持久内存,无法在重启后传播该规则。
这回答了你的问题吗?仍然不完全确定它是什么。