110-local-forward-allow-ipv6 507 B

123456789101112
  1. site = require('gluon.site_config')
  2. rule('LOCAL_FORWARD -p IPv6 --ip6-src fe80::/64 -j RETURN')
  3. rule('LOCAL_FORWARD -p IPv6 --ip6-src ::/128 --ip6-proto ipv6-icmp -j RETURN')
  4. rule('LOCAL_FORWARD -p IPv6 --ip6-src ' .. site.prefix6 .. ' -j RETURN')
  5. for _, prefix in ipairs(site.extra_prefixes6 or {}) do
  6. rule('LOCAL_FORWARD -p IPv6 --ip6-src ' .. prefix .. ' -j RETURN')
  7. end
  8. for _, prefix in ipairs(site.additional_prefix6 or {}) do
  9. rule('LOCAL_FORWARD -p IPv6 --ip6-src ' .. prefix .. ' -j RETURN')
  10. end