self training/lin
centos firewall-cmd
atthis
2025. 3. 13. 16:04
# 모든 아이피의 포트 허용
firewall-cmd --permanent --add-port=[PORT]/tcp
# 특정 아이피의 포트 허용
firewall-cmd --add-rich-rule="rule family="ipv4" source address="[IP]" port protocol="tcp" port="[PORT]" accept" --permanent