Commit f664311a authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

accept all loopback traffic

parent 93ae7948
......@@ -137,6 +137,7 @@ for i, family in ipairs({'inet', 'inet6'}) do
opts=opts})
end
end
for i, chain in ipairs({'FORWARD', 'INPUT', 'OUTPUT'}) do
table.insert(defrules,
{family=family,
......@@ -144,4 +145,12 @@ for i, family in ipairs({'inet', 'inet6'}) do
chain=chain,
opts='-m state --state RELATED,ESTABLISHED -j ACCEPT'})
end
for i, chain in ipairs({'INPUT', 'OUTPUT'}) do
table.insert(defrules,
{family=family,
table='filter',
chain=chain,
opts='-'..string.lower(string.sub(chain, 1, 1))..' lo -j ACCEPT'})
end
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