2017년 3월 22일 수요일

CentOS 7.x How to open 53 port

CentOS 7.x How to open 53 port


[root@vps log]# firewall-cmd --permanent --zone=public --add-service=dns
success
[root@vps log]# firewall-cmd --reload
success
[root@vps log]# firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0
  sources:
  services: dhcpv6-client dns ftp http https mysql ssh
  ports:
  protocols:
  masquerade: no
  forward-ports:
  sourceports:
  icmp-blocks: echo-request
  rich rules:

[root@vps log]# netstat -ant | grep :53
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN


how to remove

# firewall-cmd --permanent --zone=public --remove-service=dns

댓글 없음:

댓글 쓰기