gluon-core: firewall: allow inbound ICMPv4 ping on local_node

This commit is contained in:
Matthias Schiffer 2017-12-26 22:58:04 +01:00
parent 39284f00d0
commit 8ea5810bda
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -36,7 +36,17 @@ for _, zone in ipairs({ 'wan', 'local_client', 'mesh' }) do
end end
-- allow icmp in/out/forward on all relevant zones -- allow icmp in/out on all relevant zones
uci:section('firewall', 'rule', 'local_client_ICMPv4_in', {
src = 'local_client',
proto = 'icmp',
icmp_type = {
'echo-request',
},
family = 'ipv4',
target = 'ACCEPT',
})
for _, zone in ipairs ({ 'mesh', 'local_client' } ) do for _, zone in ipairs ({ 'mesh', 'local_client' } ) do
uci:section('firewall', 'rule', zone .. '_ICMPv6_in', { uci:section('firewall', 'rule', zone .. '_ICMPv6_in', {
src = zone, src = zone,