Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2015 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/174bae7908d5c299bca6 to your computer and use it in GitHub Desktop.
Save anonymous/174bae7908d5c299bca6 to your computer and use it in GitHub Desktop.
[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