mxfirewallcontrol.py does not like tag filter

AndreasE
Getting noticed

mxfirewallcontrol.py does not like tag filter

 

I've created two shell scripts that call mxfirewallcontrol.py, the first one is working fine, the second one fails (because it shows no hit which it should indeed):

 

#!/bin/bash

python mxfirewallcontrol.py -k 547***45b -o /all -f "type:network"

#eof
#!/bin/bash

python mxfirewallcontrol.py -k 547***45b -o /all -f "type:network,tag:branch"

#eof

 

You can see the code in question is almost a 1:1 copy from mxfirewallcontrol_manual.pdf on page 3 right at the bottom. Still it doesn't work.

 

Why? What did I miss?

 

PS: This is the result I received from first Shell script:

 

 

@ INFO: Retrieving organization info
@ INFO: Selecting networks and templates according to filters

MX Firewall Ruleset for Organization "abc", Network "def"
LINE:1 protocol:Any, srcPort:Any, srcCidr:Any, destPort:Any, destCidr:Any, policy:allow, syslogEnabled:False, comment:Default rule

MX Firewall Ruleset for Organization "abc", Network "ghi"
LINE:1 protocol:icmp, srcPort:Any, srcCidr:Any, destPort:Any, destCidr:Any, policy:allow, syslogEnabled:False, comment:ping
LINE:2 protocol:Any, srcPort:Any, srcCidr:Any, destPort:Any, destCidr:Any, policy:allow, syslogEnabled:False, comment:Default rule
@ INFO: End of script.

 

 

 

 

1 REPLY 1
AndreasE
Getting noticed

Hi, to all it may concern:

 

I think I've found the root cause for my issue: It does not work for python2, it needs python3!

 

Find attached a tar file which contains a full example.

 

Kind Regards,

Andreas

 

Get notified when there are additional replies to this discussion.