gluon-core: move rule client_dns from gluon-mesh_batman-adv to gluon-core

This commit is contained in:
Christof Schulze 2017-10-25 02:20:50 +02:00
parent 35559db0a7
commit d9f6c0aa6b
2 changed files with 2 additions and 5 deletions

View File

@ -14,17 +14,15 @@ uci:set('dhcp', dnsmasq, 'localservice', false)
uci:set('dhcp', dnsmasq, 'server', dns.servers)
uci:set('dhcp', dnsmasq, 'cachesize', dns.cacheentries)
uci:delete('firewall', 'rule', 'client_dns')
if dns.servers then
-- allow inbound traffic for dns from client zone
uci:section('firewall', 'rule', 'clientdns', {
name = 'clientdns',
uci:section('firewall', 'rule', 'client_dns', {
src = 'local_client',
dest_port = '53',
proto = 'tcpudp',
target = 'ACCEPT',
})
else
uci:delete('firewall', 'rule', 'clientdns')
end
if next_node.name and next_node.ip4 then

View File

@ -42,7 +42,6 @@ local networks = uci:get_list('firewall', 'drop', 'network')
util.remove_from_set(networks, 'client')
uci:set_list('firewall', 'drop', 'network', networks)
uci:delete('firewall', 'client_dns')
uci:delete('firewall', 'local_node_dns')
uci:save('firewall')