Red Hat Firewall Addition Fixlet

I’m trying to modify an existing fixlet “RedHat Firewall is Blocking BES Traffic - BES Client” to make additional modifications to a Red Hat firewall but the Action Script looks to have an error when I try to run the appendfile.

appendfile sed -i -n '1h;1!H;${{;g;s/*filter\n\(:[^\n]*\n\)*/&-A INPUT -m state --state NEW -m udp -p udp --dport {port number of selected server as string} -j ACCEPT\n/g;p;}' /etc/sysconfig/iptables

When I run it in the debugger, I get the following error:

Command failed (Relevance clauses must be surrounded by { and } guards.)

The odd thing is this relevance was created within the BES Support site. What’s even more odd is that the fixlet works no problem when deployed to a client. Why would a simple appendfile fail in the debugger but not a client machine?

1 Like