|
|
@ -33,10 +33,12 @@ rule="$(cat "$__object/parameter/rule")" |
|
|
|
case "$state_should" in |
|
|
|
case "$state_should" in |
|
|
|
present) |
|
|
|
present) |
|
|
|
echo firewall-cmd --permanent --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule |
|
|
|
echo firewall-cmd --permanent --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule |
|
|
|
|
|
|
|
echo firewall-cmd --direct --add-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
absent) |
|
|
|
absent) |
|
|
|
echo firewall-cmd --permanent --direct --remove-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule |
|
|
|
echo firewall-cmd --permanent --direct --remove-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule |
|
|
|
|
|
|
|
echo firewall-cmd --direct --remove-rule \"$protocol\" \"$table\" \"$chain\" \"$priority\" $rule |
|
|
|
;; |
|
|
|
;; |
|
|
|
*) |
|
|
|
*) |
|
|
|
echo "Unknown state $state_should" >&2 |
|
|
|
echo "Unknown state $state_should" >&2 |
|
|
|