Add new IP

This commit is contained in:
Mo 2022-10-19 17:55:41 +02:00
parent 8a8a0e04ef
commit 930ef02c3b

View file

@ -27,8 +27,10 @@ firewall-cmd --remove-forward
firewall-cmd --add-masquerade
firewall-cmd --add-forward-port=port=80:proto=tcp:toport=8000:toaddr=134.93.62.232 # HTTP
firewall-cmd --add-forward-port=port=443:proto=tcp:toport=4430:toaddr=134.93.62.232 # HTTPS
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
# TCP
for port in \
@ -36,14 +38,14 @@ for port in \
2222 \
# Rustdesk
(seq 21115 21119)
firewall-cmd --add-forward-port=port=$port:proto=tcp:toport=$port:toaddr=134.93.62.232
firewall-cmd --add-forward-port=port=$port:proto=tcp:toport=$port:toaddr=$minisforum_ip
end
# UPD
for port in \
# Rustdesk
21116
firewall-cmd --add-forward-port=port=$port:proto=udp:toport=$port:toaddr=134.93.62.232
firewall-cmd --add-forward-port=port=$port:proto=udp:toport=$port:toaddr=$minisforum_ip
end
firewall-cmd --list-all