400-neighbour-info-firewall 502 B

12345678910111213141516171819
  1. #!/usr/bin/lua
  2. local uci = require('luci.model.uci').cursor()
  3. -- Allow incoming respondd replies to queries on WAN
  4. -- If the query was via multicast, the response isn't matched by --state RELATED
  5. uci:section('firewall', 'rule', 'wan_respondd_reply',
  6. {
  7. name = 'wan_respondd_reply',
  8. src = 'wan',
  9. src_ip = 'fe80::/64',
  10. src_port = '1001',
  11. dest_port = '32768:61000', -- see /proc/sys/net/ipv4/ip_local_port_range
  12. proto = 'udp',
  13. target = 'ACCEPT',
  14. }
  15. )
  16. uci:save('firewall')