Add family
This commit is contained in:
parent
accfec70ef
commit
158e3943fc
1 changed files with 3 additions and 3 deletions
|
@ -19,15 +19,15 @@ firewall-cmd --add-masquerade
|
|||
set -l minisforum_ip 134.93.76.193
|
||||
|
||||
# HTTP
|
||||
firewall-cmd --add-rich-rule="rule forward-port port=80 protocol=tcp to-port=8000 to-addr=$minisforum_ip"
|
||||
firewall-cmd --add-rich-rule="rule family=ipv4 forward-port port=80 protocol=tcp to-port=8000 to-addr=$minisforum_ip"
|
||||
# HTTPS
|
||||
firewall-cmd --add-rich-rule="rule forward-port port=443 protocol=tcp to-port=4430 to-addr=$minisforum_ip"
|
||||
firewall-cmd --add-rich-rule="rule family=ipv4 forward-port port=443 protocol=tcp to-port=4430 to-addr=$minisforum_ip"
|
||||
|
||||
# TCP
|
||||
for port in \
|
||||
# Git SSH
|
||||
2222
|
||||
firewall-cmd --add-rich-rule="rule forward-port port=$port protocol=tcp to-port=$port to-addr=$minisforum_ip"
|
||||
firewall-cmd --add-rich-rule="rule family=ipv4 forward-port port=$port protocol=tcp to-port=$port to-addr=$minisforum_ip"
|
||||
end
|
||||
|
||||
firewall-cmd --list-all
|
||||
|
|
Loading…
Reference in a new issue