diff options
Diffstat (limited to 'net/gnunet/files/gnunet.defaults')
-rw-r--r-- | net/gnunet/files/gnunet.defaults | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net/gnunet/files/gnunet.defaults b/net/gnunet/files/gnunet.defaults new file mode 100644 index 000000000..dbb505066 --- /dev/null +++ b/net/gnunet/files/gnunet.defaults @@ -0,0 +1,40 @@ +#!/bin/sh + +[ -e /etc/config/gnunet ] && exit 0 + +touch /etc/config/gnunet + +uci set gnunet.datastore=gnunet-config +uci set gnunet.datastore.DATABASE=heap +uci set gnunet.datastore.QUOTA="4 MB" + +uci set gnunet.fs=gnunet-config +uci set gnunet.fs.CONTENT_PUSHING=NO +uci set gnunet.fs.CONTENT_CACHING=NO + +# limit dhtcache memory usage to 4 MB +uci set gnunet.dhtcache=gnunet-config +uci set gnunet.dhtcache.QUOTA="4 MB" + +# enable dns2gns +uci set gnunet.dns2gns=gnunet-config +uci set gnunet.dns2gns.AUTOSTART=YES +uci set gnunet.dns2gns.FORCESTART=YES + +# enable v4/v6 protocol translation for EXIT/VPN +uci set gnunet.pt=gnunet-config +uci set gnunet.pt.FORCESTART=YES + +uci set gnunet.exit=gnunet-config +uci set gnunet.exit.AUTOSTART=YES +uci set gnunet.exit.FORCESTART=YES +uci set gnunet.exit.EXIT_IPV4=YES +uci set gnunet.exit.EXIT_RANGE_IPV4_POLICY="169.254.86.1:7;169.254.86.1:5201;" + +# iperf (TCP) and echo (UDP) for battlemesh +uci set gnunet.iperf=gnunet-exit-service +uci set gnunet.iperf.TCP_REDIRECTS="5201:169.254.86.1:5201" +uci set gnunet.echo=gnunet-exit-service +uci set gnunet.echo.UDP_REDIRECTS="7:169.254.86.1:7" + +uci commit gnunet |