Compare commits
2 commits
2e7b14191a
...
158e3943fc
Author | SHA1 | Date | |
---|---|---|---|
158e3943fc | |||
accfec70ef |
1 changed files with 5 additions and 14 deletions
|
@ -16,27 +16,18 @@ firewall-cmd --remove-forward
|
||||||
|
|
||||||
firewall-cmd --add-masquerade
|
firewall-cmd --add-masquerade
|
||||||
|
|
||||||
set -l minisforum_ip 134.93.77.73
|
set -l minisforum_ip 134.93.76.193
|
||||||
|
|
||||||
# HTTP
|
# HTTP
|
||||||
firewall-cmd --add-forward-port=port=80:proto=tcp:toport=8000:toaddr=$minisforum_ip
|
firewall-cmd --add-rich-rule="rule family=ipv4 forward-port port=80 protocol=tcp to-port=8000 to-addr=$minisforum_ip"
|
||||||
# HTTPS
|
# HTTPS
|
||||||
firewall-cmd --add-forward-port=port=443:proto=tcp:toport=4430:toaddr=$minisforum_ip
|
firewall-cmd --add-rich-rule="rule family=ipv4 forward-port port=443 protocol=tcp to-port=4430 to-addr=$minisforum_ip"
|
||||||
|
|
||||||
# TCP
|
# TCP
|
||||||
for port in \
|
for port in \
|
||||||
# Git SSH
|
# Git SSH
|
||||||
2222 \
|
2222
|
||||||
# Rustdesk
|
firewall-cmd --add-rich-rule="rule family=ipv4 forward-port port=$port protocol=tcp to-port=$port to-addr=$minisforum_ip"
|
||||||
21115-21119
|
|
||||||
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=$minisforum_ip
|
|
||||||
end
|
end
|
||||||
|
|
||||||
firewall-cmd --list-all
|
firewall-cmd --list-all
|
||||||
|
|
Loading…
Reference in a new issue