Skip to content
Snippets Groups Projects
Unverified Commit a32fddf3 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: firewall: accept inbound VXLAN traffic on wired mesh interfaces

Fixes #1308
parent 454555a0
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
uci:foreach('firewall', 'zone', reject_input_on_wan) uci:foreach('firewall', 'zone', reject_input_on_wan)
for _, zone in ipairs ({ 'mesh', 'local_client' } ) do for _, zone in ipairs({'mesh', 'local_client', 'wired_mesh'}) do
-- Other packages assign interfaces to these zones -- Other packages assign interfaces to these zones
uci:section('firewall', 'zone', zone, { uci:section('firewall', 'zone', zone, {
name = zone, name = zone,
...@@ -76,4 +76,22 @@ for _, zone in ipairs({ 'wan', 'local_client', 'mesh' }) do ...@@ -76,4 +76,22 @@ for _, zone in ipairs({ 'wan', 'local_client', 'mesh' }) do
end end
-- We can't put mesh_wan into this zone, as mesh_wan is the same
-- interface as wan, which has its own zone
uci:set('firewall', 'wired_mesh', 'network', {'mesh_lan'})
-- VXLAN for wired meshing
for _, zone in ipairs({'wired_mesh', 'wan'}) do
uci:section('firewall', 'rule', zone .. '_vxlan', {
name = zone .. '_vxlan',
src = zone,
family = 'ipv6',
src_ip = 'fe80::/64',
proto = 'udp',
dest_port = '4789',
target = 'ACCEPT',
})
end
uci:save('firewall') uci:save('firewall')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment