RedHat 7 Firewalld is Blocking BES Traffic - BES Client
| 0 Votes |
Versioning - This is the latest version.
| 1 | RedHat 7 Firewalld is Blocking BES Traffic - BES Client | 9/25/2015 12:56:38 PM |
| 2 | RedHat 7 Firewalld is Blocking BES Traffic - BES Client | 10/2/2015 6:43:30 PM |
Description
|
The listed computers have firewalld enabled and are not configured to allow inbound UDP traffic on the port used by BES (BES uses port 52311 by default). The BES Server and BES Relays send UDP packets to the BES Clients to notify them that there is new information available such as new Fixlet messages, actions, and computer refreshes. BES Clients on relevant computers will not receive UDP notification packets and therefore will not see new actions or new Fixlet messages until they gather the new actionsite, which is by default, once a day. After configuring firewalld to allow inbound UDP traffic on the BES Listen Port, BES Clients will resume normal communication with the BES Server and BES Relays. Note: After this action is applied, affected BES Clients will not report until they have performed their standard once-per-day gather or until the BES Client is restarted. Note: The firewalld configuration is modified by inserting a new service into /etc/firewalld/services and enabling it on the default zone. |
Property Details
| 6221 | |
| Beta - Preliminary testing ready for more | |
| RedHat 7 Firewalld is Blocking BES Traffic - BES Client | |
| Support | |
| 0 | |
| Important | |
| 10/2/2015 6:43:30 PM | |
| rexit1982 on 10/2/2015 6:43:30 PM | |
| rexit1982 on 2/19/2018 7:33:34 AM | |
| 10240 Views / 22 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Relevance
| Used in 223 fixlets | * Results in a true/false |
| Used in 32 fixlets | * Results in a true/false |
| Used in 4 fixlets | * Results in a true/false |
| Used in 6 fixlets | * Results in a true/false |
| Used in 2 fixlets | * Results in a true/false |
Actions
Action 1 (default)
//Modify the iptables saved ruleset
delete __appendfile
appendfile #!/bin/bash
appendfile echo -e '"1.0" encoding="utf-8"?>\n\n ' > /etc/firewalld/services/bigfix.xmlbigfix \nThe BES Server and BES Relays send UDP packets to the BES Clients to notify them that there is new information available such as new Fixlet messages, actions, and computer refreshes. This service permits that traffic on the port designated by the server. \nport="{port number of selected server as string}"/>\n
appendfile firewall-cmd --reload
appendfile firewall-cmd --permanent --add-service=bigfix
appendfile firewall-cmd --reload
wait chmod +x "{(client folder of current site as string) & "/__appendfile"}"
wait "{(client folder of current site as string) & "/__appendfile"}"
//delete delete __appendfile
This action will be considered successful when the applicability relevance evaluates to false.
Action 2
//Disable iptables
delete __appendfile
appendfile #!/bin/bash
appendfile systemctl disable firewalld.service
appendfile systemctl stop firewalld.service
wait chmod +x "{(client folder of current site as string) & "/__appendfile"}"
wait "{(client folder of current site as string) & "/__appendfile"}"
//delete delete __appendfile
This action will be considered successful when the applicability relevance evaluates to false.
Action 3
http://support.bigfix.com/cgi-bin/kbdirect.pl?id=113
Sharing
| Social Media: |
Comments
|
|
|
| Replaced by "Unified" version for both RHEL and CentOS7 - https://bigfix.me/cdb/fixlet/25072 | |
|
|
|
| @rexit1982 Oh, okay. I was confused because of the data in the fixlet since you copied and modified an existing one. I would recommend reading this about CentOS / RHEL relay firewalls. Even though it is about relays, some of it relates to the changes needed for a client as well: https://forum.bigfix.com/t/firewall-fix-when-setting-up-centos-rhel-fedora-relay/13697 | |
|
|
|
| @gregd7 - Thank you, that explains the somewhat inconsistent results I was getting in my tests. I only had about 5 el7 machines being managed and every time I would re-run the action or the command manually it would work. I'll update that with a couple minor tweaks to the description to be more accurate about the service placement. @jgstem - I do not see a RHEL7 firewalld fixlet show up for me in the BES Support Site, but I do not have any RHEL7 deployed yet all of my version 7 is CentOS. There is a fixlet for RHEL 3/4/5/6 running iptables that I copied out and jsut updated the relevance for CentOS 3/4/5/6. I took that logic and built this to work on CentOS7 and just reversed the relevance to create a separate fixlet for RHEL7. | |
|
|
|
| @gregd7 I believe this fixlet is actually provided by IBM in the console, so you should open a forum post with this suggestion and possibly file an RFE&PMR as well. The forum is here: https://forum.bigfix.com/ | |
|
|
|
| Add a line "appendfile firewall-cmd --reload" before "appendfile firewall-cmd --permanent --add-service=bigfix" in action 1. | |
|
|
|
| We found that you need to do a reload after creating the bigfix.xml service. Without this the "firewall-cmd --permanent --addservice=bigfix" command doesn't work as it does not know what the bigfix service is. | |

