Use port range
This commit is contained in:
parent
930ef02c3b
commit
2670572788
1 changed files with 5 additions and 3 deletions
|
@ -29,15 +29,17 @@ firewall-cmd --add-masquerade
|
|||
|
||||
set -l minisforum_ip 134.93.77.73
|
||||
|
||||
firewall-cmd --add-forward-port=port=80:proto=tcp:toport=8000:toaddr=$minisforum_ip # HTTP
|
||||
firewall-cmd --add-forward-port=port=443:proto=tcp:toport=4430:toaddr=$minisforum_ip # HTTPS
|
||||
# HTTP
|
||||
firewall-cmd --add-forward-port=port=80:proto=tcp:toport=8000:toaddr=$minisforum_ip
|
||||
# HTTPS
|
||||
firewall-cmd --add-forward-port=port=443:proto=tcp:toport=4430:toaddr=$minisforum_ip
|
||||
|
||||
# TCP
|
||||
for port in \
|
||||
# Git SSH
|
||||
2222 \
|
||||
# Rustdesk
|
||||
(seq 21115 21119)
|
||||
21115-21119
|
||||
firewall-cmd --add-forward-port=port=$port:proto=tcp:toport=$port:toaddr=$minisforum_ip
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue