centos 8 방화벽 설정에서 접근 가능한 port 추가하는 방법
조회수 452회
~]$ sudo netstat -nltp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 972/sshd
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 673/systemd-resolve
tcp6 0 0 :::22 :::* LISTEN 972/sshd
tcp6 0 0 :::5355 :::* LISTEN 673/systemd-resolve
~]$ sudo firewall-cmd --add-port=8080/tcp --zone=public --permanent
Warning: ALREADY_ENABLED: 8080:tcp
success
현재 이상태입니다... 8080을 추가하려면 어떻게 해야할까요...?
댓글 입력