-
-
Notifications
You must be signed in to change notification settings - Fork 87
Home
Andriy Lysnevych edited this page Apr 18, 2019
·
1 revision
/etc/systemd/system/tracker.service:
[Unit]
Description=WebTorrent Tracker
[Service]
Type=simple
Restart=always
RestartSec=1
User=tracker
WorkingDirectory=/opt/wt-tracker
ExecStart=/opt/wt-tracker/bin/wt-tracker
[Install]
WantedBy=multi-user.target
Managing the service:
systemctl enable|disable|stop|start tracker
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo apt install iptables-persistent netfilter-persistent