[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
댓글 없음:
댓글 쓰기