Commit b59362db authored by Kaarle Ritvanen's avatar Kaarle Ritvanen
Browse files

generate ipset definition file

parent c6a67bab
......@@ -120,4 +120,13 @@ function translate()
awall.iptables.dump(testmode and 'output' or '/etc/iptables')
ipsfile = io.output(testmode and 'output/ipset' or '/etc/ipset.d/awall')
for name, params in pairs(config.ipset) do
if not params.type then error('Type not defined for set ' end
local line = 'create '' '..params.type
if then line = line..' family ' end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment