Selasa, 19 November 2019

How to config firewalld on linux centos 7

  Tidak ada komentar
Get active zone list
[root@svrlb_apps_bck ~]# firewall-cmd --get-active-zones
dmz
  interfaces: ens192
public
  interfaces: ens160
[root@svrlb_apps_bck ~]#
Detail info of zone
[root@svrlb_apps_bck ~]# firewall-cmd --list-all --zone=dmz
dmz (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens192
  sources:
  services: ssh
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

[root@svrlb_apps_bck ~]#
Change zone of interface

[root@svrlb_apps_bck ~]# firewall-cmd --zone=dmz --change-interface=ens192
The interface is under control of NetworkManager, setting zone to 'dmz'.
success
[root@svrlb_apps_bck ~]#

Tidak ada komentar :

Posting Komentar