summaryrefslogtreecommitdiffstats
path: root/awall/modules
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-07-20 10:07:31 +0000
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-07-20 10:07:31 +0000
commit3911de118f61f8801b859e0683cea06f21583c00 (patch)
tree780db91c35982bd459314a4f53d1914c27991c48 /awall/modules
parentf8da875b1e1d3b425a5a4fa1f80d7989f1ab345e (diff)
downloadawall-3911de118f61f8801b859e0683cea06f21583c00.tar.bz2
awall-3911de118f61f8801b859e0683cea06f21583c00.tar.xz
streamlined sanity checking for allowed input/output interface options
Diffstat (limited to 'awall/modules')
-rw-r--r--awall/modules/clampmss.lua6
-rw-r--r--awall/modules/nat.lua7
2 files changed, 0 insertions, 13 deletions
diff --git a/awall/modules/clampmss.lua b/awall/modules/clampmss.lua
index 4f74cb5..9202892 100644
--- a/awall/modules/clampmss.lua
+++ b/awall/modules/clampmss.lua
@@ -14,12 +14,6 @@ local model = awall.model
local ClampMSSRule = model.class(model.ForwardOnlyRule)
-function ClampMSSRule:checkzoneoptfrag(ofrag)
- if ofrag['in'] then
- self:error('Cannot specify inbound interface ('..ofrag['in']..')')
- end
-end
-
function ClampMSSRule:table() return 'mangle' end
function ClampMSSRule:chain() return 'POSTROUTING' end
diff --git a/awall/modules/nat.lua b/awall/modules/nat.lua
index 6ec39a2..5559d11 100644
--- a/awall/modules/nat.lua
+++ b/awall/modules/nat.lua
@@ -14,13 +14,6 @@ local model = awall.model
local NATRule = model.class(model.ForwardOnlyRule)
-function NATRule:checkzoneoptfrag(ofrag)
- local iface = ofrag[self.params.forbidif]
- if iface then
- self:error('Cannot specify '..self.params.forbidif..'bound interface ('..iface..')')
- end
-end
-
function NATRule:trules()
local res = {}
for i, ofrags in ipairs(model.ForwardOnlyRule.trules(self)) do