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.

51 lines
1.4 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. set network.gndnsrk.priority='0'
  17. commit network
  18. del firewall.gnunetdns
  19. set firewall.gnunetdns=zone
  20. set firewall.gnunetdns.name='gnunetdns'
  21. set firewall.gnunetdns.network='gnunetdns'
  22. set firewall.gnunetdns.input='ACCEPT'
  23. set firewall.gnunetdns.output='ACCEPT'
  24. set firewall.gnunetdns.forward='ACCEPT'
  25. del firewall.gndnsrl
  26. set firewall.gndnsrl=rule
  27. set firewall.gndnsrl.name='Mark-local-DNS-for-GNUnet'
  28. set firewall.gndnsrl.proto='udp'
  29. set firewall.gndnsrl.dest_port='53'
  30. set firewall.gndnsrl.extra='-m owner ! --gid-owner 452-453'
  31. set firewall.gndnsrl.target='MARK'
  32. set firewall.gndnsrl.set_mark='136708149'
  33. del firewall.gndnsrl2
  34. set firewall.gndnsrl2=rule
  35. set firewall.gndnsrl2.name='Mark-forwarded-DNS-for-GNUnet'
  36. set firewall.gndnsrl2.enabled='0'
  37. set firewall.gndnsrl2.src='*'
  38. set firewall.gndnsrl2.proto='udp'
  39. set firewall.gndnsrl2.dest_port='53'
  40. set firewall.gndnsrl2.target='MARK'
  41. set firewall.gndnsrl2.set_mark='136708149'
  42. commit firewall
  43. EOF