systemctl start firewalld
systemctl restart firewalld.service
firewall-cmd —zone=public —add-port=1556/tcp —permanent
firewall-cmd —zone=public —add-port=13724/tcp —permanent
firewall-cmd —zone=public —add-port=13782/tcp —permanent
firewall-cmd —reload
firewall-cmd —zone=public —list-ports
[root@ntp-server-it-ap02 ~]# systemctl status firewalld.service● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)Active: active (running) since Fri 2020-07-03 18:06:32 CST; 8s agoDocs: man:firewalld(1)Main PID: 14748 (firewalld)CGroup: /system.slice/firewalld.service└─14748 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopidJul 03 18:06:32 ntp-server-it-ap02 systemd[1]: Starting firewalld - dynamic firewall daemon...Jul 03 18:06:32 ntp-server-it-ap02 systemd[1]: Started firewalld - dynamic firewall daemon.Jul 03 18:06:33 ntp-server-it-ap02 firewalld[14748]: WARNING: ICMP type 'beyond-scope' is not supported by the kernel for ipv6.Jul 03 18:06:33 ntp-server-it-ap02 firewalld[14748]: WARNING: beyond-scope: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time.Jul 03 18:06:33 ntp-server-it-ap02 firewalld[14748]: WARNING: ICMP type 'failed-policy' is not supported by the kernel for ipv6.Jul 03 18:06:33 ntp-server-it-ap02 firewalld[14748]: WARNING: failed-policy: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time.Jul 03 18:06:33 ntp-server-it-ap02 firewalld[14748]: WARNING: ICMP type 'reject-route' is not supported by the kernel for ipv6.Jul 03 18:06:33 ntp-server-it-ap02 firewalld[14748]: WARNING: reject-route: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time.[root@ntp-server-it-ap02 ~]# rpm -qa|grep firewalld;rpm -qa|grep firewall-configfirewalld-filesystem-0.4.4.4-6.el7.noarchfirewalld-0.4.4.4-6.el7.noarchfirewall-config-0.4.4.4-6.el7.noarch[root@ntp-server-it-ap02 ~]# rpm -qi firewalld firewall-configName : firewalldVersion : 0.4.4.4Release : 6.el7Architecture: noarchInstall Date: Thu 21 May 2020 09:10:13 AM CSTGroup : UnspecifiedSize : 1852322License : GPLv2+Signature : RSA/SHA256, Mon 12 Jun 2017 07:17:20 PM CST, Key ID 199e2f91fd431d51Source RPM : firewalld-0.4.4.4-6.el7.src.rpmBuild Date : Mon 12 Jun 2017 07:12:33 PM CSTBuild Host : x86-037.build.eng.bos.redhat.comRelocations : (not relocatable)Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>Vendor : Red Hat, Inc.URL : http://www.firewalld.orgSummary : A firewall daemon with D-Bus interface providing a dynamic firewallDescription :firewalld is a firewall service daemon that provides a dynamic customizablefirewall with a D-Bus interface.Name : firewall-configVersion : 0.4.4.4Release : 6.el7Architecture: noarchInstall Date: Thu 21 May 2020 09:11:44 AM CSTGroup : UnspecifiedSize : 1158110License : GPLv2+Signature : RSA/SHA256, Mon 12 Jun 2017 07:17:21 PM CST, Key ID 199e2f91fd431d51Source RPM : firewalld-0.4.4.4-6.el7.src.rpmBuild Date : Mon 12 Jun 2017 07:12:33 PM CSTBuild Host : x86-037.build.eng.bos.redhat.comRelocations : (not relocatable)Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>Vendor : Red Hat, Inc.URL : http://www.firewalld.orgSummary : Firewall configuration applicationDescription :The firewall configuration application provides an configuration interface forfirewalld.[root@ntp-server-it-ap02 ~]#[root@ntp-server-it-ap02 ~]# firewall-cmd --permanent --zone=public --add-port=323/udpWarning: ALREADY_ENABLED: 323:udpsuccess[root@ntp-server-it-ap02 ~]# firewall-cmd --reloadsuccess[root@ntp-server-it-ap02 ~]#[root@ntp-server-it-ap02 ~]#[root@ntp-server-it-ap02 ~]# firewall-cmd --zone=public --list-ports323/udp[root@ntp-server-it-ap02 ~]#
[root@ntp-server-it-ap02 ~]# firewall-cmd --list-all --permanentpublictarget: defaulticmp-block-inversion: nointerfaces:sources:services: ssh dhcpv6-client ntpports: 323/udpprotocols:masquerade: noforward-ports:source-ports:icmp-blocks:rich rules:[root@ntp-server-it-ap02 ~]#
firewall-cmd —permanent —zone=public —remove-port=8530/tcp
