-
-
Save anonymous/174bae7908d5c299bca6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ptcopsawsproxy-1 firewalld]# firewall-cmd --get-active-zones | |
public | |
interfaces: ens192 ens224 | |
[root@ptcopsawsproxy-1 firewalld]# systemctl restart firewalld | |
[root@ptcopsawsproxy-1 firewalld]# firewall-cmd --get-active-zones | |
public | |
interfaces: ens192 ens224 | |
[root@ptcopsawsproxy-1 firewalld]# grep -i zone /etc/sysconfig/network-scripts/ifcfg-* | |
/etc/sysconfig/network-scripts/ifcfg-inside:ZONE=work | |
/etc/sysconfig/network-scripts/ifcfg-outside:ZONE=public | |
[root@ptcopsawsproxy-1 firewalld]# firewall-cmd --zone=work --change-interface=ens192 | |
success | |
[root@ptcopsawsproxy-1 firewalld]# firewall-cmd --zone=work --change-interface=ens192 --permanent | |
success | |
[root@ptcopsawsproxy-1 firewalld]# grep -i zone /etc/sysconfig/network-scripts/ifcfg-* | |
/etc/sysconfig/network-scripts/ifcfg-inside:ZONE=work | |
/etc/sysconfig/network-scripts/ifcfg-outside:ZONE=public | |
[root@ptcopsawsproxy-1 firewalld]# firewall-cmd --get-active-zones | |
work | |
interfaces: ens192 | |
public | |
interfaces: ens224 | |
[root@ptcopsawsproxy-1 firewalld]# systemctl restart firewalld | |
[root@ptcopsawsproxy-1 firewalld]# grep -i zone /etc/sysconfig/network-scripts/ifcfg-* | |
/etc/sysconfig/network-scripts/ifcfg-inside:ZONE=work | |
/etc/sysconfig/network-scripts/ifcfg-outside:ZONE=public | |
[root@ptcopsawsproxy-1 firewalld]# firewall-cmd --get-active-zones | |
public | |
interfaces: ens192 ens224 | |
[root@ptcopsawsproxy-1 firewalld]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment