diff options
Diffstat (limited to 'types')
-rw-r--r-- | types/actions.pp | 6 | ||||
-rw-r--r-- | types/policies.pp | 4 | ||||
-rw-r--r-- | types/tables.pp | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/types/actions.pp b/types/actions.pp new file mode 100644 index 0000000..49bfd2c --- /dev/null +++ b/types/actions.pp @@ -0,0 +1,6 @@ +# @summary a list of allowed actions for a rule +# As you can also *jump* to other chains, each chain-name is also a valid action/target +type Ferm::Actions = Variant[ + Enum['RETURN', 'ACCEPT', 'DROP', 'REJECT', 'NOTRACK', 'LOG', 'MARK', 'DNAT', 'SNAT', 'MASQUERADE', 'REDIRECT'], + String[1], +] diff --git a/types/policies.pp b/types/policies.pp index 03be6ce..0963095 100644 --- a/types/policies.pp +++ b/types/policies.pp @@ -1,2 +1,2 @@ -# @summary a list of allowed default policies for a chain -type Ferm::Policies = Enum['ACCEPT','DROP', 'REJECT'] +# @summary a list of allowed policies for a chain +type Ferm::Policies = Enum['ACCEPT','DROP'] diff --git a/types/tables.pp b/types/tables.pp new file mode 100644 index 0000000..89edde7 --- /dev/null +++ b/types/tables.pp @@ -0,0 +1,2 @@ +# @summary a list of available tables +type Ferm::Tables = Enum['raw', 'mangle', 'nat', 'filter'] |