firewalld
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| firewalld [2015/11/15 12:08] – created michael | firewalld [2021/04/24 07:40] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| [root@ system]# firewall-cmd --get-zones | [root@ system]# firewall-cmd --get-zones | ||
| block dmz drop external home internal public trusted work | block dmz drop external home internal public trusted work | ||
| + | |||
| + | each zone has an *.xmo file in / | ||
| QUERY DEFAULT ZONE: | QUERY DEFAULT ZONE: | ||
| [root@ system]# firewall-cmd --get-default-zone | [root@ system]# firewall-cmd --get-default-zone | ||
| public | public | ||
| + | |||
| + | GET ACTIVE ZONES: | ||
| + | [root@ system]# firewall-cmd --get-active-zones | ||
| + | [root@ system]# | ||
| + | | ||
| + | MOVE AN EXSITING ZONE TO A DIFFERENT INTERFACE: | ||
| + | [root@ system]# firewall-cmd --zone=internal --change-interface=eth0 | ||
| + | |||
| + | LIST AVAILABLE PREDEFINED SERVICES: | ||
| + | [root@ system]# firewall-cmd --get-services | ||
| + | RH-Satellite-6 amanda-client bacula bacula-client dhcp dhcpv6 dhcpv6-client dns ftp high-availability http https imaps ipp ipp-client ipsec kerberos kpasswd ldap ldaps libvirt libvirt-tls mdns mountd ms-wbt mysql nfs ntp openvpn | ||
| + | |||
| STANDARD PORTS NEEDED: | STANDARD PORTS NEEDED: | ||
| Line 25: | Line 39: | ||
| success | success | ||
| + | RELOAD THE RULES: | ||
| + | [root@ system]# firewall-cmd --reload | ||
| + | [root@ system]# success | ||
firewalld.1447589317.txt.gz · Last modified: 2021/04/24 07:38 (external edit)
