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

Merge pull request #675 from T-X/preparations-for-mcast-snooping

Preparations for Multicast Snooping
parents 06685ef0 0fc9e1d9
No related branches found
No related tags found
No related merge requests found
...@@ -56,5 +56,31 @@ uci:save('network') ...@@ -56,5 +56,31 @@ uci:save('network')
uci:commit('network') uci:commit('network')
uci:section('firewall', 'rule', 'wan_igmp',
{
name = 'Allow-IGMP',
src = 'wan',
proto = 'igmp',
family = 'ipv4',
target = 'ACCEPT',
}
)
uci:section('firewall', 'rule', 'wan_mld',
{
name = 'Allow-MLD',
src = 'wan',
proto = 'icmp',
src_ip = 'fe80::/10',
icmp_type = { '130/0', '131/0', '132/0', '143/0', },
family = 'ipv6',
target = 'ACCEPT',
}
)
uci:save('firewall')
uci:commit('firewall')
sysctl.set('net.ipv6.conf.all.accept_ra', 0) sysctl.set('net.ipv6.conf.all.accept_ra', 0)
sysctl.set('net.ipv6.conf.default.accept_ra', 0) sysctl.set('net.ipv6.conf.default.accept_ra', 0)
...@@ -48,6 +48,7 @@ uci:section('network', 'interface', 'bat0', ...@@ -48,6 +48,7 @@ uci:section('network', 'interface', 'bat0',
ifname = 'bat0', ifname = 'bat0',
proto = 'none', proto = 'none',
macaddr = sysconfig.primary_mac, macaddr = sysconfig.primary_mac,
multicast_router = 2,
} }
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment