diff options
Diffstat (limited to 'shorewall-model.lua')
-rw-r--r-- | shorewall-model.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua index 081f842..0375b06 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -141,6 +141,14 @@ function configcheck () return check end +function get_defined_zones () + local output = {} + for k,v in pairs(read_config("zones")) do + table.insert(output, string.match(v, "^%s*(%S*)")) + end + return output +end + function getlogfile () local logfile = {} local cmdaction = "cat /var/log/messages | grep Shorewall" |