OS - linux firewall
Firewall
- 방화벽 상태 확인
firewall-cmd --state
- 특정 IP 방화벽 해제
firewall-cmd --permanent --add-source=127.0.0.1
- 특정 IP 특정 port허용
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address=127.0.0.1 port port="58004" protocol="tcp" accept'
IP CHECK
- grep을 통해 공인 및 사설 IP확인
ip addr | grep "inet "
댓글남기기