Tuesday, August 1, 2017

Add firewall rules in Redhat EL7 for Oracle database

[root@vmxdb01 ~]# firewall-cmd --permanent --zone=public --add-port=1521/tcp
success

[root@vmxdb01 ~]# firewall-cmd --reload
success

[root@vmxdb01 ~]# firewall-cmd --permanent --zone=public --list-ports
1521/tcp

[root@vmxdb01 ~]# firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: enp0s3
  sources:
  services: dhcpv6-client ssh
  ports: 1521/tcp
  protocols:
  masquerade: no
  forward-ports:
  sourceports:
  icmp-blocks:
  rich rules:

  

No comments:

Post a Comment