Skip to content

Commit 2eea501

Browse files
authored
Update cfg.sh
1 parent e714fdd commit 2eea501

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

kiki/cfg.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ systemctl daemon-reload
1515
systemctl start qbittorrent
1616
systemctl enable qbittorrent
1717

18-
# Port 80 cannot be used by normal users, bu we can redirect it to our port so that we dont have to enter the port in the address bar
19-
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 2000
20-
# To remove the redirect, the following line can be used
21-
# iptables -t nat --line-numbers -n -L
22-
2318
# Add firewall rule for our port and port 80 (both will be useable)
2419
firewall-cmd --add-port=2000/tcp --permanent
20+
### Port 80 cannot be used by normal users (reserved for http), bu we can redirect it to our port so that we dont have to enter the port in the address bar
21+
firewall-cmd --permanent --add-forward-port=port=80:proto=tcp:toport=2000
2522
firewall-cmd --permanent --add-service=http
23+
# If it doesn't work with only this, try this:
24+
# firewall-cmd --permanent --zone=public --remove-port=80/tcp
2625
systemctl restart firewalld
2726

2827
# Configure OpenVPN

0 commit comments

Comments
 (0)