12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #!/usr/bin/lua
- local uci = require('simple-uci').cursor()
- local site = require('gluon.site')
- uci:delete('firewall', 'wan_announced')
- -- Allow respondd port on WAN to allow resolving neighbours over mesh-on-wan
- uci:section('firewall', 'rule', 'wan_respondd', {
- name = 'wan_respondd',
- src = 'wan',
- src_ip = 'fe80::/64',
- dest_port = '1001',
- proto = 'udp',
- target = 'ACCEPT',
- })
- -- Allow respondd-access on client_local
- uci:section('firewall', 'rule', 'client_respondd', {
- name = 'client_respondd',
- src = 'client_local',
- src_ip = 'fe80::/64',
- dest_port = '1001',
- proto = 'udp',
- target = 'ACCEPT',
- })
- uci:section('firewall', 'rule', 'mesh_respondd_ll', {
- name = 'mesh_respondd_ll',
- src = 'mesh',
- src_ip = 'fe80::/64',
- dest_port = '1001',
- proto = 'udp',
- target = 'ACCEPT',
- })
- uci:section('firewall', 'rule', 'mesh_respondd_siteprefix', {
- name = 'mesh_respondd_siteprefix',
- src = 'mesh',
- src_ip = site.prefix6(),
- dest_port = '1001',
- proto = 'udp',
- target = 'ACCEPT',
- })
- uci:save('firewall')
|