freedomboneeee/doc/EN/faq.org

280 lines
20 KiB
Org Mode
Raw Normal View History

2014-10-28 23:02:42 +01:00
#+TITLE:
#+AUTHOR: Bob Mottram
#+EMAIL: bob@robotics.uk.to
#+KEYWORDS: freedombox, debian, beaglebone, hubzilla, email, web server, home server, internet, censorship, surveillance, social network, irc, jabber
2016-02-01 12:02:34 +01:00
#+DESCRIPTION: Frequently asked questions
2015-07-05 20:58:40 +02:00
#+OPTIONS: ^:nil toc:nil
2016-01-07 15:51:37 +01:00
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="solarized-light.css" />
#+BEGIN_CENTER
[[file:images/logo.png]]
#+END_CENTER
2015-12-16 22:12:57 +01:00
#+BEGIN_HTML
<center>
2016-01-07 16:00:30 +01:00
<h1>Frequently Asked Questions</h1>
2015-12-16 22:12:57 +01:00
</center>
#+END_HTML
2014-10-28 23:02:42 +01:00
#+BEGIN_CENTER
#+ATTR_HTML: :border -1
2015-12-19 20:26:48 +01:00
| [[I don't have a static IP address. Can I still install this system?]] |
2016-01-31 21:26:16 +01:00
| [[Why not support building images for Raspberry Pi?]] |
2016-01-17 14:22:29 +01:00
| [[Why use Github?]] |
2016-02-01 12:02:34 +01:00
| [[./mirrors.html][I have a question about mirrors or upstream repositories]] |
2016-01-15 11:07:24 +01:00
| [[Why can't I access my .onion site with a Tor browser?]] |
2015-12-19 20:26:48 +01:00
| [[What is the best hardware to run this system on?]] |
| [[Can I add more users to the system?]] |
| [[How do I remove a user from the system?]] |
| [[How do I reset the tripwire?]] |
| [[Is metadata protected?]] |
| [[How do I create email processing rules?]] |
| [[Why isn't dynamic DNS working?]] |
| [[How do I change my encryption settings?]] |
| [[How do I get a domain name?]] |
| [[How do I get a "real" SSL/TLS/HTTPS certificate?]] |
| [[How do I renew a Let's Encrypt certificate?]] |
| [[I tried to renew a Let's Encrypt certificate and it failed. What should I do?]] |
| [[Why use self-signed certificates?]] |
| [[Why not use the services of $company instead? They took the Seppuku pledge]] |
| [[Why does my email keep getting rejected as spam by Gmail/etc?]] |
2014-10-28 23:02:42 +01:00
#+END_CENTER
2015-07-10 11:30:54 +02:00
* I don't have a static IP address. Can I still install this system?
Yes. The minimum requirements are to have some hardware that you can install Debian onto and also that you have administrator access to your internet router so that you can forward ports to the system which has Freedombone installed.
The lack of a static IP address can be worked around by using a dynamic DNS service. Freedombone uses [[http://troglobit.com/inadyn.html][inadyn]], which supports a variety of dynamic DNS providers.
2016-01-31 21:26:16 +01:00
* Why not support building images for Raspberry Pi?
The FreedomBox project supports Raspberry Pi builds, and the image build system for Freedombone is based on the same system. However, although the Raspberry Pi can run a version of Debian it requires a closed proprietary blob in order to boot the hardware. Who knows what that blob might contain or what exploits it could facilitate. From an adversarial point of view if you were trying to deliver "bulk equipment interference" then it doesn't get any better than piggybacking on something which has control of the boot process, and hence all subsequently run processes.
So although the Raspberry Pi is cheap and hugely popular it's not supported by the Freedombone project. Perhaps future versions of the Pi won't have the proprietary blob requirement, or maybe the blob will be open sourced at some stage.
2016-01-17 14:22:29 +01:00
* Why use Github?
Github is paradoxically a centralized, closed and proprietary system which happens to mostly host free and open source projects. Up until now it has been relatively benign, but at some point in the name of "growth" it will likely start becoming more evil, or just become like SourceForge - which was also once much loved by FOSS developers, but turned into a den of malvertizing.
At present Github is useful just because of the sheer number of eyeballs and the easy discoverability of projects via search.
The source code for this project is experimentally independently hosted, and it is expected that in future the main development will shift over to an independent site, maybe with mirrors on Github if it still exists in a viable form.
2016-02-01 12:33:36 +01:00
Currently many of the repositories used for applications which are not yet packaged for Debian are on Github, and to provide some degree of resilliance against depending too much upon that it's possible to use [[./mirrors.html][mirrors stored on another server]].
2016-01-15 11:07:24 +01:00
* Why can't I access my .onion site with a Tor browser?
2016-02-15 10:23:10 +01:00
Probably you need to add the site to the NoScript whitelist. Typically click/press on the noscript icon (or select from the menu on mobile) then select /whitelist/ and add the site URL. You may also need to disable HTTPS Everywhere when using onion addresses, which don't use https.
2015-07-10 11:30:54 +02:00
* What is the best hardware to run this system on?
It was originally designed to run on the Beaglebone Black, but that should be regarded as the most minimal system, because it's single core and has by today's standards a small amount of memory. Obviously the more powerful the hardware is the faster things like web pages (blog, social networking, etc) will be served but the more electricity such a system will require if you're running it 24/7. A good compromise between performance and energy consumption is something like an old netbook. The battery of an old netbook or laptop even gives you [[https://en.wikipedia.org/wiki/Uninterruptible_power_supply][UPS capability]] to keep the system going during brief power outages or cable re-arrangements, and that means using full disk encryption on the server also becomes more practical.
/Out of fashion/ but still working computer hardware tends to be cheap and readily available, yet still good for providing internet services.
2015-03-07 14:19:40 +01:00
* Can I add more users to the system?
2015-11-03 21:02:14 +01:00
Yes. Freedombone can support a small number of users, for a "/friends and family/" type of home installation. This gives them access to an email account, XMPP, SIP phone and the blog (depending on whether the variant which you installed includes those).
2015-10-27 14:10:58 +01:00
#+BEGIN_SRC bash
2015-11-03 21:02:14 +01:00
ssh username@mydomainname -p 2222
2015-12-03 15:12:28 +01:00
sudo control
2015-10-27 14:10:58 +01:00
#+END_SRC
2015-11-03 21:02:14 +01:00
Select /Manage Users/ and then /Add a user/. You will be prompted for a username and you can also optionally provide their ssh public key.
2015-10-27 14:10:58 +01:00
Something to consider when having more than a single user on the system is the security situation. The original administrator user will have access to all of the data for other users (including their encryption keys), so if you do add extra users they need to have *complete trust* in the administrator.
Another point is that Freedombone installations are not intended to support many users (maybe ten at most). Large numbers of users may make the system unstable, and the more users you have on one system the more it becomes a single point of failure and also perhaps a honeypot from the standpoint of adversaries. Think of what happened with Lavabit and the moral dilemma which an administrator can be faced with (comply with threats and betray the trust of your users or don't comply and suffer other consequences). Ideally, you never want to put yourself into a situation where you can be forced to betray others.
* How do I remove a user from the system?
2015-11-03 21:02:14 +01:00
To remove a user:
2015-10-27 14:10:58 +01:00
#+BEGIN_SRC bash
2015-11-03 21:02:14 +01:00
ssh username@mydomainname -p 2222
2015-12-03 15:12:28 +01:00
sudo control
2015-10-27 14:10:58 +01:00
#+END_SRC
2015-11-03 21:02:14 +01:00
Select /Manage Users/ and then /Delete a user/. Note that this will delete all of that user's files and email.
2015-03-10 22:06:24 +01:00
* How do I reset the tripwire?
2015-10-28 22:50:30 +01:00
The tripwire will be automatically reset once per week. If you want to reset it earlier then do the following:
2015-03-10 22:06:24 +01:00
#+BEGIN_SRC bash
ssh username@mydomain -p 2222
2015-12-03 15:12:28 +01:00
sudo control
2015-03-10 22:06:24 +01:00
#+END_SRC
2015-10-28 22:50:30 +01:00
Select "reset tripwire" using cursors and space bar then enter.
2014-10-28 23:02:42 +01:00
* Is metadata protected?
2016-02-19 19:14:21 +01:00
#+BEGIN_QUOTE
"/We kill people based on metadata/"
-- Michael Hayden
#+END_QUOTE
2016-01-03 00:44:54 +01:00
Even when using Freedombone metadata analysis by third parties is still possible. This can be mitigated by accessing your blog, or other web services, via their /onion addresses/, rather than via more conventional domain names. In that case your ISP and any government which they might be compelled to report back to will know when your system is being accessed, but not necessarily /which/ services are being accessed /or by whom/. So for instance using a Tor browser and the onion address people may be able to safely read your blog or wiki and be reasonably confident that metadata isn't being gathered about what they read (or more concisely the metadata which can be gathered by a third party may just not be very useful or personally identifiable). On the other hand if you access the system via conventional domain names and dynamic DNS then it's safe to assume that metadata can and will be collected by third parties.
2015-04-04 13:09:44 +02:00
* How do I create email processing rules?
2015-11-03 18:42:52 +01:00
#+BEGIN_SRC bash
ssh username@domainname -p 2222
2015-12-03 15:12:28 +01:00
sudo control
2015-11-03 18:42:52 +01:00
#+END_SRC
2015-11-03 21:02:14 +01:00
Select /Email Filtering Rules/ then you can add rules to be applied to incoming email addresses or mailing lists. If you prefer to do things directly on the command line, without the control panel, then the following commands are available:
2015-04-04 13:09:44 +02:00
| freedombone-addlist | Adds a mailing list |
| freedombone-rmlist | Removes a mailing list |
| freedombone-addemail | Transfers emails from an address to a given folder |
| freedombone-rmemail | Removes an email transferal rule |
| freedombone-ignore | Ignores email from an address or with a subject line containing text |
| freedombone-unignore | Removes an ignore rule |
Spamassassin is also available and within Mutt you can use the S (shift+s) key to mark an email as spam or the H (shift+h) key to mark an email as not being spam. So by using a combination of email rules and spam filtering you should be able to avoid any spammers or trolls.
2015-01-21 21:36:12 +01:00
* Why isn't dynamic DNS working?
If you run the command:
#+BEGIN_SRC bash
service inadyn status
#+END_SRC
And see some error related to checking for changes in the IP address then you can try other external IP services. Edit */etc/inadyn.conf* and change the domain for the *checkip-url* parameter. Possible sites are:
#+BEGIN_SRC bash
https://check.torproject.org/
https://www.whatsmydns.net/whats-my-ip-address.html
https://www.privateinternetaccess.com/pages/whats-my-ip/
http://checkip.two-dns.de
http://ip.dnsexit.com
http://ifconfig.me/ip
http://ipecho.net/plain
http://checkip.dyndns.org/plain
http://ipogre.com/linux.php
http://whatismyipaddress.com/
http://ip.my-proxy.com/
http://websiteipaddress.com/WhatIsMyIp
http://getmyipaddress.org/
http://www.my-ip-address.net/
http://myexternalip.com/raw
http://www.canyouseeme.org/
http://www.trackip.net/
http://icanhazip.com/
http://www.iplocation.net/
http://www.howtofindmyipaddress.com/
http://www.ipchicken.com/
http://whatsmyip.net/
http://www.ip-adress.com/
http://checkmyip.com/
http://www.tracemyip.org/
http://checkmyip.net/
http://www.lawrencegoetz.com/programs/ipinfo/
http://www.findmyip.co/
http://ip-lookup.net/
http://www.dslreports.com/whois
http://www.mon-ip.com/en/my-ip/
http://www.myip.ru
http://ipgoat.com/
http://www.myipnumber.com/my-ip-address.asp
http://www.whatsmyipaddress.net/
http://formyip.com/
http://www.displaymyip.com/
http://www.bobborst.com/tools/whatsmyip/
http://www.geoiptool.com/
http://checkip.dyndns.com/
http://myexternalip.com/
http://www.ip-adress.eu/
http://www.infosniper.net/
http://wtfismyip.com/
http://ipinfo.io/
http://httpbin.org/ip
#+END_SRC
2015-03-23 21:15:13 +01:00
* How do I change my encryption settings?
Suppose that some new encryption vulnerability has been announced and that you need to change your encryption settings. Maybe an algorithm thought to be secure is now no longer so and you need to remove it. You can change your settings by doing the following:
#+BEGIN_SRC bash
ssh myusername@mydomain -p 2222
2015-12-03 15:12:28 +01:00
sudo control
2015-03-23 21:15:13 +01:00
#+END_SRC
2015-11-03 18:42:52 +01:00
Then select /Security Settings/. You will then be able to edit the crypto settings for all of the installed applications. *Be very careful when editing*, since any mistake could make your system less secure rather than more.
2014-10-28 23:02:42 +01:00
* How do I get a domain name?
Suppose that you have bought a domain name (rather than using a free subdomain on freedns) and you want to use that instead.
Remove any existing nameservers for your domain (or select "custom" nameservers), then add:
#+BEGIN_SRC bash
NS1.AFRAID.ORG
NS2.AFRAID.ORG
NS3.AFRAID.ORG
NS4.AFRAID.ORG
#+END_SRC
It might take a few minutes for the above change to take effect. Within freedns click on "Domains" and add your domains (this might only be available to paid members). Make sure that they're marked as "private".
Select "Subdomains" from the menu on the left then select the MX entry for your domain and change the destination to *10:mydomainname* rather than *10:mail.mydomainname*.
To route email to one of your freedns domains:
#+BEGIN_SRC bash
editor /etc/mailname
#+END_SRC
Add any extra domains which you own, then save and exit.
#+BEGIN_SRC bash
editor /etc/exim4/update-exim4.conf.conf
#+END_SRC
Within dc_other_hostnames add your extra domain names, separated by a colon ':' character.
Save and exit, then restart exim.
#+BEGIN_SRC bash
update-exim4.conf.template -r
update-exim4.conf
service exim4 restart
#+END_SRC
You should now be able to send an email from /postmaster@mynewdomainname/ and it should arrive in your inbox.
2015-12-19 20:26:48 +01:00
* How do I get a "real" SSL/TLS/HTTPS certificate?
If you did the full install or selected the social variant then the system will have tried to obtain a Let's Encrypt certificate automatically during the install process. If this failed for any reason, or if you have created a new site which you need a certificate for then do the following:
2014-10-28 23:02:42 +01:00
#+BEGIN_SRC bash
2015-12-19 20:26:48 +01:00
ssh username@mydomainname -p 2222
sudo control
2014-10-28 23:02:42 +01:00
#+END_SRC
2015-12-19 20:42:03 +01:00
Select *Security settings* then *Create a new Let's Encrypt certificate*.
2015-03-07 22:54:50 +01:00
2015-12-19 20:26:48 +01:00
One thing to be aware of is that Let's Encrypt doesn't support many dynamic DNS subdomains, such as those from freeDNS, so to run Hubzilla and GNU Social you will need to have your own official domains for those. There are many sites from which you can buy cheap domain names, and while this isn't ideal in terms of making you dependent upon another company it's the only option currently.
* How do I renew a Let's Encrypt certificate?
Normally certificates will be automatically renewed once per month, so you don't need to be concerned about it. If anything goes wrong with the automatic renewal then you should receive a warning email.
2015-03-07 22:25:40 +01:00
2015-12-19 20:26:48 +01:00
If you need to manually renew a certificate:
2015-03-07 22:25:40 +01:00
#+BEGIN_SRC bash
ssh username@mydomainname -p 2222
2015-12-19 20:26:48 +01:00
sudo control
2015-03-07 22:25:40 +01:00
#+END_SRC
2015-12-19 20:26:48 +01:00
Select *Security settings* then *Renew Let's Encrypt certificate*.
* I tried to renew a Let's Encrypt certificate and it failed. What should I do?
Most likely it's because Let's Encrypt doesn't support your particular domain or subdomain. Currently free subdomains tend not to work. You'll need to buy a domain name, link it to your dynamic DNS account and then do:
2015-03-07 22:25:40 +01:00
#+BEGIN_SRC bash
2015-12-19 20:26:48 +01:00
ssh username@mydomainname -p 2222
sudo control
2015-03-07 22:25:40 +01:00
#+END_SRC
2015-12-19 20:42:03 +01:00
Select *Security settings* then *Create a new Let's Encrypt certificate*.
2015-12-19 20:26:48 +01:00
* Why use self-signed certificates?
Almost everywhere on the web you will read that self-signed certificates are worthless. They bring up /scary-scary looking/ browser warnings and gurus will advise you not to use them. Self-signed certificates are quite useful though. What the scary warnings mean - and it would be good if they explained this more clearly - is that you have an encrypted connection established but there is /no certainty about who that connection is with/.
2015-03-07 22:25:40 +01:00
2015-12-19 20:26:48 +01:00
The usual solution to this is to get a "real" SSL certificate from one of the certificate authorities, but it's far from clear that such authorities can actually be trusted. Yes, /Let's Encrypt/ is awesome and very convenient but it's really a small sticking plaster over a much bigger problem. If you don't believe me then do some independent research on the history of certificate authorities and the scandals associated with them, then consider how many of those within your browser (usually under advanced settings) are "trusted". Some of those "trusted" certs are for companies with /incredibly sketchy reputations/, or governments such as that of China. Consider whether you judge the Chinese government to always be truthful about which certificate belongs to which domain, and that it will never abuse such a capability for censorship or political/commercial advantage. Then you'll begin to get an idea of the ramshackle nature of what currently exists.
2015-03-07 22:25:40 +01:00
2015-12-19 20:26:48 +01:00
So although most internet users have been trained to look for the lock icon as an indication that the connection is secured that belief may not always be well founded.
2014-10-28 23:02:42 +01:00
2015-12-19 20:26:48 +01:00
Despite the hype, security of web sites on the internet is still a somewhat unsolved problem, and what we have now is a less than ideal but /good enough to fool most of the people most of the time/ kind of arrangement. Long term a better solution might be to have a number of certificate authorities in a number of different jurisdictions vote on whether a given certificate actually belongs to a given domain name. Experimental systems like this exist, but they're not widely used. Since the current certificate system has an enormous amount of inertia behind it change could be slow in arriving.
2014-10-28 23:02:42 +01:00
For now a self-signed certificate will probably in most cases protect your communications from "bulk" passive surveillance. Once you've got past the scary browser warning and accepted the certificate under most conditions (except when starting up the Tor browser) you should not repeatedly see that warning. If you do then someone may be trying to meddle with your connection to the server. You can also take a note of the fingerprint of the certificate and verify that if you are especially concerned. If the fingerprint remains the same then you're probably ok.
2014-11-09 19:25:45 +01:00
* Why not use the services of $company instead? They took the Seppuku pledge
[[http://seppuku.cryptostorm.org][That pledge]] is utterly worthless. Years ago people trusted Google in the same sort of way, because they promised not be be evil and because a lot of the engineers working for them seemed like honest types who were "/on our side/". Post-[[https://en.wikipedia.org/wiki/Nymwars][nymwars]] and post-[[https://en.wikipedia.org/wiki/PRISM_%28surveillance_program%29][PRISM]] we know exactly how much Google cared about the privacy and security of its users. But Google is only one particular example. In general don't trust pledges made by companies, even if the people running them seem really sincere.
2015-02-20 09:16:14 +01:00
* Why does my email keep getting rejected as spam by Gmail/etc?
Welcome to the world of email. Email is really the archetypal decentralized service, developed during the early days of the internet. In principle anyone can run an email server, and that's exactly what you're doing with Freedombone. Email is very useful, but it has a big problem, and that's that the protocols are totally insecure. That made it easy for spammers to do their thing, and in response highly elaborate spam filtering and blocking systems were developed. Chances are that your emails are being blocked in this way. Sometimes the blocking is so indisciminate that entire countries are excluded. What can you do about it? Unless you control the block list at the receiving end probably you can't do anything. There is zero accountability for such blocking, and you can't just contact someone and say "hey, I'm not a spammer". This system works well for the big internet companies because it effectively centralises email to a few well-known brand names and keeps any independent servers out.
2016-01-07 15:51:37 +01:00
So the situation with email presently is pretty bad, and there's a clear selection pressure against decentralization and towards only a few companies controlling all email services. Longer term the solution is to have more secure protocols which make spamming hard or expensive. Bitmessage is one such system. As an immediate practical workaround you could try buying a domain name and then linking it to your dynamic DNS account (freeDNS, etc) in the hope that the blocking is against dynamic DNS domain names, but there is no guarantee that will work and often blocking may be based upon IP address ranges about which there is little you can do.
2016-01-07 20:26:08 +01:00
#+BEGIN_HTML
<center>
Return to the <a href="index.html">home page</a>
</center>
#+END_HTML