Record
개념
-
목차
[root@OWNER-WEB:/usr/lib/firewalld/services]$ firewall-cmd --list-all
[root@OWNER-WEB:/usr/lib/firewalld/services]$ firewall-cmd --list-all --zone public
public (active)
target: default
icmp-block-inversion: no
interfaces: ens192
sources:
services: ssh dhcpv6-client
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
[root@OWNER-WEB:/usr/lib/firewalld/services]$ firewall-cmd --get-active-zones
public
interfaces: ens192
[root@OWNER-WEB:/usr/lib/firewalld/services]$ firewall-cmd --zone=public --list-services
[root@OWNER-WEB:/usr/lib/firewalld/services]$ ifconfig
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::42:2eff:feee:2499 prefixlen 64 scopeid 0x20<link>
ether 02:42:2e:ee:24:99 txqueuelen 0 (Ethernet)
RX packets 2419390 bytes 191719680 (182.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5397629 bytes 9238052635 (8.6 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.25.1.89 netmask 255.255.255.0 broadcast 172.25.1.255
inet6 fe80::c816:7147:6274:44de prefixlen 64 scopeid 0x20<link>
inet6 fe80::8664:7ffe:28e1:c3cf prefixlen 64 scopeid 0x20<link>
ether 00:50:56:8d:99:f6 txqueuelen 1000 (Ethernet)
RX packets 1127465449 bytes 608775737773 (566.9 GiB)
RX errors 0 dropped 160835 overruns 0 frame 0
TX packets 404899531 bytes 1230204547805 (1.1 TiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@owner:/root]$ firewall-cmd --zone=public --change-interface=eth0
success