1 ;; This is not a stand-alone guile application.
2 ;; It can only be executed from within gnunet-setup.
4 ;; GNUnet setup defines a function "build-tree-node"
5 ;; (with arguments section, option, description, help,
6 ;; children, visible, value and range) which is
7 ;; used by the script to create the configuration tree.
9 ;; GNUnet setup defines a function "change-visible"
10 ;; (with arguments context, section, option, yesno) which
11 ;; can be used by the script to dynamically change the
12 ;; visibility of options.
14 ;; GNUnet setup defines a function "get-option"
15 ;; (with arguments context, section, option) which
16 ;; can be used to query the current value of an option.
18 ;; GNUnet setup defines a function "set-option"
19 ;; (with arguments context, section, option, value) which
20 ;; can be used to set the value of an option.
23 ;; GNUnet setup requires two functions from this script.
24 ;; First, a function "gnunet-config-setup" which constructs the
25 ;; configuration tree.
27 ;; Second, a function "gnunet-config-change" which is notified whenever
28 ;; configuration options are changed; the script can then
29 ;; change the visibility of other options.
32 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
39 (_ "No help available.") )
42 (_ "You can use 'make check' in src/transports/upnp/ to find out if your NAT supports UPnP. You should disable this option if you are sure that you are not behind a NAT. If your NAT box does not support UPnP, having this on will not do much harm (only cost a small amount of resources).") )
44 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
50 (define (meta-exp builder)
54 (_ "Prompt for development and/or incomplete code")
56 "If EXPERIMENTAL is set to NO, options for experimental code are not shown. If in doubt, use NO.
58 Some options apply to experimental code that maybe in a state of development where the functionality, stability, or the level of testing is not yet high enough for general use. These features are said to be of \"alpha\" quality. If a feature is currently in alpha, uninformed use is discouraged (since the developers then do not fancy \"Why doesn't this work?\" type messages).
60 However, active testing and qualified feedback of these features is always welcome. Users should just be aware that alpha features may not meet the normal level of reliability or it may fail to work in some special cases. Bug reports are usually welcomed by the developers, but please read the documents <file://README> and <http://gnunet.org/faq.php3> and use <https://gnunet.org/mantis/> for how to report problems." )
67 (define (meta-adv builder)
71 (_ "Show options for advanced users")
73 "These are options that maybe difficult to understand for the beginner. These options typically refer to features that allow tweaking of the installation. If in a hurry, say NO." )
80 (define (meta-rare builder)
84 (_ "Show rarely used options")
86 "These are options that hardly anyone actually needs. If you plan on doing development on GNUnet, you may want to look into these. If in doubt or in a hurry, say NO." )
93 (define (meta builder)
97 (_ "Meta-configuration")
98 (_ "Which level of configuration should be available")
111 (define (paths-home builder)
115 (_ "Full pathname of GNUnet HOME directory")
117 "This gives the root-directory of the GNUnet installation. Make sure there is some space left in that directory. :-) Users inserting or indexing files will be able to store data in this directory up to the (global) quota specified below. Having a few gigabytes of free space is recommended." )
126 (define (fs-path builder)
130 (_ "Full pathname of GNUnet directory for file-sharing data")
134 "$GNUNETD_HOME/data/fs"
138 (define (kv-path builder)
142 (_ "Full pathname to the directory with the key-value database")
143 (_ "Note that the kvstore is currently not used.")
146 "$GNUNETD_HOME/kvstore/"
150 (define (index-path builder)
154 (_ "Full pathname of GNUnet directory for indexed files symbolic links")
158 "$GNUNETD_HOME/data/shared"
162 (define (general-helloexpires builder)
166 (_ "How many minutes should peer advertisements last?")
168 "How many minutes is the current IP valid? (GNUnet will sign HELLO messages with this expiration timeline. If you are on dialup, 60 (for 1 hour) is suggested. If you have a static IP address, you may want to set this to a large value (say 14400). The default is 1440 (1 day). If your IP changes periodically, you will want to choose an expiry period smaller than the frequency with which your IP changes." )
175 (define (general-hostlisturl builder)
179 (_ "Where can GNUnet find an initial list of peers?")
181 "GNUnet can automatically update the hostlist from the web. While GNUnet internally communicates which hosts are online, it is typically a good idea to get a fresh hostlist whenever gnunetd starts from the WEB. By setting this option, you can specify from which server gnunetd should try to download the hostlist. The default should be fine for now.
183 The general format is a list of space-separated URLs. Each URL must have the format http://HOSTNAME/FILENAME
185 If you want to setup an alternate hostlist server, you must run a permanent node and \"cat data/hosts/* > hostlist\" every few minutes to keep the list up-to-date.
187 If you do not specify a HOSTLISTURL, you must copy valid hostkeys to data/hosts manually.")
190 "http://gnunet.org/hostlist.php http://gnunet.mine.nu:8081/hostlist http://vserver1236.vserver-on.de/hostlist-074"
194 (define (general-http-proxy builder)
198 (_ "HTTP Proxy Server")
200 "If you have to use a proxy for outbound HTTP connections, specify the proxy configuration here. Default is no proxy." )
208 (define (general-hosts builder)
212 (_ "Name of the directory where gnunetd should store contact information about peers")
214 "Unless you want to share the directory directly using a webserver, the default is most likely just fine." )
217 "$GNUNETD_HOME/data/hosts/"
224 (define (log-level description option builder)
233 (list "SC" "NOTHING" "FATAL" "ERROR" "WARNING" "INFO" "STATUS" "DEBUG")
236 (define (log-keeplog builder)
240 (_ "How long should logs be kept?")
242 "How long should logs be kept? If you specify a value greater than zero, a log is created each day with the date appended to its filename. These logs are deleted after $KEEPLOG days. To keep logs forever, set this value to 0." )
249 (define (daemon-fdlimit builder)
253 (_ "What maximum number of open file descriptors should be requested from the OS?")
255 "The default of 1024 should be fine for most systems. If your system can support more, increasing the number might help support additional clients on machines with plenty of bandwidth. For embedded systems, a smaller number might be acceptable. A value of 0 will leave the descriptor limit untouched. This option is mostly for OS X systems where the default is too low. Note that if gnunetd cannot obtain the desired number of file descriptors from the operating system, it will print a warning and try to run with what it is given." )
262 (define (log-logfile builder)
266 (_ "Where should gnunetd write the logs?")
270 "$GNUNETD_HOME/daemon-logs"
274 (define (log-devel builder)
278 (_ "Enable for extra-verbose logging.")
286 (define (logging builder)
291 (_ "Specify which system messages should be logged how")
293 (log-keeplog builder)
294 (log-logfile builder)
296 (log-level (_ "Logging of events for users") "USER-LEVEL" builder)
297 (log-level (_ "Logging of events for the system administrator") "ADMIN-LEVEL" builder)
305 (define (general-pidfile builder)
309 (_ "Where should gnunetd write the PID?")
310 (_ "The default is no longer /var/run/gnunetd.pid since we could not delete the file on shutdown at that location." )
313 "/var/run/gnunetd/pid"
318 (define (general-username builder)
322 (_ "As which user should gnunetd run?")
324 "Empty means \"current user\". On computer startup, it is root/SYSTEM. Under Windows, this setting affects the creation of a new system service only.")
333 (define (general-autostart builder)
337 (_ "Should gnunetd be automatically started when the system boots?")
338 (_ "Set to YES if gnunetd should be automatically started on boot. If this option is set, gnunet-setup will install a script to start the daemon upon completion. This option may not work on all systems.")
346 (define (general-transports builder)
350 (_ "Which transport mechanisms should GNUnet use?")
352 "Use a space-separated list of modules, e.g. \"udp smtp tcp\". The available transports are udp, tcp, http, smtp and nat.
354 Loading the 'nat' and 'tcp' modules is required for peers behind NAT boxes that cannot directly be reached from the outside. Peers that are NOT behind a NAT box and that want to *allow* peers that ARE behind a NAT box to connect must ALSO load the 'nat' module. Note that the actual transfer will always be via tcp initiated by the peer behind the NAT box. The nat transport requires the use of tcp, http and/or smtp in addition to nat itself.")
358 (list "MC" "udp" "tcp" "nat" "http" "smtp")
362 (define (general-applications builder)
366 (_ "Which applications should gnunetd support?")
368 "Whenever this option is changed, you MUST run gnunet-update. Currently, the available applications are:
370 advertising: advertises your peer to other peers. Without it, your peer will not participate in informing peers about other peers. You should always load this module.
372 getoption: allows clients to query gnunetd about the values of various configuration options. Many tools need this. You should always load this module.
374 stats: allows tools like gnunet-stats and gnunet-gtk to query gnunetd about various statistics. This information is usually quite useful to diagnose errors, hence it is recommended that you load this module.
376 traffic: keeps track of how many messages were recently received and transmitted. This information can then be used to establish how much cover traffic is currently available. The amount of cover traffic becomes important if you want to make anonymous requests with an anonymity level that is greater than one. It is recommended that you load this module.
378 fs: needed for anonymous file sharing. You should always load this module.
380 hostlist: integrated hostlist HTTP server. Useful if you want to offer a hostlist and running Apache would be overkill.
382 chat: broadcast chat (demo-application, ALPHA quality). Required for gnunet-chat. Note that the current implementation of chat is not considered to be secure.
384 tbench: benchmark transport performance. Required for gnunet-tbench. Note that tbench allows other users to abuse your resources.
386 tracekit: topology visualization toolkit. Required for gnunet-tracekit. Note that loading tracekit will make it slightly easier for an adversary to compromise your anonymity." )
389 "advertising getoption fs stats traffic"
390 (list "MC" "advertising" "getoption" "fs" "hostlist" "stats" "traffic" "dht" "tracekit" "tbench" "vpn" "chat")
395 (define (tcpserver-disable builder)
399 (_ "Disable client-server connections")
400 (_ "This option can be used to tell gnunetd not to open the client port. When run like this, gnunetd will participate as a peer in the network but not support any user interfaces. This may be useful for headless systems that are never expected to have end-user interactions. Note that this will also prevent you from running diagnostic tools like gnunet-stats!")
408 (define (gnunetd-disable-ipv6 builder)
412 (_ "YES disables IPv6 support, NO enables IPv6 support")
413 (_ "This option may be useful on peers where the kernel does not support IPv6. You might also want to set this option if you do not have an IPv6 network connection.")
421 (define (gnunetd-private-network builder)
425 (_ "Disable peer discovery")
426 (_ "The option 'PRIVATE-NETWORK' can be used to limit the connections of this peer to peers of which the hostkey has been copied by hand to data/hosts; if this option is given, GNUnet will not accept advertisements of peers that the local node does not already know about. Note that in order for this option to work, HOSTLISTURL should either not be set at all or be set to a trusted peer that only advertises the private network. Also, the option does NOT work at the moment if the NAT transport is loaded; for that, a couple of lines above would need some minor editing :-).")
433 (define (network-disable-advertising builder)
436 "DISABLE-ADVERTISEMENTS"
437 (_ "Disable advertising this peer to other peers")
445 (define (network-disable-autoconnect builder)
448 "DISABLE-AUTOCONNECT"
449 (_ "Disable automatic establishment of connections")
450 (_ "If this option is enabled, GNUnet will not automatically establish connections to other peers, but instead wait for applications to specifically request connections to other peers (or for other peers to connect to us).")
457 (define (network-disable-helloexchange builder)
461 (_ "Enable advertising of other peers by this peer")
462 (_ "This option may be useful during testing, but turning it off is dangerous! If in any doubt, set it to YES (which is the default).")
469 (define (network-port builder)
473 (_ "Port for communication with GNUnet user interfaces")
474 (_ "Which is the client-server port that is used between gnunetd and the clients (TCP only). You may firewall this port for non-local machines (but you do not have to since GNUnet will perform access control and only allow connections from machines that are listed under TRUSTED).")
481 (define (hostlist-port builder)
485 (_ "Port for the integrated hostlist HTTP server")
493 (define (network-trusted builder)
497 (_ "IPv4 networks allowed to use gnunetd server")
498 (_ "This option specifies which hosts are trusted enough to connect as clients (to the TCP port). This is useful if you run gnunetd on one host of your network and want to allow all other hosts to use this node as their server. By default, this is set to 'loopback only'. The format is IP/NETMASK where the IP is specified in dotted-decimal and the netmask either in CIDR notation (/16) or in dotted decimal (255.255.0.0). Several entries must be separated by a semicolon, spaces are not allowed.")
505 (define (network-trusted6 builder)
509 (_ "IPv6 networks allowed to use gnunetd server")
510 (_ "This option specifies which hosts are trusted enough to connect as clients (to the TCP port). This is useful if you run gnunetd on one host of your network and want to allow all other hosts to use this node as their server. By default, this is set to 'loopback only'. The format is IP/NETMASK where the IP is specified in dotted-decimal and the netmask either in CIDR notation (/16) or in dotted decimal (255.255.0.0). Several entries must be separated by a semicolon, spaces are not allowed.")
518 (define (limit-allow builder)
522 (_ "Limit connections to the specfied set of peers.")
523 (_ "If this option is not set, any peer is allowed to connect. If it is set, only the specified peers are allowed. Specify the list of peer IDs (not IPs!)")
530 (define (general-groupname builder)
534 (_ "Run gnunetd as this group.")
535 (_ "When started as root, gnunetd will change permissions to the given group.")
542 (define (limit-deny builder)
546 (_ "Prevent the specfied set of peers from connecting.")
547 (_ "If this option is not set, any peer is allowed to connect. If the ID of a peer is listed here, connections from that peer will be refused. Specify the list of peer IDs (not IPs!)")
554 (define (advertising builder)
558 (_ "Topology Maintenance")
559 (_ "Rarely used settings for peer advertisements and connections")
561 (general-helloexpires builder)
562 (tcpserver-disable builder)
563 (gnunetd-private-network builder)
564 (network-disable-advertising builder)
565 (network-disable-helloexchange builder)
566 (network-disable-autoconnect builder)
567 (limit-allow builder)
575 (define (general builder)
579 (_ "General settings")
580 (_ "Settings that change the behavior of GNUnet in general")
582 (network-port builder)
583 (hostlist-port builder)
584 (network-trusted builder)
585 (general-hostlisturl builder)
586 (general-hosts builder)
587 (general-http-proxy builder)
591 (daemon-fdlimit builder)
592 (gnunetd-disable-ipv6 builder)
593 (general-username builder)
594 (general-groupname builder)
595 (general-pidfile builder)
596 (general-autostart builder)
603 (define (modules builder)
608 (_ "Settings that select specific implementations for GNUnet modules")
610 (modules-sqstore builder)
611 (modules-dstore builder)
612 (modules-topology builder)
622 (define (fundamentals builder)
630 (general-applications builder)
631 (general-transports builder)
642 (define (modules-sqstore builder)
646 (_ "Which database should be used?")
648 "Which database should be used? The options are \"sqstore_sqlite\", \"sqstore_postgres\" and \"sqstore_mysql\". You must run gnunet-update after changing this value!
650 In order to use MySQL or Postgres, you must configure the respective database, which is relatively simple. Read the file doc/README.mysql or doc/README.postgres for how to setup the respective database." )
654 (list "SC" "sqstore_sqlite" "sqstore_postgres" "sqstore_mysql")
657 (define (modules-dstore builder)
661 (_ "Which topology should be used?")
662 (_ "Which database should be used for the temporary datastore of the DHT?" )
666 (list "SC" "dstore_sqlite" "dstore_mysql")
670 (define (modules-topology builder)
674 (_ "Which topology should be used?")
676 "Which topology should be used? The only option at the moment is \"topology_default\"" )
680 (list "SC" "topology_default")
686 (define (f2f-minimum builder)
690 (_ "The minimum number of connected friends before this peer is allowed to connect to peers that are not listed as friends")
691 (_ "Note that this option does not guarantee that the peer will be able to connect to the specified number of friends. Also, if the peer had connected to a sufficient number of friends and then established non-friend connections, some of the friends may drop out of the network, temporarily resulting in having fewer than the specified number of friends connected while being connected to non-friends. However, it is guaranteed that the peer itself will never choose to drop a friend's connection if this would result in dropping below the specified number of friends (unless that number is higher than the overall connection target).")
698 (define (f2f-restrict builder)
702 (_ "If set to YES, the peer is only allowed to connect to other peers that are explicitly specified as friends")
703 (_ "Use YES only if you have (trustworthy) friends that use GNUnet and are afraid of establishing (direct) connections to unknown peers")
710 (define (f2f-friends builder)
714 (_ "List of friends for friend-to-friend topology")
715 (_ "Specifies the name of a file which contains a list of GNUnet peer IDs that are friends. If used with the friend-to-friend topology, this will ensure that GNUnet only connects to these peers (via any available transport).")
718 "$GNUNETD_HOME/friends"
722 (define (f2f builder)
726 (_ "Friend-to-Friend Topology Specification")
727 (_ "Settings for restricting connections to friends")
729 (f2f-restrict builder)
730 (f2f-minimum builder)
731 (f2f-friends builder)
740 (define (mysql-database builder)
744 (_ "Name of the MySQL database GNUnet should use")
752 (define (mysql-config builder)
756 (_ "Configuration file that specifies the MySQL username and password")
764 (define (mysql builder)
768 (_ "Configuration of the MySQL database")
771 (mysql-config builder)
772 (mysql-database builder)
783 (define (fs-quota builder)
787 (_ "MB of diskspace GNUnet can use for anonymous file sharing")
789 "How much disk space (MB) is GNUnet allowed to use for anonymous file sharing? This does not take indexed files into account, only the space directly used by GNUnet is accounted for. GNUnet will gather content from the network if the current space-consumption is below the number given here (and if content migration is allowed below).
791 Note that if you change the quota, you need to run gnunet-update afterwards.")
799 (define (fs-migration-buffer builder)
802 "MIGRATIONBUFFERSIZE"
803 (_ "Number of entries in the migration buffer")
804 (_ "Each entry uses about 32k of memory. More entries can reduce disk IO and CPU usage at the expense of having gnunetd use more memory. Very large values may again increase CPU usage. A value of 0 will prevent your peer from sending unsolicited responses.")
812 (define (fs-gap-tablesize builder)
816 (_ "Size of the routing table for anonymous routing.")
824 (define (fs-dht-tablesize builder)
828 (_ "Size of the routing table for DHT routing.")
837 (define (fs-activemigration builder)
841 (_ "Allow migrating content to this peer.")
843 "If you say yes here, GNUnet will migrate content to your server, and you will not be able to control what data is stored on your machine.
845 If you activate it, you can claim for *all* the non-indexed (-n to gnunet-insert) content that you did not know what it was even if an adversary takes control of your machine. If you do not activate it, it is obvious that you have knowledge of all the content that is hosted on your machine and thus can be considered liable for it.")
853 (define (dstore-quota builder)
857 (_ "MB of diskspace GNUnet can use for caching DHT index data (the data will be stored in /tmp)")
858 (_ "DHT index data is inherently small and expires comparatively quickly. It is deleted whenever gnunetd is shut down.
860 The size of the DSTORE QUOTA is specified in MB.")
872 (_ "Options for anonymous file sharing")
876 (fs-activemigration builder)
877 (fs-gap-tablesize builder)
878 (fs-dht-tablesize builder)
879 (dstore-quota builder)
887 (define (applications builder)
903 (define (nat builder)
907 (_ "Is this machine unreachable behind a NAT?")
908 (_ "Set to YES if this machine is behind a NAT that limits connections from the outside to the GNUnet port and that cannot be traversed using UPnP. Note that if you have configured your NAT box to allow direct connections from other machines to the GNUnet ports or if GNUnet can open ports using UPnP, you should set the option to NO. Set this only to YES if other peers cannot contact you directly. You can use 'make check' in src/transports/upnp/ to find out if your NAT supports UPnP. You can also use gnunet-transport-check with the '-p' option in order to determine which setting results in more connections. Use YES only if you get no connections otherwise. Set to AUTO to use YES if the local IP is belongs to a private IP network and NO otherwise.")
912 (list "SC" "YES" "AUTO" "NO")
915 (define (tcp-port builder)
919 (_ "Which port should be used by the TCP IPv4 transport?")
927 (define (tcp-upnp builder)
931 (_ "Should we try to determine our external IP using UPnP?")
939 (define (tcp-blacklist builder)
943 (_ "Which IP(v4)s are not allowed to connect?")
951 (define (tcp-whitelist builder)
955 (_ "Which IP(v4)s are allowed to connect? Leave empty to use the IP of your primary network interface.")
963 (define (tcp6-blacklist builder)
967 (_ "Which IPv6s are not allowed to connect?")
975 (define (tcp6-whitelist builder)
979 (_ "Which IPv6s are allowed to connect? Leave empty to allow any IP to connect.")
988 (define (tcp builder)
997 (tcp-blacklist builder)
998 (tcp-whitelist builder)
999 (tcp6-blacklist builder)
1000 (tcp6-whitelist builder)
1008 (define (http-port builder)
1012 (_ "Which port should be used by the HTTP transport?")
1020 (define (http-upnp builder)
1024 (_ "Should we try to determine our external IP using UPnP?")
1032 (define (http-advertised-port builder)
1036 (_ "Which is the external port of the HTTP transport?")
1037 (_ "Use this option if your firewall maps, say, port 80 to your real HTTP port. This can be useful in making the HTTP messages appear even more legit (without needing to run gnunetd as root due to the use of a privileged port).")
1044 (define (http builder)
1048 (_ "HTTP transport")
1052 (http-advertised-port builder)
1063 (define (smtp-mtu builder)
1067 (_ "What is the maximum transfer unit for SMTP?")
1075 (define (smtp-ratelimit builder)
1079 (_ "What is the maximum number of e-mails that gnunetd would be allowed to send per hour?")
1080 (_ "Use 0 for unlimited")
1087 (define (smtp-email builder)
1091 (_ "Which e-mail address should be used to send e-mail to this peer?")
1092 (_ "You must make sure that e-mail received at this address is forwarded to the PIPE which is read by gnunetd. Use the FILTER option to filter e-mail with procmail and the PIPE option to set the name of the pipe.")
1099 (define (smtp-filter builder)
1103 (_ "Which header line should other peers include in e-mails to enable filtering?")
1104 (_ "You can specify a header line here which can then be used by procmail to filter GNUnet e-mail from your inbox and forward it to gnunetd.")
1111 (define (smtp-pipe builder)
1115 (_ "What is the filename of the pipe where gnunetd can read its e-mail?")
1116 (_ "Have a look at contrib/dot-procmailrc for an example .procmailrc file.")
1119 "$GNUNETD_HOME/smtp-pipe"
1123 (define (smtp-server builder)
1127 (_ "What is the name and port of the server for outgoing e-mail?")
1128 (_ "The basic format is HOSTNAME:PORT.")
1135 (define (smtp builder)
1139 (_ "SMTP transport")
1142 (smtp-email builder)
1143 (smtp-ratelimit builder)
1144 (smtp-filter builder)
1146 (smtp-server builder)
1158 (define (udp-port builder)
1162 (_ "Which port should be used by the UDP IPv4 transport?")
1170 (define (udp-upnp builder)
1174 (_ "Should we try to determine our external IP using UPnP?")
1182 (define (udp-mtu builder)
1186 (_ "What is the maximum transfer unit for UDP?")
1194 (define (udp-blacklist builder)
1198 (_ "Which IPs are not allowed to connect?")
1206 (define (udp-whitelist builder)
1210 (_ "Which IPs are allowed to connect? Leave empty to allow connections from any IP.")
1218 (define (udp6-blacklist builder)
1222 (_ "Which IPv6s are not allowed to connect?")
1230 (define (udp6-whitelist builder)
1234 (_ "Which IPv6s are allowed to connect? Leave empty to allow any IP to connect.")
1242 (define (udp builder)
1252 (udp-blacklist builder)
1253 (udp-whitelist builder)
1254 (udp6-blacklist builder)
1255 (udp6-whitelist builder)
1264 (define (network-interface builder)
1268 (_ "Network interface")
1276 (define (network-ip builder)
1280 (_ "External IP address (leave empty to try auto-detection)")
1288 (define (network-ip6 builder)
1292 (_ "External IPv6 address (leave empty to try auto-detection)")
1300 (define (transports builder)
1308 (network-interface builder)
1309 (network-ip builder)
1322 (define (load-maxdown builder)
1325 "MAXNETDOWNBPSTOTAL"
1326 (_ "What is the maximum number of bytes per second that we may receive?")
1334 (define (load-maxup builder)
1338 (_ "What is the maximum number of bytes per second that we may send?")
1346 (define (load-cpu builder)
1350 (_ "What is the maximum CPU load (percentage)?")
1351 (_ "The highest tolerable CPU load. Load here always refers to the total system load, that is it includes CPU utilization by other processes. A value of 50 means that once your 1 minute-load average goes over 50% non-idle, GNUnet will try to reduce CPU consumption until the load goes under the threshold. Reasonable values are typically between 50 and 100. Multiprocessors may use values above 100." )
1358 (define (load-io builder)
1362 (_ "What is the maximum IO load (permille)?")
1364 "The highest tolerable IO load. Load here refers to the percentage of CPU cycles wasted waiting for IO for the entire system, that is it includes disk utilization by other processes. A value of 10 means that once the average number of cycles wasted waiting for IO is more than 10% non-idle, GNUnet will try to reduce IO until the load goes under the threshold. Reasonable values are typically between 10 and 75." )
1371 (define (load-cpu-hard builder)
1375 (_ "What is the maximum CPU load (hard limit)?")
1376 (_ "The highest tolerable CPU load. This is the hard limit, so once it is reached, gnunetd will start to massively drop data to reduce the load. Use with caution.")
1383 (define (load-hard-up-limit builder)
1387 (_ "What is the maximum upstream bandwidth (hard limit)?")
1388 (_ "The limit is given as a percentage of the MAXNETUPBPS limit. Use 100 to have MAXNETUPBPS be the hard limit. Use zero for no limit.")
1396 (define (load-priority builder)
1400 (_ "What priority should gnunetd use to run?")
1401 (_ "You can specify priorities like NORMAL, ABOVE NORMAL, BELOW NORMAL, HIGH and IDLE or a numerical integer value (man nice). The default is IDLE, which should result in gnunetd only using resources that would otherwise be idle.")
1409 (define (load-padding builder)
1411 "GNUNETD-EXPERIMENTAL"
1413 (_ "Should we disable random padding (experimental option)?")
1421 (define (load-basiclimiting builder)
1425 (_ "Use basic bandwidth limitation? (YES/NO). If in doubt, say YES.")
1427 "Basic bandwidth limitation (YES) means simply that the bandwidth limits specified apply to GNUnet and only to GNUnet. If set to YES, you simply specify the maximum bandwidth (upstream and downstream) that GNUnet is allowed to use and GNUnet will stick to those limitations. This is useful if your overall bandwidth is so large that the limit is mostly used to ensure that enough capacity is left for other applications. Even if you want to dedicate your entire connection to GNUnet you should not set the limits to values higher than what you have since GNUnet uses those limits to determine for example the number of connections to establish (and it would be inefficient if that computation yields a number that is far too high).
1429 While basic bandwidth limitation is simple and always works, there are some situations where it is not perfect. Suppose you are running another application which performs a larger download. During that particular time, it would be nice if GNUnet would throttle its bandwidth consumption (automatically) and resume using more bandwidth after the download is complete. This is obviously advanced magic since GNUnet will have to monitor the behavior of other applications. Another scenario is a monthly cap on bandwidth imposed by your ISP, which you would want to ensure is obeyed. Here, you may want GNUnet to monitor the traffic from other applications to ensure that the combined long-term traffic is within the pre-set bounds. Note that you should probably not set the bounds tightly since GNUnet may observe that the bounds are about to be broken but would be unable to stop other applications from continuing to use bandwidth.
1431 If either of these two scenarios applies, set BASICLIMITING to NO. Then set the bandwidth limits to the COMBINED amount of traffic that is acceptable for both GNUnet and other applications. GNUnet will then immediately throttle bandwidth consumption if the short-term average is above the limit, and it will also try to ensure that the long-term average is below the limit. Note however that using NO can have the effect of GNUnet (almost) ceasing operations after other applications perform high-volume downloads that are beyond the defined limits. GNUnet would reduce consumption until the long-term limits are again within bounds.
1433 NO only works on platforms where GNUnet can monitor the amount of traffic that the local host puts out on the network. This is only implemented for Linux and Win32. In order for the code to work, GNUnet needs to know the specific network interface that is used for the external connection (after all, the amount of traffic on loopback or on the LAN should never be counted since it is irrelevant).")
1440 (define (load-interfaces builder)
1444 (_ "Network interface to monitor")
1445 (_ "For which interfaces should we do accounting? GNUnet will evaluate the total traffic (not only the GNUnet related traffic) and adjust its bandwidth usage accordingly. You can currently only specify a single interface. GNUnet will also use this interface to determine the IP to use. Typical values are eth0, ppp0, eth1, wlan0, etc. 'ifconfig' will tell you what you have. Never use 'lo', that just won't work. Under Windows, specify the index number reported by 'gnunet-win-tool -n'.")
1449 (list "*" "eth0" "eth1" "eth2")
1452 (define (load builder)
1456 (_ "Load management")
1459 (load-priority builder)
1460 (load-maxdown builder)
1461 (load-maxup builder)
1462 (load-hard-up-limit builder)
1465 (load-cpu-hard builder)
1466 (load-basiclimiting builder)
1467 (load-interfaces builder)
1468 (load-padding builder)
1478 (define (main builder)
1486 (fundamentals builder)
1488 (advertising builder)
1491 (transports builder)
1492 (applications builder)
1501 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1503 ;; first main method: build tree using build-tree-node
1504 ;; The lambda expression is used to throw away the last argument,
1505 ;; which we use internally and which is not used by build-tree-node!
1506 (define (gnunet-config-setup)
1508 (lambda (a b c d e f g h i) (build-tree-node a b c d e f g h) ) ) )
1511 ;; second main method: update visibility (and values)
1512 ;; "change" uses again the tree builder but this time
1513 ;; scans the "i" tags to determine how the visibility needs to change
1515 (define (gnunet-config-change ctx)
1518 (advanced (get-option ctx "Meta" "ADVANCED"))
1519 (rare (get-option ctx "Meta" "RARE"))
1520 (nobasiclimit (not (get-option ctx "LOAD" "BASICLIMITING")))
1521 (experimental (get-option ctx "Meta" "EXPERIMENTAL"))
1522 (ipv6 (not (get-option ctx "GNUNETD" "DISABLE-IPV6")))
1523 (f2fr (not (get-option ctx "F2F" "RESTRICT") ) )
1524 (f2f (or (get-option ctx "F2F" "FRIENDS-ONLY")
1525 (not (eq? (get-option ctx "F2F" "MINIMUM") 0) ) ) )
1526 (tcp-port-nz (eq? (get-option ctx "TCP" "PORT") 0) )
1527 (udp-port-nz (eq? (get-option ctx "UDP" "PORT") 0) )
1528 (http-port-nz (eq? (get-option ctx "HTTP" "PORT") 0) )
1529 (mysql (string= (get-option ctx "MODULES" "sqstore") "sqstore_mysql") )
1530 (fs-loaded (list? (member "fs" (string-split (get-option ctx "GNUNETD" "APPLICATIONS") #\ ) ) ) )
1531 (hostlist-loaded (list? (member "hostlist" (string-split (get-option ctx "GNUNETD" "APPLICATIONS") #\ ) ) ) )
1532 (nat-loaded (list? (member "nat" (string-split (get-option ctx "GNUNETD" "TRANSPORTS") #\ ) ) ) )
1533 (tcp-loaded (list? (member "tcp" (string-split (get-option ctx "GNUNETD" "TRANSPORTS") #\ ) ) ) )
1534 (udp-loaded (list? (member "udp" (string-split (get-option ctx "GNUNETD" "TRANSPORTS") #\ ) ) ) )
1535 (http-loaded (list? (member "http" (string-split (get-option ctx "GNUNETD" "TRANSPORTS") #\ ) ) ) )
1536 (smtp-loaded (list? (member "smtp" (string-split (get-option ctx "GNUNETD" "TRANSPORTS") #\ ) ) ) )
1540 (lambda (a b c d e f g h i)
1543 ((eq? i 'advanced) (change-visible ctx a b advanced))
1544 ((eq? i 'rare) (change-visible ctx a b (and advanced rare)))
1545 ((eq? i 'experimental) (change-visible ctx a b (and advanced experimental)))
1546 ((eq? i 'f2f) (change-visible ctx a b f2f))
1547 ((eq? i 'ipv6) (change-visible ctx a b ipv6))
1548 ((eq? i 'f2fr) (change-visible ctx a b f2fr))
1549 ((eq? i 'mysql) (change-visible ctx a b mysql))
1550 ((eq? i 'fs-loaded) (change-visible ctx a b fs-loaded))
1551 ((eq? i 'hostlist-loaded) (change-visible ctx a b hostlist-loaded))
1552 ((eq? i 'nat-unlimited)(change-visible ctx a b nat-unlimited))
1553 ((eq? i 'tcp-port-nz) (change-visible ctx a b tcp-port-nz))
1554 ((eq? i 'udp-port-nz) (change-visible ctx a b udp-port-nz))
1555 ((eq? i 'nat-loaded) (change-visible ctx a b nat-loaded))
1556 ((eq? i 'udp-loaded) (change-visible ctx a b udp-loaded))
1557 ((eq? i 'tcp-loaded) (change-visible ctx a b tcp-loaded))
1558 ((eq? i 'http-loaded) (change-visible ctx a b http-loaded))
1559 ((eq? i 'smtp-loaded) (change-visible ctx a b smtp-loaded))
1560 ((eq? i 'nobasiclimit) (change-visible ctx a b nobasiclimit))
1564 (change-visible ctx "NETWORK" "PORT" (and advanced (not (get-option ctx "TCPSERVER" "DISABLE"))))
1565 (change-visible ctx "NETWORK" "TRUSTED" (and advanced (not (get-option ctx "TCPSERVER" "DISABLE"))))