gnunet-vpn.defaults 980 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. uci -q batch <<EOF
  3. del network.gnunetvpn
  4. set network.gnunetvpn=interface
  5. set network.gnunetvpn.ifname='vpn-gnunet'
  6. set network.gnunetvpn.proto='gnunet'
  7. del network.gnunetexit
  8. set network.gnunetexit=interface
  9. set network.gnunetexit.ifname='exit-gnunet'
  10. set network.gnunetexit.proto='gnunet'
  11. commit network
  12. del firewall.gnunetvpn
  13. set firewall.gnunetvpn=zone
  14. set firewall.gnunetvpn.name='gnunetvpn'
  15. set firewall.gnunetvpn.network='gnunetvpn'
  16. set firewall.gnunetvpn.input='ACCEPT'
  17. set firewall.gnunetvpn.output='ACCEPT'
  18. set firewall.gnunetvpn.forward='REJECT'
  19. del firewall.gnunetexit
  20. set firewall.gnunetexit=zone
  21. set firewall.gnunetexit.name='gnunetexit'
  22. set firewall.gnunetexit.network='gnunetexit'
  23. set firewall.gnunetexit.input='ACCEPT'
  24. set firewall.gnunetexit.output='ACCEPT'
  25. set firewall.gnunetexit.forward='REJECT'
  26. del firewall.gnexitfwd
  27. set firewall.gnexitfwd=forwarding
  28. set firewall.gnexitfwd.src='gnunetexit'
  29. set firewall.gnexitfwd.dest='wan'
  30. commit firewall
  31. EOF