400-announced-firewall 383 B

123456789101112131415161718
  1. #!/usr/bin/lua
  2. local uci = require('luci.model.uci').cursor()
  3. -- Allow announced port on WAN to allow resolving neighbours over mesh-on-wan
  4. uci:section('firewall', 'rule', 'wan_announced',
  5. {
  6. name = 'wan_announced',
  7. src = 'wan',
  8. src_ip = 'fe80::/64',
  9. dest_port = '1001',
  10. proto = 'udp',
  11. target = 'ACCEPT',
  12. }
  13. )
  14. uci:save('firewall')
  15. uci:commit('firewall')