Skip to content

Conversation

@citizenbilly
Copy link

Iptables includes a module for integration with ipset.
However, augeas does not appear to support the second argument required for the iptables module: ---match-set.

Example Iptables rule:
-I INPUT -m set --match-set <setname> src -j DROP

Example of adding the rule:

defnode rule \$filter/insert[.='INPUT'][last()+1] "INPUT"
set \$rule/match "set"
set \$rule/ipset_flags "<setname>"
set \$rule/ipset_flags/set "src"
set \$rule/jump "DROP"

Fixes: hercules-team#860

Iptables includes a module for integration with ipset.
However, augeas does not appear to support the second argument required for the iptables module: ---match-set.

Example Iptables rule:
-I INPUT -m set --match-set <setname> src -j DROP

Example of adding the rule:

defnode rule \$filter/insert[.='INPUT'][last()+1] "INPUT"
set \$rule/match "set"
set \$rule/ipset_flags "<setname>"
set \$rule/ipset_flags/set "src"
set \$rule/jump "DROP"

Fixes: [hercules-team#860]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lense for iptables does not natively support second argument required for set module (match-set)

1 participant