You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. #!/bin/sh
  2. uci -q batch <<EOF
  3. del network.gnunetdns
  4. set network.gnunetdns=interface
  5. set network.gnunetdns.ifname='gnunet-dns'
  6. set network.gnunetdns.proto='gnunet'
  7. del network.gndnsrtt
  8. set network.gndnsrtt=route
  9. set network.gndnsrtt.interface='gnunetdns'
  10. set network.gndnsrtt.table='53'
  11. set network.gndnsrtt.target='0.0.0.0/0'
  12. del network.gndnsrl
  13. set network.gndnsrl=rule
  14. set network.gndnsrl.mark='0x8260035'
  15. set network.gndnsrl.lookup='53'
  16. commit network
  17. del firewall.gnunetdns
  18. set firewall.gnunetdns=zone
  19. set firewall.gnunetdns.name='gnunetdns'
  20. set firewall.gnunetdns.network='gnunetdns'
  21. set firewall.gnunetdns.input='ACCEPT'
  22. set firewall.gnunetdns.output='ACCEPT'
  23. set firewall.gnunetdns.forward='ACCEPT'
  24. del firewall.gndnsrl
  25. set firewall.gndnsrl=rule
  26. set firewall.gndnsrl.name='Mark-local-DNS-for-GNUnet'
  27. set firewall.gndnsrl.proto='udp'
  28. set firewall.gndnsrl.dest_port='53'
  29. set firewall.gndnsrl.extra='-m owner ! --gid-owner gnunetdns'
  30. set firewall.gndnsrl.target='MARK'
  31. set firewall.gndnsrl.set_mark='136708149'
  32. del firewall.gndnsrl2
  33. set firewall.gndnsrl2=rule
  34. set firewall.gndnsrl2.name='Mark-forwarded-DNS-for-GNUnet'
  35. set firewall.gndnsrl2.enabled='0'
  36. set firewall.gndnsrl2.src='*'
  37. set firewall.gndnsrl2.proto='udp'
  38. set firewall.gndnsrl2.dest_port='53'
  39. set firewall.gndnsrl2.target='MARK'
  40. set firewall.gndnsrl2.set_mark='136708149'
  41. commit firewall
  42. EOF