# This is the configuration for your GNUnet node. # Put this file in ~/.gnunet/gnunet.conf and you # should be fine. # For any other location, you must tell every # GNUnet application that you start where this file is. # (option -c FILENAME). # # After any change in this file, you MUST manually # restart your gnunet-node. # # # # ################################################# # Usually you should only have to set the first # line, which gives the root-directory of the # GNUnet tree. Make sure there is some space left # in that directory. :-) # If you are not installing as root, ~/.gnunet # may be a good choice. GNUNET_HOME = ~/.gnunet # For root, choose this: # GNUNET_HOME = /var/GNUnet ############################################ # Network configuration ############################################ [NETWORK] # 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. INTERFACES = ppp0 # Set if GNUnet fails to determine your IP. # GNUnet first tries to determine your IP # by looking at the IP that matches the # interface that is given with the option # INTERFACES. Mind that at the moment only # a single interface is supported. # # If this fails, GNUnet will try to do a # DNS lookup on your HOSTNAME, which may # also fail, in particular if you are on # dialup. # # If both options are not viable for you, # you can specify an IP in this configuration # file. # This may be required if # you have multiple interfaces (currently GNUnet can # only work on one of them) or if you are behind # a router/gateway that performs network address # translation (NAT). In the latter case, set this # IP to the *external* IP of the router (!) and # make sure that the router forwards incoming UDP # packets on the GNUnet port (default: 2086) to # the dedicated GNUnet server in the local network. # This NAT configuration has not been tested! # # The default value (127.0.0.1) will NOT work! # If you do not know what all this means, try # without! IP = flolp.dynodns.net # Bandwidth limitation. # GNUnet can determine your current bandwidth # usage and throttle in times of heavy other load. # This number is supposed to specify your total # bandwidth available in bytes per second. MAXNETBPSTOTAL = 3000 # The maximum load (in %) below which the node # still decides to participate in GNUnet, # percentage of MAXNET. MAXNETLOAD = 70 # To which port does GNUnet bind? Default is 2086 # and there is usually no reasno to change that. PORT = 2086 # If this host is connected to two networks, a private # which is not reachable from the Internet and that # contains GNUnet clients and to a public network, # typically the Internet (and is this host is # thus in the position of a router, typically # doing NAT), then this option should be set to 'NO'. # It prevents the node from forwarding HELOs # other than its own. If you do not know what the # above is about, just keep it set to YES (which # is also the default when the option is not # given). NETWORK_HELO_EXCHANGE = YES # With this option, you can specify which networks # you do NOT want to connect to. Usually you will # want to filter loopback (127.0.0.1, misconfigured # GNUnet hosts), virtual private networks, # [add a class C network here], 192.168.0.0, 172.16.0.0 # and 10.0.0.0 (RFC 1918). 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. # Notice that if your host is on a private network # like the above, you will have to configure your # NAT to allow incoming requests and you will want # to modify this option. # The idea behind this option is not to discriminate # against NAT users but to ensure that hosts only attempt # to connect to machines that they have a chance to actually # reach. # Of course, you could also use it against known # adversaries that have a small IP range at their # disposal :-) # # Example (and default): # 127.0.0.1/8;192.168.0.0/16;10.0.0.0/255.0.0.0; #BLACKLIST = 127.0.0.1/8;192.168.0.0/16;10.0.0.0/255.0.0.0; # With this option, you can specify which networks 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 the same as for the BLACKLIST. TRUSTED = 127.0.0.1/8;192.168.2.0/24; # 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. HOSTLISTURL = http://www.ovmj.org/GNUnet/download/hostlist ################################################ # Options relevant for filesharing. ################################################ [FILESHARING] # Should we participate in content migration? # 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. # This option has advantages and disadvantages. # # If you activate it, you can claim for *all* the # non-indexed (-i 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. # # So if you think that the legal system in your country # has gone postal, you may want to set it to "NO" and # make sure that the content you put on your machine # does not get you into too much trouble if an adversary # takes control of your machine. # If you think that you're safe if you host content # that you don't know anything about (like an ISP) # or that you don't have to fear prosecution no-matter-what, # turn it to YES, which will also improve GNUnet's # performance and thereby your results. # # Note that as long as the adversary is not really powerful # (e.g. can not take control of your machine), GNUnet's # build-in anonymity mechanisms should protect you from # being singled out easily. # # The default is "NO" to ensure that really nobody gets # into trouble for not reading the docs. You're encouraged # to set it to "YES", though. The 'YES' must be all-caps! ACTIVEMIGRATION = YES # How long should gnunet-search try to get an answer # to a query before timing out (in seconds). # Default is 3000s, which should be enough for pretty # much anything. Use 0 for no timeout. SEARCHTIMEOUT = 3000 # Specify which additional extractor libraries should # be used. gnunet-insert uses libextractor to # extract keywords from files. libextractor can # be dynamically extended to handle additional # file formats. If you want to use more than the # default set of extractors, specify additional # extractor libraries here. # The format is [[-]LIBRARYNAME[:[-]LIBRARYNAME]*] # The default is to use filenames and to break # larger words at spaces (and underscores, etc.). # This should be just fine for most people. The # - before a library name indicates that this # should be executed last and makes only sense # for the split-library. EXTRACTORS = libextractor_filename.so:-libextractor_split.so #################################################### # Section defining where GNUnet should put its files. #################################################### [FILES] # In this section you specify how many resources # GNUnet is allowed to use. GNUnet may exceed the limits # by a small margin (network & CPU are hard to control # directly), but should do a reasonable job to keep # the average around these values # How much disk space (MB). This number does not count # the space for the hostkey (1k), the database # or the files shared using on-demand encoding. # For every on-demand encoded file, GNUnet *requires* at # least 2% of the filesize for directly shared files. # Thus if you share 10 GB, you must set this value to # at least 200 MB. (Furthermore, you'll need a database # of 512 MB [reconfigure!], yielding approximately 11 GB total). # # GNUnet will gather content from the network if the current # space-consumption is below the number given here. # Attention: GNUnet does NOT look for the actual space consumption # on the drive. GNUnet is unconcerned with space for inodes and # incomplete blocks. On ext2, the space for these structures can # be typically up to about 4-times more than the actual data. # Read the FAQ on how to avoid this. DISKQUOTA = 2048 # Where to store the private key. Keep this file # top-secret, do not share with other nodes! HOSTKEY = $GNUNET_HOME/.hostkey # Where to store the database? # This file is (by default) 256 MB big! # You can change the size in src/include/config.h # This makes only sense if you share significantly # less than 256 MB of files or significantly more than # 4 GB (these numbers include on-demand shared files) DATABASE = $GNUNET_HOME/database # The age-file is a file that stores an int # which is used to determine the relative # age of files in the database. It is always very small. AGEFILE = $GNUNET_HOME/database.age # Where to store the list of on-demand shared files? # This file contains filenames of files that are shared # and encrypted for Gnunet on-the-fly such that you can # still keep accessing them. The files should not change # in content. # You should NEVER edit this filelist directly but use # the insertfile tool to add files to the list. # Currently, there is no way to remove files from the list, # except deleting the DATABASE, COLLISION and FILELIST files # and re-inserting all files. FILELIST = $GNUNET_HOME/database.list # Where to store the list of collisions? # This is an extention-file that will not be large # if your database file has an appropriate size # (see src/include/config.h) COLLISION = $GNUNET_HOME/collisions # Where to store data. Got some empty partition? :) # This directory can be shared between multiple # nodes, but keep in mind that each node will # want to write to it. See the Gnunet-FAQ for formatting a # dedicated partition optimally. CONTENTDIR = $GNUNET_HOME/data/content/ # Where to store the credit for all hosts? # Should not be shared with other nodes, but contains # no 'secret' data either. Malicious hosts should NOT # be able to WRITE to it. CREDITDIR = $GNUNET_HOME/data/credit/ # this directory should be made available periodically # --- it contains information how to join Gnunet that is # in no way private to the local node. # This directory can be shared between nodes AND should # be put on a public web-server (if possible). # You should find a list of known hosts under # http://gecko.cs.purdue.edu/gnunet/hosts/, you can copy # those files into this directory. HOSTS = $GNUNET_HOME/data/hosts/ ######################################### # Options for the GNUnet server, gnunetd ######################################### [GNUNETD] LOGFILE = /var/log/gnunet/gnunet.log LOGLEVEL=6 PIDFILE = /home/chris/.gnunet/gnunet.pid # How many hours is the current IP valid? # (Gnunet will sign HELO messages with this # expiration timeline. If you are on dialup, # 1 (for 1 hour) is suggested. If you are # on DSL or other permanent connections with # fixed IP, set to values [24-2400]. Default # is 240 (10 days) HELOEXPIRES = 1 # The total number of nodes with which the current node # will maintain a session-key for. Must be a power of 2, # Set rather high as it doesn't cost much; this is NOT # Gnutella... MAXNODES = 128 # Which CPU load can be tolerated (total, GNUnet # will adapt if the load goes up due to other # processes). # A value of 50 means that once your 1 minute-load average # goes over 50% non-idle, GNUnet will start dropping packets # until it goes under that threshold again. MAXLOAD = 150