Freenet - Guida

Philosophical questions

  1. What is Freenet?
  2. Who is behind Freenet?
  3. If authors are anonymous how can you trust information?
  4. Do I have to donate disk space and bandwidth?
  5. I don't have to donate anything when using filesharing application X and I get to leech more.
  6. All my friends donate very little space and bandwidth. Why should I donate more?
  7. If I donate a lot will my experience improve significantly?
  8. What do I get from running a permanent node?
  9. Is Freenet legal?
  10. Can I get trouble if I run a node?
  11. What about copyright?
  12. What about child porn, offensive content or terrorism?
  13. I don't want my node to be used to harbor child porn, offensive content or terrorism. What can I do?
  14. How about encryption export restrictions?
  15. I have nothing to hide and don't need anonymity. Is there anything else Freenet can offer?

Technical questions

  1. How do I use this software? I downloaded it, but when I run it there's no GUI.
  2. Is Freenet searchable?
  3. How do I get freenet working with a firewall/NAT?
  4. Do I need a permanent connection to run a node?
  5. Why does Freenet only download 1 or 2 files at a time?
  6. What does I/O error in servlet mean?
  7. Why can't Freenet store data permanently?
  8. Why is Freenet implemented in Java?
  9. How do I allow connections to FProxy from other computers?
  10. My freenet.ini (or .conf) file is empty, or nearly so!
  11. What is FEC?
  12. What is healing?
  13. My browser can't save large files from Freenet. Can I retrieve them from the command line?
  14. What's this distribution servlet? How do I use it?
  15. How do I extract the necessary seedNode values from my own node?
  16. Is there a future roadmap of Freenet?
  17. What is a Heisenbug?
  18. Why are there so many messages in my logfile with a backtrace attached?

Publisher questions

  1. If I publish something in Freenet, how will people find it? Don't they have to know the key I used?
  2. How do I publish a Content Hash Key (CHK)?
  3. Can Freenet documents be updated / deleted?

Contribution questions

  1. I have this great idea....
  2. Can I contribute to the Freenet Project?
  3. How can I access the code and website?
  4. What tools do I need to help develop?

Security questions

  1. Won't attack X break Freenet's anonymity?
  2. Is Freenet vulnerable to flooding attacks?
  3. Why hash keys and encrypt data when a node operator could identify them (the data) anyway if he tried?
  4. What about hostile "cancer" nodes within the network?
  5. What about attack Y?

Philosophical answers

What is Freenet?
Freenet is free software designed to ensure true freedom of communication over the Internet. It allows anybody to publish and read information with complete anonymity. Nobody controls Freenet, not even its creators, meaning that the system is not vulnerable to manipulation or shutdown. Freenet is also very efficient in how it deals with information, adaptively replicating content in response to demand. For more information, please read What Is Freenet .

Who is behind Freenet?
Freenet grew out of a design for an anonymous publication system created by Ian Clarke while a student at the University of Edinburgh, Scotland. Since then many other people have contributed towards making Ian's proposal a reality.

If authors are anonymous how can you trust information?
Cryptographic signing of information allows people to prove authorship, this technique is frequently used to authenticate authorship of emails. Moreover, you could actually sign information while remaining anonymous, thus having an anonymous persona. You could prove that you wrote different pieces of information on Freenet, without revealing your identity. In this way you could build up an anonymous reputation for reliability.

Do I have to donate disk space and bandwidth?
You aren't really donating in the sense that you lose the disk space and the bandwidth; but you aren't really sharing either (at least not the same way as with filesharing programs). It is more like pitching in to the common Freenet resource pool.

I don't have to donate anything when using filesharing application X and I get to leech more.
Do you get to do that anonymously? Freenet is designed with anonymity in mind, performance comes second.

All my friends donate very little space and bandwidth. Why should I donate more?
If you are happy with what you are getting then no. But if you want more you should consider donating more, making your node permanent and you should ask your friends to do the same.

If I donate a lot will my experience improve significantly?
Your experience will definitely get better, but for a really great improvement we need more people to start thinking like you. Bandwidth counts more than diskspace.

What do I get from running a permanent node?
Don't be frightened from the word permanent. It doesn't mean that once you start your node you're hooked to freenet for life. And once you see how much better it is to run a permanent node, you will likely not want to switch back to transient. Your node will connect itself better to the rest of the network, so requesting keys will be faster. Since you will be getting a lot of traffic it is likely that the newly stored material will be closer to you (or even on your very own node) and you will have faster access to the newest editions of the freesites or the latest uploads in Frost. Without permanent nodes, there is no network to request from. By running a permanent node you are helping the network.
Perhaps more importantly, running a permanent node improves your anonymity. Since all requests coming from a transient node originate on that node, the node you're connecting to is guaranteed that the request came from you. A permanent node forwards requests for other nodes too, so the node you connect to can never be sure if it was actually you requesting or inserting the data in question.

Is Freenet legal?
If by legal you mean not illegal, then yes it is. Of course, anything can be found to be illegal at some point in the future, and the law can be an ass sometimes, so we can make no guarantee about Freenet's future legality.

Can I get trouble if I run a node?
This is related to the previous question. We have done everything we can to make it extremely difficult for any sane legal system to justify punishing someone for running a Freenet node, and there is little precedent for such action in today's developed countries. Many legal systems recognise the importance of freedom of speech, which is Freenet's core goal. Having said that, there is risk in doing anything that your government might not agree with; you should make an informed decision as to whether to take that risk.

What about copyright?
There are some excellent thoughts on this subject on the Philosophy page.

What about child porn, offensive content or terrorism?
While most people wish that child pornography and terrorism did not exist, humanity should not be deprived of their freedom to communicate just because of how a very small number of people might use that freedom.

I don't want my node to be used to harbor child porn, offensive content or terrorism. What can I do?
The true test of someone who claims to believe in Freedom of Speech is whether they tolerate speech which they disagree with, or even find disgusting. If this is not acceptable to you, you should not run a Freenet node. There is another thing you can do. Since content in Freenet is available as long as its popular, you can help limit the popularity of whatever information you do not like. For example, if you do not want a file to spread you should not request it and tell everyone you know not to request that specific key. However, keep in mind that freenet is not designed so as to only allow communication between people if a sufficient number of people agree with the communication. Freenet is designed to make communication possible even if there's just one publisher and one reader, and this is already reasonably feasible on the current freenet.

How about encryption export restrictions?
The Freenet Project has notified the US authorities (since the files are hosted on SourceForge, which is on US soil) that it will be exporting crypto. As long as your country doesn't prohibit the use of encryption you are fine.

I have nothing to hide and don't need anonymity. Is there anything else Freenet can offer?
Yes, in fact even without the anonymity feature Freenet is very useful because of its unique way it handles content distribution and information load. In simple terms that means you can publish a website without worrying about how big the site will be and without having to put someone elses ad banners on it. While it is unlikely that freenet sites will ever load faster than regular websites, it does adapt to sudden surges of visitors (which will often occur when relatively unknown sites get linked to from a big site) better, and high download speeds for big files are feasible too. Just don't expect very low latency.

Technical answers

How do I use this software? I downloaded it, but when I run it there's no GUI.
Fred (the Freenet REference Daemon) runs as a daemon, or service, in the background. You normally talk to it with a Freenet client. One of the services that Fred offers is called fproxy, which lets you talk to Freenet with a web browser. Point your web browser to http://127.0.0.1:8888/ for the gateway page. Try clicking the various links in the "Bookmarks" panel to reach some of the popular Freenet index sites.

If you're looking for applications that run on top of Freenet and provide a different interface or functionality, please see the Tools page.

Is Freenet searchable?
No search mechanism has yet been implemented. One of the design goals was to make it impossible to locate the exact place where any piece of information is stored. Even a server operator cannot determine what is stored at his own node. This naturally makes searching very difficult. Information is currently retrieved by "keys" which should be guessable, or communicated by some other means.

Proposals for adding safe searching and indexing capabilities to Freenet are being discussed for the future. For example, Freenet documents can contain hyperlinks which could be spidered in the same way as the web -- for example, see this spider (WARNING: NOT ANONYMOUS!). Alternately, lists of keywords or other metadata could be circulated through the network.

How do I get freenet working with a Firewall/NAT?

  1. Open the freenet.conf or freenet.ini file in a text editor. On Windows you will normally find this file in c:\Program Files\Freenet , on Linux you will find it wherever you unpacked the Freenet tarball.
  2. Find the line containing the ipAddress setting and change it to:

•  ipAddress=x.x.x.x

...where x.x.x.x is the IP address of your NAT or Firewall (consult the manual if you are unsure how to determine this).

  1. Find the line containing listenPort and take a note of the number it is set to - do not change it.
  2. Configure your NAT or firewall to forward connections to the listenPort number that you noted in the previous step, to the same port on your computer (you will probably need to know your computer's internal IP address which will often begin with 192.168.x.x)

Do I need a permanent connection to run a node?
No, but it is preferred. You can run the software and test it from a "transient" connection (such as provided by typical modem/ISP setups), but for the network as a whole to be most useful, we will need as many permanent nodes as possible (most cable modem or DSL setups are sufficiently "permanent" for this). A later version of Freenet may take better advantage of transient nodes.

Why does Freenet only download 1 or 2 files at a time?
Many browsers limit the number of simultaneous connections to something far too low for efficiently browsing Freenet (since Freenet pages often have much higher latency than web pages). This can usually be reconfigured. For example, for Mozilla, create a file with the following contents called user.js in the directory with prefs.js, or append to an existing user.js:

user_pref("network.http.max-connections", 200);
user_pref("network.http.max-connections-per-server", 100);
user_pref("network.http.max-persistent-connections-per-server", 10);
user_pref("network.http.max-persistent-connections-per-proxy", 50);

Note that these settings will cause mozilla to use more connections for all your browsing, which may not be desirable from a network congestion point of view; volunteers to make mozilla allow this sort of settings to be set per host would be welcome...

What does I/O error in servlet mean?
This message in the log file is normally harmless. Freenet writes this to the log any time your browser breaks a connection to fproxy ( e.g. if you clicked "Stop" in your browser while waiting for a Freenet page's images to load).

Why can't Freenet store data permanently?
Because we can't find a way to do this without compromising Freenet's other goals. For example, people often suggest that someone's node could just never drop data they want to cache permanently. This, however, won't work because even if the data is still available on their node, there is no way to ensure that requests for that data will be routed to that node. We have considered many other ways that Freenet could store data permanently, but they either won't work, or compromise Freenet's core goals of anonymity, and scalability.

Why is Freenet implemented in Java?
Opinions differ about the choice of java for the reference implementation of freenet (even among the core developers). Ian Clarke and several other developers are java proponents and the choice for java was made. Even if everybody could be convinced to switch to a different language reimplementing the current freenet protocol would be quite a big task, and take up a significant amount of time, while there is only a limited about of developer-time available. Flame wars on the development list about the language choice aren't welcome, people willing to implement freenet in other languages however are very much encouraged to try. Don't underestimate the amount of work however.

How do I allow connections to FProxy from other computers?
If you want everyone to be able to use your node, then add the following lines to your freenet.conf or freenet.ini file:

mainport.bindAddress=*
mainport.allowedHosts=*

Of course, this leaves your node wide open, unless you control access with a firewall of some sort. If you'd prefer to use access controls within Freenet, then you can use lines like this:

mainport.bindAddress=*
mainport.allowedHosts=127.0.0.1,192.168.1.0/24

My freenet.ini (or .conf) file is empty, or nearly so!
If you tried to install Freenet at a time when your Java runtime environment was not working, you might have created a broken configuration file. Make sure your Java environment works. Then, remove the config file and try running the Freenet setup again. (On Unix, this is ./start-freenet.sh .)

What is FEC?
FEC stands for Forward Error Correction. When large files are inserted into Freenet, they are split into several small blocks -- this is called a splitfile . FEC adds redundant check blocks to a splitfile, so that if some of the blocks fall out of the network or can't be found, you might still be able to retrieve enough of the file to reconstruct it.

What is healing?
When you download a splitfile that uses FEC (see previous question), some of the blocks may have become unavailable. Healing lets you repair the file by recalculating the data for the missing blocks, and then reinserting them into Freenet.

My browser can't save large files from Freenet. Can I retrieve them from the command line?
Yes, you can. Use this command:

java -cp freenet.jar freenet.client.cli.Main get KEY filename

Be sure to specify the filename you want to save the key into. You can use the --help option to learn the other switches, such as healing percentage, HTL for the individual blocks, etc.

You can also use standalone freenet tools like FUQID (windows only, link only works if you have fproxy running on 127.0.0.1:8888), or FCPTools .

What's this distribution servlet? How do I use it?
The distribution servlet allows you to provide friends/colleagues/people you meet in IRC to download a copy of Freenet from your node. They get seednodes extracted from your node's routing tables, speeding their integration into the network. To use it, go to http://127.0.0.1:8891/ and create a URL. This URL will be good for 24 hours or 100 hits, whichever comes first. People visiting the URL will find a copy of Freenet for download.

How do I extract the necessary seedNode values from my own node?
Temporarily stop your node with sh stop-freenet.sh Then type sh start-freenet.sh --export myref.ref Wait a few seconds, until java processes stop. Then do sh start-freenet.sh again to start the node normally. myref.ref will contain your node reference. Make sure that if you post this for others to use, that you avoid extra linebreaks.

Is there a future roadmap of Freenet?
Yes, there is a provisional, unofficial roadmap of Freenet, describing the possible future development of the project here.

What is a Heisenbug?
The name comes from the Heisenberg Uncertainty Principle of physics, which states that when measuring both the momentum and the position of a particle, the product of the uncertainties is a constant. In Freenet, the Heisenbug refers to a problem which plagued the developers for a long time and was extremely difficult to reproduce.

The current theory is that the Heisenbug is actually a bug in certain Java virtual machines, particularly IBM's, which causes certain calculations to return the wrong results; but these results match a certain pattern. Whenever your node sees this pattern, it reports that the Heisenbug may have occurred, and writes verbose information to the logs. Since this pattern can also occur under normal circumstances (about once in every 65,000 times), a few Heisenbug reports may be expected. But if you're getting lots of them, something's wrong.

Update : It's turned out that the heisenbug was actually a bug in the fred code, there was a bug in our implementation of Yarrow , a piece of code should have been synchronized (a java method of locking) but wasn't. If you're still seeing heisenbugs being reported in your logfile and are running a current version of freenet, please report them to the mailinglist.

Why are there so many messages in my logfile with a backtrace attached?
Fred (and freenet in general) are still very much in development, and if something goes wrong it's worthwhile to know exactly what went wrong.

Publisher answers

If I publish something in Freenet, how will people find it? Don't they have to know the key I used?
Yes, people will have to know what key you used to publish your information. This means you will have to announce your key in some way.

The most common way to do this is to send a message, containing your key and brief description of your information, to the author of one of the existing Freenet sites. Most of the "portal" sites which are linked from the Freenet web interface (fproxy) have a submission form which lets you send them messages anonymously. You could also send your key to people by using the Freenet mailing lists, or the IRC channel (irc.freenode.net #freenet), or by private e-mail, or by advertising your Freenet site on your World Wide Web site. Or if you're feeling extravagant, you could try skywriting it. (Graffiti is not recommended, for legal reasons.)

How do I publish a Content Hash Key (CHK)?
A Content Hash Key is based on the actual content contained within it - and as such, the key will only be known after it has been inserted into Freenet. To insert a CHK, simply insert it as "CHK@", Freenet will tell you what the actual CHK is once the insertion completes.

Can Freenet documents be updated / deleted?
Currently, a document posted to Freenet with the same name as one already present may actually serve to propagate the existing document. There is also currently no means of deleting a document from Freenet. Documents that are never requested are eventually removed through disuse.

One may employ a date-based redirect (DBR), though -- these are evaluated according to the current time and date. A DBR with a frequency of a day will point at a new target key every 24 hours. If this new target is always inserted before the DBR rolls over, the illusion of having the "same" document that is still updatable is achieved. If nothing resides at the current target, it appears as if the content were "deleted".

It should be noted, though, that by not going through the DBR one can access the target corresponding to any time in the past (as long as the content has not been "pushed out" to make room) or future (as long as the content has been already inserted).

The problem is it is not clear how useful they are for documents that change at irregular intervals. DBR sites, also, may not be retired, as they will break soon, after future-dates insertions expire.

As of today, probably the best way for most cases is the use of "edition" publishing.

Contribution answers

I have this great idea....
Good! First step: read the mailing list archives . Odds are good that someone else had the same idea and discussed it with the group. Either a flaw was found in the idea, or perhaps it was decided to postpone implementing the idea until later. Some examples of ideas already discussed are storing information by content hash, key redirection, signed keys/data, use of UDP, server discovery, URLs, document versioning, and others. If you don't see the idea discussed in the archives, by all means bring it up in the appropriate mailing list.

Can I contribute to the Freenet Project?
Absolutely. Even if you don't have the time or skills to become a co-developer of the project, you can contribute in other ways:

If you are a developer, you can also help by designing and developing other applications to run on Freenet.

How can I access the code and website?
The Freenet project is hosted at SourceForge. You will have to create an account for yourself there, then send email to the project coordinator asking him to add you to the group. Further details are available on the Freenet and SourceForge web sites.

What tools do I need to help develop?
To build and deploy the Freenet server, you will need Java tools compatible with Sun's JDK 1.1 or later. To retrieve and update the code at SourceForge you will need a network version of CVS , (This is not necessary if you only want to download, compile, and run the server without contributing to its code). To do web development you will need SSH (or OpenSSH ). Further instructions for building and deploying the server are included with the code itself.

Security answers

Won't attack X break Freenet's anonymity?
Short answer: Probably yes.

Long answer:

Freenet does not offer true anonymity in the way that the Mixmaster and cypherpunk remailers do. Most of the non-trivial attacks (advanced traffic analysis, compromising any given majority of the nodes, etc.) that these were designed to counter would probably be successful in identifying someone making requests on Freenet.

On Freenet, whatever you do, your identity is still revealed to the first Freenet Node you talk to, and even if you limit yourself to talk only to trusted nodes (a feature that will be implemented in the future), they will have to talk to the rest of the network at some time or another. The anonymity that Freenet offers is really just obscurity in the fact that it is hard to prove that your node wasn't proxying the request for or insert of data on behalf of somebody else (who might also just have been proxying it).

The problem is that the only way that you can offer true anonymity is if the client can directly control the routing of data, and thus encrypt it with a series of keys of the nodes it will pass through (a la Mixmaster ). Freenet's dynamic routing cannot offer that, so to attain true anonymity you have to send the message through an external network of anonymous remailers first (a future SMTP->Freenet bridge would make this possible). There are also plans for doing mixmaster-style injection of requests over the "standard" protocol, however this probably won't be implemented before version 1.0, which is still some way off.

Is Freenet vulnerable to flooding attacks?
Short answer: no.

Long answer:

We don't think so. Aside from protecting freedom of speech, Freenet is also designed to be an efficient dynamic caching system. If information is requested a lot from a limited number of nodes, the nodes that the requests pass through will cache the information, lowering the load on the network. If information is inserted on a limited set of nodes and then subsequently requested a lot from a separate set of nodes, with repetition, the sets will close in on one another in the network topology until they are "neighbors" and only the originally targeted nodes are suffering from the attack.

In other words, in order to harm Freenet with a flood you need to consistently change your point of entry into the network and continually insert and request new data, and you will still only increase the workload for the network that is linear to your own. Given an immense will and capacity greater than the total of the entire network, it is possible to cripple any public network (including the Internet itself) with floods, but it is our intention to always keep Freenet as resistant to this as theoretically possible.

Why hash keys and encrypt data when a node operator could identify them (the data) anyway if he tried?
Hashing the key and encrypting the data is not meant a method to keep Freenet Node operators from being able to figure out what type of information is in their nodes if they really want to (after all, they can just find the key in the same way as someone who requests the information would) but rather to keep operators from having to know what information is in their nodes if they don't want to. This distinction is more a legal one than a technical one. It is not realistic to expect a node operator to try to continually collect and/ or guess possible keys and then check them against the information in his node (even if such an attack is viable from a security perspective), so a sane society is less likely to hold an operator liable for such information on the network.

What about hostile "cancer" nodes within the network?
The existence of malicious nodes within the network is the most difficult problem that a distributed network must face, and has been the bane of many previous ideas. Many systems (such as multiplayer gaming networks) try to avoid malicious nodes by keeping the protocol and code closed, but we have yet to see an example of that working in the long run. And anyway it is opposed to Freenet's philosophy.

Freenet is based on a balance of positive and negative feedback loops that bring requests for information to a node when it is functioning well, and keep requests away from it when it is not. The key to avoiding "cancers" is (as in the body) to make sure these loops can correctly identify even the most carefully designed malicious node and not keep sending requests to it. This issue is not fully dealt with by the current test code, but you can rest assured that a number of possible solutions (for example allowing clients to vote on the validity of the information returned on requests, and enforcing that all information be indexed by a hash of the contents at the lowest level) have been on the table and discussed for some time now.

What about attack Y?
Freenet is still in testing and there are bound to be attacks found that we have not dealt with yet. So if you do manage to figure out a truly new kind of attack, we are interested in hearing about it. Please keep in mind what Freenet is and what it is not, however. No single network can offer everybody everything, and there are security issues (like anonymity, discussed above) that Freenet, by it's nature, will never deal with to extent you might wish. If this upsets you, all of our code is freely available, so you are free to take as much of it as you like and write your own distributed network that suits your desires.