Good morning, I have tested the script and it works very well for the most part, it only gives me problems in one command.
#create in-line layers - one for every chain:
mgmt_cli add layer name sub_policy_INPUT -s id.txt
#create top layer
mgmt_cli add layer name iptables_policy -s id.txt
The add layer command does not exist, but the add access-layer command does exist. I have changed it for the latter.
my iptable version is iptables v1.3.5
my CP version is product-version: "Check Point Gaia R80.30 "
do you think it will work properly?