CentOS 7 Firewalld is Blocking BES Traffic - BES Client
Log In or Register to download the BES file, and more.

1 Votes

Versioning - This is the latest version.

1CentOS 7 Firewalld is Blocking BES Traffic - BES Client9/25/2015 12:55:44 PM
2CentOS 7 Firewalld is Blocking BES Traffic - BES Client10/2/2015 6:44:13 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

ID6222
StatusBeta - Preliminary testing ready for more
TitleCentOS 7 Firewalld is Blocking BES Traffic - BES Client
CategorySupport
Download Size0
Source SeverityImportant
Source Release Date10/2/2015 6:44:13 PM
KeywordsCentOS Cent CentOS7 Cent7 el7 firewalld firewall
Added by on 10/2/2015 6:44:13 PM
Last Modified by on 10/2/2015 6:49:16 PM
Counters 1103 Views / 10 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 1 rating. ** Log In or Register to add your rating.

Relevance

Used in 216 fixlets   * Results in a true/false
Show indented relevance
(if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
Used in 15 fixlets   * Results in a true/false
Show indented relevance
version of client >= "6"
Used in 29 fixlets   * Results in a true/false
Show indented relevance
(if (version of client >= "8.0") then (unix of it) else ((it does not start with "Win" AND it does not start with "Mac OS X") of name of it)) of operating system
Used in 20 fixlets   * Results in a true/false
Show indented relevance
version of client >= "7.2"
Used in 2 fixlets   * Results in a true/false
Show indented relevance
exists match (regex "Linux CentOS (7)") of name of operating system
Used in 4 fixlets   * Results in a true/false
Show indented relevance
exists file "/proc/net/ip_tables_names"
Used in 4 fixlets   * Results in a true/false
Show indented relevance
NOT exists file "/etc/firewalld/zones/public.xml" whose ( exists ( lines of it ) whose ( it does not start with "#" AND it contains "<service name=%22bigfix%22/>" ) ) AND exists file "/etc/firewalld/zones/public.xml"

Actions

Action 1 (default)

Action Link Click here to leave firewalld enabled, but create a service and enable it on the default zone to allow incoming traffic on the port reserved for BES.
Script Type BigFix Action Script
//Modify the iptables saved ruleset
delete __appendfile

appendfile #!/bin/bash
appendfile echo -e '"1.0" encoding="utf-8"?>\n\n bigfix\n 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. This service permits that traffic on the port designated by the server.\n port="{port number of selected server as string}"/>\n' > /etc/firewalld/services/bigfix.xml
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
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.

Action 2

Action Link Click here to disable firewalld.
Script Type BigFix Action Script
//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
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.

Action 3

Action Link Click here for information on how to make this action a "policy" action that will automatically open the BES port on any computer that has this Fixlet message relevant.
Script Type URL
http://support.bigfix.com/cgi-bin/kbdirect.pl?id=113
    

Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
MIke_Mills -
After a little more searching I found this : https://bigfix.me/fixlet/details/3984 Will test it and comment there!
MIke_Mills -
Worked fine for CentOS 7 - are there similar fixlets for previous versions? I tried editing this one, changing "Linux CentOS (7)" to "Linux CentOS (6)" in the relevancy, but it didn't seem to work - never became relevant for my CentOS 6 instance.