|
@@ -55,7 +55,10 @@ prepare_config() {
|
55
|
55
|
gnunet-config -c $CONFIGFILE -s namestore-sqlite -o FILENAME -V /etc/gnunet/namestore.sqlite
|
56
|
56
|
|
57
|
57
|
# minimal datastore (todo: make this configurable)
|
|
58
|
+ gnunet-config -c $CONFIGFILE -s datastore -o DATABASE -V heap
|
58
|
59
|
gnunet-config -c $CONFIGFILE -s datastore -o QUOTA -V "4 MB"
|
|
60
|
+ gnunet-config -c $CONFIGFILE -s fs -o CONTENT_PUSHING -V NO
|
|
61
|
+ gnunet-config -c $CONFIGFILE -s fs -o CONTENT_CACHING -V NO
|
59
|
62
|
|
60
|
63
|
# limit dhtcache memory usage to 4 MB
|
61
|
64
|
gnunet-config -c $CONFIGFILE -s dhtcache -o QUOTA -V "4 MB"
|
|
@@ -73,6 +76,19 @@ prepare_config() {
|
73
|
76
|
transport_plugins="$transport_plugins $transplug"
|
74
|
77
|
done
|
75
|
78
|
gnunet-config -c $CONFIGFILE -s transport -o PLUGINS -V "$transport_plugins"
|
|
79
|
+
|
|
80
|
+ gnunet-config -c $CONFIGFILE -s pt -o FORCESTART -V YES
|
|
81
|
+ gnunet-config -c $CONFIGFILE -s exit -o AUTOSTART -V YES
|
|
82
|
+ gnunet-config -c $CONFIGFILE -s exit -o FORCESTART -V YES
|
|
83
|
+ gnunet-config -c $CONFIGFILE -s exit -o EXIT_IPV4 -V YES
|
|
84
|
+ # ssh and www services
|
|
85
|
+# gnunet-config -c $CONFIGFILE -s exit -o EXIT_RANGE_IPV4_POLICY -V "169.254.86.1:22;169.254.86.1:80;"
|
|
86
|
+# gnunet-config -c $CONFIGFILE -s ssh.gnunet. -o TCP_REDIRECTS -V "22:169.254.86.1:22"
|
|
87
|
+# gnunet-config -c $CONFIGFILE -s www.gnunet. -o TCP_REDIRECTS -V "80:169.254.86.1:80"
|
|
88
|
+ # iperf (TCP) and echo (UDP) for battlemesh
|
|
89
|
+ gnunet-config -c $CONFIGFILE -s exit -o EXIT_RANGE_IPV4_POLICY -V "169.254.86.1:7;169.254.86.1:5201;"
|
|
90
|
+ gnunet-config -c $CONFIGFILE -s iperf.gnunet. -o TCP_REDIRECTS -V "5201:169.254.86.1:5201"
|
|
91
|
+ gnunet-config -c $CONFIGFILE -s echo.gnunet. -o UDP_REDIRECTS -V "7:169.254.86.1:7"
|
76
|
92
|
}
|
77
|
93
|
|
78
|
94
|
start_service() {
|