Firewall issues - need to restart firewall after booting system to get it to work

Support for security such as Firewalls and securing linux
Post Reply
supmethods
Posts: 55
Joined: 2011/07/15 08:24:11

Firewall issues - need to restart firewall after booting system to get it to work

Post by supmethods » 2017/05/19 03:32:20

Hi

I have issues with the firewall right after I boot my virtual machines. The machines include one Puppet master and Puppet agents. I have opened port 8140 which is required for agents to connect to the master.

It works fine but each time I start up the server again, I always have to stop and then start the firewall on the master system.

Code: Select all

home (active)
  target: default
  icmp-block-inversion: no
  interfaces: enp0s3
  sources:
  services: dhcpv6-client https mdns samba-client ssh
  ports: 61613/tcp 8140/tcp 8142/tcp
  protocols:
  masquerade: no
  forward-ports:
  sourceports:
  icmp-blocks:
  rich rules:
Anything you can suggestion? Thanks.

bertalanimre
Posts: 140
Joined: 2015/06/02 13:04:03

Re: Firewall issues - need to restart firewall after booting system to get it to work

Post by bertalanimre » 2017/05/24 11:58:01

How did you add the port to the zone? If you havent included the --permanent option, it will lose the settings after a firewalld restart. Luckily firewalld can save your current settings too with the following command:

Code: Select all

firewall-cmd --runtime-to-permanent
Report back if it worked.

Oh, this is my 100th post. YAY! :)

Post Reply