-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deploying custom tables is broken #45
Comments
|
I guess, we should add back an original way to deploy |
|
Hi @duritong Sorry for that. An alternative to your suggested patch to avoid an extra class could be to prefix by default the file names of all tables created with This way the required configuration for Fail2ban that you're linking could be expressed like: nftables::config {'ip-fail2ban':
content => 'include "ip-fail2ban-chain-*.nft"'
}
nftables::chain {'f2binput':
chain => 'input',
table => 'ip-fail2ban',
}
nftables::rule { 'input-hook':
order => '01',
content => 'type filter hook input priority 100',
table => 'ip-fail2ban',
}Resulting in: |
|
I've sent a MR with the suggested changes above in case you liked that approach better :) |
|
Actually as an extra improvement, |
|
yeah that sounds like a good idea. |
|
Ok, thanks. Everything is implemented, I believe. |
You can't anymore deploy a custom config using nftables::config
We do
But there is no way how you can create such a file with the reworked nftables::config, since the name is used for the filter table afterwards.
This got broken in e4c3222
CC @nbarrientos
I am trying to add a custom ip table for fail2ban: based on: https://wiki.meurisse.org/wiki/Fail2Ban and I don't think we can do it anymore with the current state of the module.
The text was updated successfully, but these errors were encountered: