ソースを参照

Merge branch 'stretch' of https://github.com/bashrc/freedombone

Bob Mottram 7 年 前
コミット
332ae3e37a
共有8 個のファイルを変更した1038 個の追加138 個の削除を含む
  1. 67
    0
      doc/EN/app_keyserver.org
  2. 4
    0
      doc/EN/apps.org
  3. バイナリ
      img/keyserver.jpg
  4. 468
    38
      src/freedombone-app-keyserver
  5. 6
    0
      src/freedombone-controlpanel
  6. 6
    0
      src/freedombone-upgrade
  7. 375
    0
      website/EN/app_keyserver.html
  8. 112
    100
      website/EN/apps.html

+ 67
- 0
doc/EN/app_keyserver.org ファイルの表示

@@ -0,0 +1,67 @@
1
+#+TITLE:
2
+#+AUTHOR: Bob Mottram
3
+#+EMAIL: bob@freedombone.net
4
+#+KEYWORDS: freedombone, keyserver
5
+#+DESCRIPTION: How to use KEYSERVER
6
+#+OPTIONS: ^:nil toc:nil
7
+#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="freedombone.css" />
8
+
9
+#+BEGIN_CENTER
10
+[[file:images/logo.png]]
11
+#+END_CENTER
12
+
13
+#+BEGIN_EXPORT html
14
+<center>
15
+<h1>OpenPGP Key Server</h1>
16
+</center>
17
+#+END_EXPORT
18
+
19
+The /web of trust/ is a nice idea, but how trustable is it? If you take a look at how many OpenPGP key servers are out there then there are a two or three main ones and not much else. Can you trust those servers? Who is maintaining them and how often? Is any censorship going on? How hard would it be for adversaries to get implants onto them? In terms of technology this infrastructure is quite old and it could have been neglected for a long time. Once vigilant maintainers might have turned lazy and gotten lax with server security, or been recruited over to the dark side.
20
+
21
+For these kinds of reasons you might prefer to run your own web of trust infrastructure. In simple terms it's a database of GPG public keys which provides a way for users to /find out how to communicate with others securely via email/. You can meet in person and exchange public keys via sneakernet on USB drives, but most users of GPG don't do that. Instead they just download the public key for a given email address from one of the key servers.
22
+
23
+#+BEGIN_CENTER
24
+[[file:images/keyserver.jpg]]
25
+#+END_CENTER
26
+
27
+* Installation
28
+
29
+ssh into the system with:
30
+
31
+#+BEGIN_SRC bash
32
+ssh myusername@mydomain.com -p 2222
33
+#+END_SRC
34
+
35
+Select *Add/Remove Apps* then *keyserver*. You will then be asked for a domain name and if you are using FreeDNS also the code for the domain which can be found under *Dynamic DNS* on the FreeDNS site (the random string from "/quick cron example/" which appears after /update.php?/ and before />>/). For more details on obtaining a domain and making it accessible via dynamic DNS see the [[./faq.html][FAQ]]. Typically the domain name you use will be a subdomain, such as /keys.mydomainname.net/. It will need to be a domain which you have bought somewhere and own and not one of the FreeDNS subdomains, otherwise you won't be able to get a SSL/TLS certificate for it.
36
+
37
+After the install has completed go to *Security settings* and select *Create a new Let's Encrypt certificate* and enter the domain name that you are using for the Key server. If the certificate is obtained successfully then you will see a congratulations message.
38
+
39
+* How to use it
40
+Interaction with the web user interface is pretty minimal and obvious, but most likely you will also want to be able to use your keyserver from the commandline. To do that use the *--keyserver* option. For example to search for a key on your server:
41
+
42
+#+begin_src bash
43
+gpg --keyserver [your keyserver domain] --search-keys [email address]
44
+#+end_src
45
+
46
+
47
+Or to send a key to it:
48
+
49
+#+begin_src bash
50
+gpg --keyserver [your keyserver domain] --send-keys [email address or key ID]
51
+#+end_src
52
+
53
+Or to get a key:
54
+
55
+#+begin_src bash
56
+gpg --keyserver [your keyserver domain] --recv-keys [email address or key ID]
57
+#+end_src
58
+* Sync with other keyservers
59
+Key servers avoid censorship or errors by gossiping between each other and cross referencing the data. You can define which other servers your key server will gossip with by going to the *Administrator control panel*, selecting *App Settings* then *keyserver* then *Sync with other keyserver*.
60
+
61
+It's a good idea not to try to sync with the popular OpenPGP key servers, because those have gigantic databases which may make your server unstable and certainly would make it hard to create backups within a tractable amount of time. This option is mainly intended to sync with other Freedombone systems or small home servers within a particular community.
62
+* Possible problems
63
+OpenPGP key servers are not very well defended from flooding attacks. This means that an adversary could just upload a billion keys to destabilize the server and fill it with nonsense to make it unusable. Since key servers are /fully open to the public/ there isn't anything to prevent that from happening.
64
+
65
+Within the Freedombone system there is a watchdog script which keeps track of the key server database size, and disables the key server if that gets too large. Apart from the usual firewall and web server traffic rate limits, this is a crude but probably practical way of defending against flooding.
66
+
67
+If a flood attack does happen then really the only way to recover is to restore from the last known good backup, which can be done from the *Administrator control panel*.

+ 4
- 0
doc/EN/apps.org ファイルの表示

@@ -79,6 +79,10 @@ Experimental WebRTC video conferencing system, similar to Google Hangouts. This
79 79
 A simple kanban system for managing projects or TODO lists.
80 80
 
81 81
 [[./app_kanboard.html][How to use it]]
82
+* Key Server
83
+An OpenPGP key server for storing and retrieving GPG public keys.
84
+
85
+[[./app_keyserver.html][How to use it]]
82 86
 * Koel
83 87
 Access your music collection from any internet connected device.
84 88
 

バイナリ
img/keyserver.jpg ファイルの表示


+ 468
- 38
src/freedombone-app-keyserver ファイルの表示

@@ -46,6 +46,62 @@ keyserver_variables=(ONION_ONLY
46 46
                      KEYSERVER_DOMAIN_NAME
47 47
                      KEYSERVER_CODE)
48 48
 
49
+function check_keyserver_directory_size {
50
+    dirsize=$(du /var/lib/sks/DB | awk -F ' ' '{print $1}')
51
+    # 500M
52
+    if [ $dirsize -gt 500000 ]; then
53
+        echo "1"
54
+        return
55
+    fi
56
+    echo "0"
57
+}
58
+
59
+function keyserver_watchdog {
60
+    ADMIN_USERNAME=$(cat $COMPLETION_FILE | grep "Admin user" | awk -F ':' '{print $2}')
61
+    ADMIN_EMAIL_ADDRESS=${ADMIN_USERNAME}@${HOSTNAME}
62
+    keyserver_size_warning=$"The SKS keyserver database is getting large. Check that you aren't being spammed"
63
+    keyserver_disabled_warning=$"The SKS keyserver has been disabled because it is getting too large. This is to prevent flooding attacks from crashing the server. You may need to restore the keyserver from backup."
64
+    keyserver_mail_subject_line=$"${PROJECT_NAME} keyserver warning"
65
+    keyserver_mail_subject_line_disabled=$"${PROJECT_NAME} keyserver disabled"
66
+    read_config_param KEYSERVER_DOMAIN_NAME
67
+    keyserver_watchdog_script=/etc/cron.hourly/keyserver-watchdog
68
+    echo '#!/bin/bash' > $keyserver_watchdog_script
69
+    echo "dirsize=\$(du /var/lib/sks/DB | awk -F ' ' '{print \$1}')" >> $keyserver_watchdog_script
70
+    echo 'if [ $dirsize -gt 450000 ]; then' >> $keyserver_watchdog_script
71
+
72
+    echo "  echo \"$keyserver_size_warning\" | mail -s \"$keyserver_mail_subject_line\" $ADMIN_EMAIL_ADDRESS" >> $keyserver_watchdog_script
73
+
74
+    echo '  if [ $dirsize -gt 500000 ]; then' >> $keyserver_watchdog_script
75
+    echo "    nginx_dissite $KEYSERVER_DOMAIN_NAME" >> $keyserver_watchdog_script
76
+    echo '    systemctl stop sks' >> $keyserver_watchdog_script
77
+    echo '    systemctl disable sks' >> $keyserver_watchdog_script
78
+    echo "    echo \"$keyserver_disabled_warning\" | mail -s \"$keyserver_mail_subject_line_disabled\" $ADMIN_EMAIL_ADDRESS" >> $keyserver_watchdog_script
79
+    echo '  fi' >> $keyserver_watchdog_script
80
+    echo 'fi' >> $keyserver_watchdog_script
81
+
82
+    chmod +x $keyserver_watchdog_script
83
+}
84
+
85
+
86
+function configure_firewall_for_keyserver {
87
+    if [[ $ONION_ONLY != "no" ]]; then
88
+        return
89
+    fi
90
+    firewall_add keyserver 11370 tcp
91
+    firewall_add keyserver 11371 tcp
92
+    firewall_add keyserver 11372 tcp
93
+    mark_completed $FUNCNAME
94
+}
95
+
96
+function keyserver_reset_database {
97
+    if [ -d /var/lib/sks/DB ]; then
98
+        rm -rf /var/lib/sks/DB
99
+    fi
100
+    sks build
101
+    chown -Rc debian-sks: /var/lib/sks
102
+    systemctl restart sks
103
+}
104
+
49 105
 function logging_on_keyserver {
50 106
     echo -n ''
51 107
 }
@@ -59,6 +115,8 @@ function reconfigure_keyserver {
59 115
 }
60 116
 
61 117
 function upgrade_keyserver {
118
+    keyserver_watchdog
119
+
62 120
     CURR_KEYSERVER_WEB_COMMIT=$(get_completion_param "keyserver web commit")
63 121
     if [[ "$CURR_KEYSERVER_WEB_COMMIT" == "$KEYSERVER_WEB_COMMIT" ]]; then
64 122
         return
@@ -96,24 +154,149 @@ function upgrade_keyserver {
96 154
 }
97 155
 
98 156
 function backup_local_keyserver {
99
-    echo -n ''
157
+    # remove any unused log files
158
+    cd /var/lib/sks/DB
159
+    db_archive -d
160
+
161
+    source_directory=/etc/sks
162
+    if [ -d $source_directory ]; then
163
+        systemctl stop sks
164
+        dest_directory=keyserverconfig
165
+        function_check backup_directory_to_usb
166
+        backup_directory_to_usb $source_directory $dest_directory
167
+        systemctl start sks
168
+    fi
169
+    if [[ "$(check_keyserver_directory_size)" != "0" ]]; then
170
+        echo $'WARNING: Keyserver database size is too large to backup'
171
+        return
172
+    fi
173
+    source_directory=/var/lib/sks/DB
174
+    if [ -d $source_directory ]; then
175
+        systemctl stop sks
176
+        dest_directory=keyserver
177
+        function_check backup_directory_to_usb
178
+        backup_directory_to_usb $source_directory $dest_directory
179
+        systemctl start sks
180
+    fi
100 181
 }
101 182
 
102 183
 function restore_local_keyserver {
103
-    echo -n ''
184
+    if [ ! -d /var/lib/sks/DB ]; then
185
+        return
186
+    fi
187
+    echo $"Restoring SKS Keyserver"
188
+    systemctl stop sks
189
+
190
+    temp_restore_dir=/root/tempkeyserverconfig
191
+    function_check restore_directory_from_usb
192
+    restore_directory_from_usb $temp_restore_dir keyserverconfig
193
+    cp -r $temp_restore_dir/etc/sks/* /etc/sks/
194
+    rm -rf $temp_restore_dir
195
+    chown -Rc debian-sks: /etc/sks/sksconf
196
+    chown -Rc debian-sks: /etc/sks/mailsync
197
+
198
+    temp_restore_dir=/root/tempkeyserver
199
+    function_check restore_directory_from_usb
200
+    restore_directory_from_usb $temp_restore_dir keyserver
201
+    mv /var/lib/sks/DB /var/lib/sks/DB_prev
202
+    cp -r $temp_restore_dir/var/lib/sks/DB /var/lib/sks/DB
203
+    if [ ! "$?" = "0" ]; then
204
+        # restore the old database
205
+        rm -rf /var/lib/sks/DB
206
+        mv /var/lib/sks/DB_prev /var/lib/sks/DB
207
+
208
+        rm -rf $temp_restore_dir
209
+        function_check set_user_permissions
210
+        set_user_permissions
211
+        function_check backup_unmount_drive
212
+        backup_unmount_drive
213
+        exit 5627294
214
+    fi
215
+    rm -rf $temp_restore_dir
216
+    chown -Rc debian-sks: /var/lib/sks
217
+
218
+    # remove the old database
219
+    rm -rf /var/lib/sks/DB_prev
220
+
221
+    systemctl enable sks
222
+    systemctl start sks
223
+    nginx_ensite $KEYSERVER_DOMAIN_NAME
104 224
 }
105 225
 
106 226
 function backup_remote_keyserver {
107
-    echo -n ''
227
+    # remove any unused log files
228
+    cd /var/lib/sks/DB
229
+    db_archive -d
230
+
231
+    source_directory=/etc/sks
232
+    if [ -d $source_directory ]; then
233
+        systemctl stop sks
234
+        dest_directory=keyserverconfig
235
+        function_check backup_directory_to_friend
236
+        backup_directory_to_friend $source_directory $dest_directory
237
+        systemctl start sks
238
+    fi
239
+    if [[ "$(check_keyserver_directory_size)" != "0" ]]; then
240
+        echo $'WARNING: Keyserver database size is too large to backup'
241
+        return
242
+    fi
243
+    source_directory=/var/lib/sks/DB
244
+    if [ -d $source_directory ]; then
245
+        systemctl stop sks
246
+        dest_directory=keyserver
247
+        function_check backup_directory_to_friend
248
+        backup_directory_to_friend $source_directory $dest_directory
249
+        systemctl start sks
250
+    fi
108 251
 }
109 252
 
110 253
 function restore_remote_keyserver {
111
-    echo -n ''
254
+    if [ ! -d /var/lib/sks/DB ]; then
255
+        return
256
+    fi
257
+    echo $"Restoring SKS Keyserver"
258
+    systemctl stop sks
259
+
260
+    temp_restore_dir=/root/tempkeyserverconfig
261
+    function_check restore_directory_from_friend
262
+    restore_directory_from_friend $temp_restore_dir keyserverconfig
263
+    cp -r $temp_restore_dir/etc/sks/* /etc/sks/
264
+    rm -rf $temp_restore_dir
265
+    chown -Rc debian-sks: /etc/sks/sksconf
266
+    chown -Rc debian-sks: /etc/sks/mailsync
267
+
268
+    temp_restore_dir=/root/tempkeyserver
269
+    function_check restore_directory_from_friend
270
+    restore_directory_from_friend $temp_restore_dir keyserver
271
+    mv /var/lib/sks/DB /var/lib/sks/DB_prev
272
+    cp -r $temp_restore_dir/var/lib/sks/DB /var/lib/sks/DB
273
+    if [ ! "$?" = "0" ]; then
274
+        # restore the old database
275
+        rm -rf /var/lib/sks/DB
276
+        mv /var/lib/sks/DB_prev /var/lib/sks/DB
277
+
278
+        rm -rf $temp_restore_dir
279
+        function_check set_user_permissions
280
+        set_user_permissions
281
+        return
282
+    fi
283
+    rm -rf $temp_restore_dir
284
+    chown -Rc debian-sks: /var/lib/sks
285
+
286
+    # remove the old database
287
+    rm -rf /var/lib/sks/DB_prev
288
+
289
+    systemctl enable sks
290
+    systemctl start sks
291
+    nginx_ensite $KEYSERVER_DOMAIN_NAME
112 292
 }
113 293
 
114 294
 function remove_keyserver {
115 295
     systemctl stop sks
116
-    apt-get -qy remove sks
296
+    if [ -f /etc/cron.hourly/keyserver-watchdog ]; then
297
+        rm /etc/cron.hourly/keyserver-watchdog
298
+    fi
299
+    apt-get -qy remove sks dirmngr
117 300
 
118 301
     read_config_param "KEYSERVER_DOMAIN_NAME"
119 302
     nginx_dissite $KEYSERVER_DOMAIN_NAME
@@ -131,9 +314,15 @@ function remove_keyserver {
131 314
     remove_config_param KEYSERVER_CODE
132 315
     function_check remove_onion_service
133 316
     remove_onion_service keyserver ${KEYSERVER_ONION_PORT}
317
+    remove_onion_service sks 11370 11371 11372
134 318
     remove_completion_param "install_keyserver"
135 319
 
320
+    firewall_remove 11370 tcp
321
+    firewall_remove 11371 tcp
322
+    firewall_remove 11372 tcp
323
+
136 324
     sed -i '/keyserver/d' $COMPLETION_FILE
325
+    sed -i '/sks onion/d' $COMPLETION_FILE
137 326
     if [ -d /var/lib/sks ]; then
138 327
         rm -rf /var/lib/sks
139 328
     fi
@@ -154,7 +343,29 @@ function install_interactive_keyserver {
154 343
     APP_INSTALLED=1
155 344
 }
156 345
 
346
+function keyserver_create_mailsync {
347
+    echo $"# List of email addresses which submitted keys will be forwarded to" > /etc/sks/mailsync
348
+    echo '' >> /etc/sks/mailsync
349
+    chown -Rc debian-sks: /etc/sks/mailsync
350
+}
351
+
352
+function keyserver_create_membership {
353
+    if [ -f /etc/sks/membership ]; then
354
+        return
355
+    fi
356
+    systemctl stop sks
357
+    echo $"# List of other $PROJECT_NAME SKS Keyservers to sync with." > /etc/sks/membership
358
+    echo '#' >> /etc/sks/membership
359
+    echo $"# Don't add major keyservers here, because it will take an" >> /etc/sks/membership
360
+    echo $'# Infeasible amount of time to sync and backups will become' >> /etc/sks/membership
361
+    echo $'# absurdly long and probably break your system. You have been warned.' >> /etc/sks/membership
362
+    echo '' >> /etc/sks/membership
363
+    chown -Rc debian-sks: /etc/sks/membership
364
+    systemctl start sks
365
+}
366
+
157 367
 function keyserver_import_keys {
368
+    # NOTE: this function isn't used, but kept for reference
158 369
     dialog --title $"Import public keys database" \
159 370
            --backtitle $"Freedombone Control Panel" \
160 371
            --defaultno \
@@ -176,7 +387,109 @@ function keyserver_import_keys {
176 387
 
177 388
     cd /var/lib/sks
178 389
     echo $'Building the keyserver database from the downloaded dump'
179
-    sks build
390
+    keyserver_reset_database
391
+}
392
+
393
+function keyserver_sync {
394
+    data=$(tempfile 2>/dev/null)
395
+    trap "rm -f $data" 0 1 2 5 15
396
+    dialog --backtitle $"Freedombone Control Panel" \
397
+           --title $"Sync with other keyserver" \
398
+           --form $"\nEnter details for the other server. Please be aware that it's not a good idea to sync with major keyservers which have exceptionally large databases. This is intended to sync with other $PROJECT_NAME systems each having a small database for a particular community." 16 60 3 \
399
+           $"Domain:" 1 1 "" 1 25 32 64 \
400
+           $"Port:" 2 1 "11370" 2 25 6 6 \
401
+           $"Sync Email (optional):" 3 1 "pgp-public-keys@" 3 25 32 64 \
402
+           2> $data
403
+    sel=$?
404
+    case $sel in
405
+        1) return;;
406
+        255) return;;
407
+    esac
408
+    other_keyserver_domain=$(cat $data | sed -n 1p)
409
+    other_keyserver_port=$(cat $data | sed -n 2p)
410
+    other_keyserver_email=$(cat $data | sed -n 3p)
411
+    if [[ "$other_keyserver_domain" != *'.'* ]]; then
412
+        return
413
+    fi
414
+    if [[ "$other_keyserver_domain" == *' '* ]]; then
415
+        return
416
+    fi
417
+    if [[ "$other_keyserver_port" == *'.'* ]]; then
418
+        return
419
+    fi
420
+    if [[ "$other_keyserver_port" == *' '* ]]; then
421
+        return
422
+    fi
423
+    if [ ${#other_keyserver_domain} -lt 4 ]; then
424
+        return
425
+    fi
426
+    if [ ${#other_keyserver_port} -lt 4 ]; then
427
+        return
428
+    fi
429
+
430
+    # Warn if trying to sync
431
+    if [[ "$other_keyserver_domain" == *"sks-keyservers.net" || "$other_keyserver_domain" == *"gnupg.net" || "$other_keyserver_domain" == *"pgp.com" || "$other_keyserver_domain" == *"pgp.mit.edu" || "$other_keyserver_domain" == *"the.earth.li" || "$other_keyserver_domain" == *"mayfirst.org" || "$other_keyserver_domain" == *"ubuntu.com" ]]; then
432
+        dialog --title $"Sync with other keyserver" \
433
+               --msgbox $"\nDon't try to sync with the major keyservers. Your system will be overloaded with an infeasible database size." 8 60
434
+        return
435
+    fi
436
+
437
+    if [[ "$other_keyserver_email" != "pgp-public-keys@" ]]; then
438
+        if [[ "$other_keyserver_email" == *"@"* ]]; then
439
+            if [[ "$other_keyserver_email" == *"."* ]]; then
440
+                keyserver_create_mailsync
441
+                if ! grep -q "$other_keyserver_email" /etc/sks/mailsync; then
442
+                    echo "$other_keyserver_email" >> /etc/sks/mailsync
443
+                    chown -Rc debian-sks: /etc/sks/mailsync
444
+                fi
445
+            else
446
+                dialog --title $"Sync with other keyserver" \
447
+                       --msgbox $"Email doesn't look right: $other_keyserver_email" 6 60
448
+                return
449
+            fi
450
+        fi
451
+    fi
452
+    keyserver_create_membership
453
+    if grep -q "$other_keyserver_domain $other_keyserver_port" /etc/sks/membership; then
454
+        return
455
+    fi
456
+    if grep -q "$other_keyserver_domain " /etc/sks/membership; then
457
+        sed -i "s|$other_keyserver_domain .*|$other_keyserver_domain $other_keyserver_port|g" /etc/sks/membership
458
+    else
459
+        echo "$other_keyserver_domain $other_keyserver_port" >> /etc/sks/membership
460
+    fi
461
+    chown -Rc debian-sks: /etc/sks/membership
462
+    systemctl restart sks
463
+    dialog --title $"Sync with other keyserver" \
464
+           --msgbox $"Keyserver added" 6 40
465
+}
466
+
467
+function keyserver_edit {
468
+    if [ ! -f /etc/sks/membership ]; then
469
+        return
470
+    fi
471
+    editor /etc/sks/membership
472
+    chown -Rc debian-sks: /etc/sks/membership
473
+    systemctl restart sks
474
+}
475
+
476
+function keyserver_remove_key {
477
+    data=$(tempfile 2>/dev/null)
478
+    trap "rm -f $data" 0 1 2 5 15
479
+    dialog --title $"Remove a key" \
480
+           --backtitle $"Freedombone Control Panel" \
481
+           --inputbox $"Enter the ID of the key which you wish to remove:" 12 60 2>$data
482
+    sel=$?
483
+    case $sel in
484
+        0)
485
+            remove_key_id=$(<$data)
486
+            if [ ${#remove_key_id} -gt 8 ]; then
487
+                sks drop $remove_key_id
488
+                dialog --title $"Remove a key" \
489
+                       --msgbox $"The key was removed" 6 40
490
+            fi
491
+            ;;
492
+    esac
180 493
 }
181 494
 
182 495
 function configure_interactive_keyserver {
@@ -186,26 +499,30 @@ function configure_interactive_keyserver {
186 499
         trap "rm -f $data" 0 1 2 5 15
187 500
         dialog --backtitle $"Freedombone Control Panel" \
188 501
                --title $"SKS Keyserver" \
189
-               --radiolist $"Choose an operation:" 10 70 2 \
190
-               1 $"Import public keys database" off \
191
-               2 $"Exit" on 2> $data
502
+               --radiolist $"Choose an operation:" 12 70 4 \
503
+               1 $"Remove a key" off \
504
+               2 $"Sync with other keyserver" off \
505
+               3 $"Edit sync keyservers" off \
506
+               4 $"Exit" on 2> $data
192 507
         sel=$?
193 508
         case $sel in
194 509
             1) return;;
195 510
             255) return;;
196 511
         esac
197 512
         case $(cat $data) in
198
-            1) keyserver_import_keys;;
199
-            2) break;;
513
+            1) keyserver_remove_key;;
514
+            2) keyserver_sync;;
515
+            3) keyserver_edit;;
516
+            4) break;;
200 517
         esac
201 518
     done
202 519
 }
203 520
 
204 521
 function install_keyserver {
205 522
     apt-get -qy install build-essential gcc ocaml libdb-dev wget sks
206
-    sks build
207
-    chown -Rc debian-sks: /var/lib/sks/DB
523
+    keyserver_reset_database
208 524
     sed -i 's|initstart=.*|initstart=yes|g' /etc/default/sks
525
+    apt-get -qy install dirmngr
209 526
     systemctl restart sks
210 527
 
211 528
     if [ ! -d /var/www/$KEYSERVER_DOMAIN_NAME ]; then
@@ -254,36 +571,125 @@ function install_keyserver {
254 571
     sed -i "s|###ENTERNAMEHERE###|$USER_EMAIL_ADDRESS|g" /var/www/$KEYSERVER_DOMAIN_NAME/htdocs/404.html
255 572
     sed -i "s|###ENTERNAMEHERE###|$USER_EMAIL_ADDRESS|g" /var/www/$KEYSERVER_DOMAIN_NAME/htdocs/index.html
256 573
 
257
-    sksconf_file=/var/lib/sks/sksconf
258
-    echo 'debuglevel: 3' > $sksconf_file
259
-    echo '' >> $sksconf_file
260
-    echo "hostname:                       $KEYSERVER_DOMAIN_NAME" >> $sksconf_file
261
-    echo '' >> $sksconf_file
262
-    echo 'hkp_address:                    127.0.0.1' >> $sksconf_file
263
-    echo "hkp_port:                       $KEYSERVER_PORT" >> $sksconf_file
264
-    echo 'recon_port:                     11370' >> $sksconf_file
265
-    echo '' >> $sksconf_file
266
-    echo "server_contact:                 $GPG_ID" >> $sksconf_file
267
-    echo '' >> $sksconf_file
268
-    echo 'initial_stat:' >> $sksconf_file
269
-    echo 'disable_mailsync:' >> $sksconf_file
270
-    echo 'membership_reload_interval:     1' >> $sksconf_file
271
-    echo 'stat_hour:                      12' >> $sksconf_file
272
-    echo '' >> $sksconf_file
273
-    echo 'max_matches:                    500' >> $sksconf_file
574
+    sksconf_file=/etc/sks/sksconf
575
+    sed -i "s|#hostname:.*|hostname: $KEYSERVER_DOMAIN_NAME|g" $sksconf_file
576
+    sed -i "s|hostname:.*|hostname: $KEYSERVER_DOMAIN_NAME|g" $sksconf_file
577
+    sed -i "s|#hkp_port:.*|hkp_port: 11373|g" $sksconf_file
578
+    sed -i "s|hkp_port:.*|hkp_port: 11373|g" $sksconf_file
579
+    sed -i "s|#recon_port:.*|recon_port: 11370|g" $sksconf_file
580
+    sed -i "s|recon_port:.*|recon_port: 11370|g" $sksconf_file
581
+    sed -i "s|#recon_address:.*|recon_address: 0.0.0.0|g" $sksconf_file
582
+    sed -i "s|recon_address:.*|recon_address: 0.0.0.0|g" $sksconf_file
583
+    sed -i 's|#hkp_address:.*|hkp_address: 127.0.0.1|g' $sksconf_file
584
+    sed -i 's|hkp_address:.*|hkp_address: 127.0.0.1|g' $sksconf_file
585
+    sed -i "s|#from_addr:.*|from_addr: \"pgp-public-keys@$DEFAULT_DOMAIN_NAME\"|g" $sksconf_file
586
+    sed -i "s|from_addr:.*|from_addr: \"pgp-public-keys@$DEFAULT_DOMAIN_NAME\"|g" $sksconf_file
587
+    sed -i 's|#sendmail_cmd:|sendmail_cmd:|g' $sksconf_file
588
+
589
+    if ! grep -q "#disable_mailsync" $sksconf_file; then
590
+        echo '#disable_mailsync:' >> $sksconf_file
591
+    else
592
+        sed -i 's|disable_mailsync:|#disable_mailsync:|g' $sksconf_file
593
+    fi
594
+    if ! grep -q "membership_reload_interval:" $sksconf_file; then
595
+        echo 'membership_reload_interval:     1' >> $sksconf_file
596
+    else
597
+        sed -i 's|#membership_reload_interval:.*|membership_reload_interval:     1|g' $sksconf_file
598
+        sed -i 's|membership_reload_interval:.*|membership_reload_interval:     1|g' $sksconf_file
599
+    fi
600
+    if ! grep -q "max_matches:" $sksconf_file; then
601
+        echo 'max_matches: 50' >> $sksconf_file
602
+    else
603
+        sed -i 's|#max_matches:.*|max_matches: 50|g' $sksconf_file
604
+        sed -i 's|max_matches:.*|max_matches: 50|g' $sksconf_file
605
+    fi
606
+    if ! grep -q "stat_hour:" $sksconf_file; then
607
+        echo "stat_hour: $((1 + RANDOM % 8))" >> $sksconf_file
608
+    else
609
+        sed -i "s|#stat_hour:.*|stat_hour: $((1 + RANDOM % 8))|g" $sksconf_file
610
+        sed -i "s|stat_hour:.*|stat_hour: $((1 + RANDOM % 8))|g" $sksconf_file
611
+    fi
612
+    if ! grep -q "disable_log_diffs:" $sksconf_file; then
613
+        echo "disable_log_diffs:" >> $sksconf_file
614
+    else
615
+        sed -i "s|#disable_log_diffs:.*|disable_log_diffs:|g" $sksconf_file
616
+        sed -i "s|disable_log_diffs:.*|disable_log_diffs:|g" $sksconf_file
617
+    fi
618
+    if ! grep -q "debuglevel:" $sksconf_file; then
619
+        echo "debuglevel: 0" >> $sksconf_file
620
+    else
621
+        sed -i "s|#debuglevel:.*|debuglevel: 0|g" $sksconf_file
622
+        sed -i "s|debuglevel:.*|debuglevel: 0|g" $sksconf_file
623
+    fi
624
+
274 625
     chown debian-sks: $sksconf_file
275 626
 
627
+    if ! grep -q "hidden_service_sks" /etc/tor/torrc; then
628
+        echo 'HiddenServiceDir /var/lib/tor/hidden_service_sks/' >> /etc/tor/torrc
629
+        echo "HiddenServicePort 11370 127.0.0.1:11370" >> /etc/tor/torrc
630
+        echo "HiddenServicePort 11373 127.0.0.1:11371" >> /etc/tor/torrc
631
+        echo "HiddenServicePort 11372 127.0.0.1:11372" >> /etc/tor/torrc
632
+        echo $'Added onion site for sks'
633
+    fi
634
+
635
+    onion_update
636
+    wait_for_onion_service 'sks'
637
+
638
+    if [ ! -f /var/lib/tor/hidden_service_sks/hostname ]; then
639
+        echo $'sks onion site hostname not found'
640
+        exit 8352982
641
+    fi
642
+    SKS_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_sks/hostname)
643
+
276 644
     KEYSERVER_ONION_HOSTNAME=$(add_onion_service keyserver 80 ${KEYSERVER_ONION_PORT})
277 645
 
278 646
     keyserver_nginx_site=/etc/nginx/sites-available/$KEYSERVER_DOMAIN_NAME
279 647
     if [[ $ONION_ONLY == "no" ]]; then
280
-        function_check nginx_http_redirect
281
-        nginx_http_redirect $KEYSERVER_DOMAIN_NAME
648
+        # NOTE: without http active on port 80 the keyserver doesn't work
649
+        #       from the commandline
650
+        echo 'server {' > $keyserver_nginx_site
651
+        echo '  listen 80;' >> $keyserver_nginx_site
652
+        echo '  listen 0.0.0.0:11371;' >> $keyserver_nginx_site
653
+        echo '  listen [::]:80;' >> $keyserver_nginx_site
654
+        echo "  server_name $KEYSERVER_DOMAIN_NAME;" >> $keyserver_nginx_site
655
+        echo '' >> $keyserver_nginx_site
656
+        echo '  # Logs' >> $keyserver_nginx_site
657
+        echo '  access_log /dev/null;' >> $keyserver_nginx_site
658
+        echo '  error_log /dev/null;' >> $keyserver_nginx_site
659
+        echo '' >> $keyserver_nginx_site
660
+        echo '  # Root' >> $keyserver_nginx_site
661
+        echo "  root /var/www/$KEYSERVER_DOMAIN_NAME/htdocs;" >> $keyserver_nginx_site
662
+        echo '' >> $keyserver_nginx_site
663
+        echo '  rewrite ^/stats /pks/lookup?op=stats;' >> $keyserver_nginx_site
664
+        echo '  rewrite ^/s/(.*) /pks/lookup?search=$1;' >> $keyserver_nginx_site
665
+        echo '  rewrite ^/search/(.*) /pks/lookup?search=$1;' >> $keyserver_nginx_site
666
+        echo '  rewrite ^/g/(.*) /pks/lookup?op=get&search=$1;' >> $keyserver_nginx_site
667
+        echo '  rewrite ^/get/(.*) /pks/lookup?op=get&search=$1;' >> $keyserver_nginx_site
668
+        echo '  rewrite ^/d/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
669
+        echo '  rewrite ^/download/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
670
+        echo '' >> $keyserver_nginx_site
671
+        echo '  location /pks {' >> $keyserver_nginx_site
672
+        echo '    proxy_pass         http://127.0.0.1:11373;' >> $keyserver_nginx_site
673
+        echo '    proxy_pass_header  Server;' >> $keyserver_nginx_site
674
+        echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:11371 (nginx)\";" >> $keyserver_nginx_site
675
+        echo '    proxy_ignore_client_abort on;' >> $keyserver_nginx_site
676
+        echo '    client_max_body_size 8m;' >> $keyserver_nginx_site
677
+        echo '  }' >> $keyserver_nginx_site
678
+        echo '}' >> $keyserver_nginx_site
679
+        echo '' >> $keyserver_nginx_site
282 680
         echo 'server {' >> $keyserver_nginx_site
283 681
         echo '  listen 443 ssl;' >> $keyserver_nginx_site
682
+        echo '  listen 0.0.0.0:11372 ssl;' >> $keyserver_nginx_site
284 683
         echo '  listen [::]:443 ssl;' >> $keyserver_nginx_site
285 684
         echo "  server_name $KEYSERVER_DOMAIN_NAME;" >> $keyserver_nginx_site
286 685
         echo '' >> $keyserver_nginx_site
686
+        echo '  error_page 404 /404.html;' >> $keyserver_nginx_site
687
+        echo '' >> $keyserver_nginx_site
688
+        echo '  location ~ (.git|LICENSE|readme.md) {' >> $keyserver_nginx_site
689
+        echo '    deny all;' >> $keyserver_nginx_site
690
+        echo '    return 404;' >> $keyserver_nginx_site
691
+        echo '  }' >> $keyserver_nginx_site
692
+        echo '' >> $keyserver_nginx_site
287 693
         echo '  # Security' >> $keyserver_nginx_site
288 694
         function_check nginx_ssl
289 695
         nginx_ssl $KEYSERVER_DOMAIN_NAME
@@ -310,9 +716,9 @@ function install_keyserver {
310 716
         echo '  rewrite ^/download/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
311 717
         echo '' >> $keyserver_nginx_site
312 718
         echo '  location /pks {' >> $keyserver_nginx_site
313
-        echo "    proxy_pass         http://127.0.0.1:$KEYSERVER_PORT;" >> $keyserver_nginx_site
719
+        echo "    proxy_pass         http://127.0.0.1:11373;" >> $keyserver_nginx_site
314 720
         echo '    proxy_pass_header  Server;' >> $keyserver_nginx_site
315
-        echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:$KEYSERVER_PORT (nginx)\";" >> $keyserver_nginx_site
721
+        echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:11372 (nginx)\";" >> $keyserver_nginx_site
316 722
         echo '    proxy_ignore_client_abort on;' >> $keyserver_nginx_site
317 723
         echo '    client_max_body_size 8m;' >> $keyserver_nginx_site
318 724
         echo '  }' >> $keyserver_nginx_site
@@ -322,8 +728,15 @@ function install_keyserver {
322 728
         echo -n '' > $keyserver_nginx_site
323 729
     fi
324 730
     echo 'server {' >> $keyserver_nginx_site
325
-    echo "    listen 127.0.0.1:$KEYSERVER_ONION_PORT default_server;" >> $keyserver_nginx_site
326
-    echo "    server_name $KEYSERVER_ONION_HOSTNAME;" >> $keyserver_nginx_site
731
+    echo "  listen 127.0.0.1:$KEYSERVER_ONION_PORT default_server;" >> $keyserver_nginx_site
732
+    echo "  server_name $KEYSERVER_ONION_HOSTNAME;" >> $keyserver_nginx_site
733
+    echo '' >> $keyserver_nginx_site
734
+    echo '  error_page 404 /404.html;' >> $keyserver_nginx_site
735
+    echo '' >> $keyserver_nginx_site
736
+    echo '  location ~ (.git|LICENSE|readme.md) {' >> $keyserver_nginx_site
737
+    echo '    deny all;' >> $keyserver_nginx_site
738
+    echo '    return 404;' >> $keyserver_nginx_site
739
+    echo '  }' >> $keyserver_nginx_site
327 740
     echo '' >> $keyserver_nginx_site
328 741
     function_check nginx_disable_sniffing
329 742
     nginx_disable_sniffing $KEYSERVER_DOMAIN_NAME
@@ -344,9 +757,9 @@ function install_keyserver {
344 757
     echo '  rewrite ^/download/(.*) /pks/lookup?op=get&options=mr&search=$1;' >> $keyserver_nginx_site
345 758
     echo '' >> $keyserver_nginx_site
346 759
     echo '  location /pks {' >> $keyserver_nginx_site
347
-    echo "    proxy_pass         http://127.0.0.1:$KEYSERVER_PORT;" >> $keyserver_nginx_site
760
+    echo "    proxy_pass         http://127.0.0.1:11373;" >> $keyserver_nginx_site
348 761
     echo '    proxy_pass_header  Server;' >> $keyserver_nginx_site
349
-    echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:$KEYSERVER_PORT (nginx)\";" >> $keyserver_nginx_site
762
+    echo "    add_header         Via \"1.1 $KEYSERVER_DOMAIN_NAME:$KEYSERVER_ONION_PORT (nginx)\";" >> $keyserver_nginx_site
350 763
     echo '    proxy_ignore_client_abort on;' >> $keyserver_nginx_site
351 764
     echo '    client_max_body_size 8m;' >> $keyserver_nginx_site
352 765
     echo '  }' >> $keyserver_nginx_site
@@ -373,10 +786,27 @@ function install_keyserver {
373 786
     function_check nginx_ensite
374 787
     nginx_ensite $KEYSERVER_DOMAIN_NAME
375 788
 
789
+    configure_firewall_for_keyserver
790
+
791
+    # remove membership file - don't try to sync with other keyservers
792
+    if [ -f /etc/sks/membership ]; then
793
+        rm /etc/sks/membership
794
+    fi
795
+
796
+    if ! grep -q "pgp-public-keys" /etc/aliases; then
797
+        echo 'pgp-public-keys:      "|/usr/lib/sks/sks_add_mail /etc/sks"' >> /etc/aliases
798
+    fi
799
+    chown -Rc debian-sks: /etc/sks/mailsync
800
+
801
+    systemctl enable sks
802
+    systemctl restart sks
376 803
     systemctl restart nginx
377 804
 
378 805
     set_completion_param "keyserver domain" "$KEYSERVER_DOMAIN_NAME"
379 806
     set_completion_param "keyserver onion domain" "$KEYSERVER_ONION_HOSTNAME"
807
+    set_completion_param "sks onion domain" "$SKS_ONION_HOSTNAME"
808
+
809
+    keyserver_watchdog
380 810
 
381 811
     APP_INSTALLED=1
382 812
 }

+ 6
- 0
src/freedombone-controlpanel ファイルの表示

@@ -351,6 +351,12 @@ function show_domains {
351 351
         echo -n -e "$(pad_string ${DEFAULT_DOMAIN_NAME})"
352 352
         echo "$(cat ${COMPLETION_FILE} | grep 'email onion domain' | awk -F ':' '{print $2}')"
353 353
     fi
354
+    if grep -q "sks onion domain" $COMPLETION_FILE; then
355
+        read_config_param "KEYSERVER_DOMAIN_NAME"
356
+        echo -n -e "$(pad_string 'SKS')"
357
+        echo -n -e "$(pad_string ${KEYSERVER_DOMAIN_NAME})"
358
+        echo "$(cat ${COMPLETION_FILE} | grep 'sks onion domain' | awk -F ':' '{print $2}')"
359
+    fi
354 360
 
355 361
     for app_name in "${APPS_INSTALLED_NAMES[@]}"
356 362
     do

+ 6
- 0
src/freedombone-upgrade ファイルの表示

@@ -67,6 +67,12 @@ fi
67 67
 
68 68
 update-ca-certificates
69 69
 
70
+# remove any keyserver log files
71
+if [ -d /var/lib/sks/DB ]; then
72
+    cd /var/lib/sks/DB
73
+    db_archive -d
74
+fi
75
+
70 76
 if [ ! -d $PROJECT_DIR ]; then
71 77
     git_clone $PROJECT_REPO $PROJECT_DIR
72 78
 fi

+ 375
- 0
website/EN/app_keyserver.html ファイルの表示

@@ -0,0 +1,375 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
+<head>
6
+<!-- 2017-07-30 Sun 18:18 -->
7
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
+<meta name="viewport" content="width=device-width, initial-scale=1" />
9
+<title></title>
10
+<meta name="generator" content="Org mode" />
11
+<meta name="author" content="Bob Mottram" />
12
+<meta name="description" content="How to use KEYSERVER"
13
+ />
14
+<meta name="keywords" content="freedombone, keyserver" />
15
+<style type="text/css">
16
+ <!--/*--><![CDATA[/*><!--*/
17
+  .title  { text-align: center;
18
+             margin-bottom: .2em; }
19
+  .subtitle { text-align: center;
20
+              font-size: medium;
21
+              font-weight: bold;
22
+              margin-top:0; }
23
+  .todo   { font-family: monospace; color: red; }
24
+  .done   { font-family: monospace; color: green; }
25
+  .priority { font-family: monospace; color: orange; }
26
+  .tag    { background-color: #eee; font-family: monospace;
27
+            padding: 2px; font-size: 80%; font-weight: normal; }
28
+  .timestamp { color: #bebebe; }
29
+  .timestamp-kwd { color: #5f9ea0; }
30
+  .org-right  { margin-left: auto; margin-right: 0px;  text-align: right; }
31
+  .org-left   { margin-left: 0px;  margin-right: auto; text-align: left; }
32
+  .org-center { margin-left: auto; margin-right: auto; text-align: center; }
33
+  .underline { text-decoration: underline; }
34
+  #postamble p, #preamble p { font-size: 90%; margin: .2em; }
35
+  p.verse { margin-left: 3%; }
36
+  pre {
37
+    border: 1px solid #ccc;
38
+    box-shadow: 3px 3px 3px #eee;
39
+    padding: 8pt;
40
+    font-family: monospace;
41
+    overflow: auto;
42
+    margin: 1.2em;
43
+  }
44
+  pre.src {
45
+    position: relative;
46
+    overflow: visible;
47
+    padding-top: 1.2em;
48
+  }
49
+  pre.src:before {
50
+    display: none;
51
+    position: absolute;
52
+    background-color: white;
53
+    top: -10px;
54
+    right: 10px;
55
+    padding: 3px;
56
+    border: 1px solid black;
57
+  }
58
+  pre.src:hover:before { display: inline;}
59
+  /* Languages per Org manual */
60
+  pre.src-asymptote:before { content: 'Asymptote'; }
61
+  pre.src-awk:before { content: 'Awk'; }
62
+  pre.src-C:before { content: 'C'; }
63
+  /* pre.src-C++ doesn't work in CSS */
64
+  pre.src-clojure:before { content: 'Clojure'; }
65
+  pre.src-css:before { content: 'CSS'; }
66
+  pre.src-D:before { content: 'D'; }
67
+  pre.src-ditaa:before { content: 'ditaa'; }
68
+  pre.src-dot:before { content: 'Graphviz'; }
69
+  pre.src-calc:before { content: 'Emacs Calc'; }
70
+  pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
71
+  pre.src-fortran:before { content: 'Fortran'; }
72
+  pre.src-gnuplot:before { content: 'gnuplot'; }
73
+  pre.src-haskell:before { content: 'Haskell'; }
74
+  pre.src-hledger:before { content: 'hledger'; }
75
+  pre.src-java:before { content: 'Java'; }
76
+  pre.src-js:before { content: 'Javascript'; }
77
+  pre.src-latex:before { content: 'LaTeX'; }
78
+  pre.src-ledger:before { content: 'Ledger'; }
79
+  pre.src-lisp:before { content: 'Lisp'; }
80
+  pre.src-lilypond:before { content: 'Lilypond'; }
81
+  pre.src-lua:before { content: 'Lua'; }
82
+  pre.src-matlab:before { content: 'MATLAB'; }
83
+  pre.src-mscgen:before { content: 'Mscgen'; }
84
+  pre.src-ocaml:before { content: 'Objective Caml'; }
85
+  pre.src-octave:before { content: 'Octave'; }
86
+  pre.src-org:before { content: 'Org mode'; }
87
+  pre.src-oz:before { content: 'OZ'; }
88
+  pre.src-plantuml:before { content: 'Plantuml'; }
89
+  pre.src-processing:before { content: 'Processing.js'; }
90
+  pre.src-python:before { content: 'Python'; }
91
+  pre.src-R:before { content: 'R'; }
92
+  pre.src-ruby:before { content: 'Ruby'; }
93
+  pre.src-sass:before { content: 'Sass'; }
94
+  pre.src-scheme:before { content: 'Scheme'; }
95
+  pre.src-screen:before { content: 'Gnu Screen'; }
96
+  pre.src-sed:before { content: 'Sed'; }
97
+  pre.src-sh:before { content: 'shell'; }
98
+  pre.src-sql:before { content: 'SQL'; }
99
+  pre.src-sqlite:before { content: 'SQLite'; }
100
+  /* additional languages in org.el's org-babel-load-languages alist */
101
+  pre.src-forth:before { content: 'Forth'; }
102
+  pre.src-io:before { content: 'IO'; }
103
+  pre.src-J:before { content: 'J'; }
104
+  pre.src-makefile:before { content: 'Makefile'; }
105
+  pre.src-maxima:before { content: 'Maxima'; }
106
+  pre.src-perl:before { content: 'Perl'; }
107
+  pre.src-picolisp:before { content: 'Pico Lisp'; }
108
+  pre.src-scala:before { content: 'Scala'; }
109
+  pre.src-shell:before { content: 'Shell Script'; }
110
+  pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
111
+  /* additional language identifiers per "defun org-babel-execute"
112
+       in ob-*.el */
113
+  pre.src-cpp:before  { content: 'C++'; }
114
+  pre.src-abc:before  { content: 'ABC'; }
115
+  pre.src-coq:before  { content: 'Coq'; }
116
+  pre.src-groovy:before  { content: 'Groovy'; }
117
+  /* additional language identifiers from org-babel-shell-names in
118
+     ob-shell.el: ob-shell is the only babel language using a lambda to put
119
+     the execution function name together. */
120
+  pre.src-bash:before  { content: 'bash'; }
121
+  pre.src-csh:before  { content: 'csh'; }
122
+  pre.src-ash:before  { content: 'ash'; }
123
+  pre.src-dash:before  { content: 'dash'; }
124
+  pre.src-ksh:before  { content: 'ksh'; }
125
+  pre.src-mksh:before  { content: 'mksh'; }
126
+  pre.src-posh:before  { content: 'posh'; }
127
+  /* Additional Emacs modes also supported by the LaTeX listings package */
128
+  pre.src-ada:before { content: 'Ada'; }
129
+  pre.src-asm:before { content: 'Assembler'; }
130
+  pre.src-caml:before { content: 'Caml'; }
131
+  pre.src-delphi:before { content: 'Delphi'; }
132
+  pre.src-html:before { content: 'HTML'; }
133
+  pre.src-idl:before { content: 'IDL'; }
134
+  pre.src-mercury:before { content: 'Mercury'; }
135
+  pre.src-metapost:before { content: 'MetaPost'; }
136
+  pre.src-modula-2:before { content: 'Modula-2'; }
137
+  pre.src-pascal:before { content: 'Pascal'; }
138
+  pre.src-ps:before { content: 'PostScript'; }
139
+  pre.src-prolog:before { content: 'Prolog'; }
140
+  pre.src-simula:before { content: 'Simula'; }
141
+  pre.src-tcl:before { content: 'tcl'; }
142
+  pre.src-tex:before { content: 'TeX'; }
143
+  pre.src-plain-tex:before { content: 'Plain TeX'; }
144
+  pre.src-verilog:before { content: 'Verilog'; }
145
+  pre.src-vhdl:before { content: 'VHDL'; }
146
+  pre.src-xml:before { content: 'XML'; }
147
+  pre.src-nxml:before { content: 'XML'; }
148
+  /* add a generic configuration mode; LaTeX export needs an additional
149
+     (add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
150
+  pre.src-conf:before { content: 'Configuration File'; }
151
+
152
+  table { border-collapse:collapse; }
153
+  caption.t-above { caption-side: top; }
154
+  caption.t-bottom { caption-side: bottom; }
155
+  td, th { vertical-align:top;  }
156
+  th.org-right  { text-align: center;  }
157
+  th.org-left   { text-align: center;   }
158
+  th.org-center { text-align: center; }
159
+  td.org-right  { text-align: right;  }
160
+  td.org-left   { text-align: left;   }
161
+  td.org-center { text-align: center; }
162
+  dt { font-weight: bold; }
163
+  .footpara { display: inline; }
164
+  .footdef  { margin-bottom: 1em; }
165
+  .figure { padding: 1em; }
166
+  .figure p { text-align: center; }
167
+  .inlinetask {
168
+    padding: 10px;
169
+    border: 2px solid gray;
170
+    margin: 10px;
171
+    background: #ffffcc;
172
+  }
173
+  #org-div-home-and-up
174
+   { text-align: right; font-size: 70%; white-space: nowrap; }
175
+  textarea { overflow-x: auto; }
176
+  .linenr { font-size: smaller }
177
+  .code-highlighted { background-color: #ffff00; }
178
+  .org-info-js_info-navigation { border-style: none; }
179
+  #org-info-js_console-label
180
+    { font-size: 10px; font-weight: bold; white-space: nowrap; }
181
+  .org-info-js_search-highlight
182
+    { background-color: #ffff00; color: #000000; font-weight: bold; }
183
+  .org-svg { width: 90%; }
184
+  /*]]>*/-->
185
+</style>
186
+<link rel="stylesheet" type="text/css" href="freedombone.css" />
187
+<script type="text/javascript">
188
+/*
189
+@licstart  The following is the entire license notice for the
190
+JavaScript code in this tag.
191
+
192
+Copyright (C) 2012-2017 Free Software Foundation, Inc.
193
+
194
+The JavaScript code in this tag is free software: you can
195
+redistribute it and/or modify it under the terms of the GNU
196
+General Public License (GNU GPL) as published by the Free Software
197
+Foundation, either version 3 of the License, or (at your option)
198
+any later version.  The code is distributed WITHOUT ANY WARRANTY;
199
+without even the implied warranty of MERCHANTABILITY or FITNESS
200
+FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.
201
+
202
+As additional permission under GNU GPL version 3 section 7, you
203
+may distribute non-source (e.g., minimized or compacted) forms of
204
+that code without the copy of the GNU GPL normally required by
205
+section 4, provided you include this license notice and a URL
206
+through which recipients can access the Corresponding Source.
207
+
208
+
209
+@licend  The above is the entire license notice
210
+for the JavaScript code in this tag.
211
+*/
212
+<!--/*--><![CDATA[/*><!--*/
213
+ function CodeHighlightOn(elem, id)
214
+ {
215
+   var target = document.getElementById(id);
216
+   if(null != target) {
217
+     elem.cacheClassElem = elem.className;
218
+     elem.cacheClassTarget = target.className;
219
+     target.className = "code-highlighted";
220
+     elem.className   = "code-highlighted";
221
+   }
222
+ }
223
+ function CodeHighlightOff(elem, id)
224
+ {
225
+   var target = document.getElementById(id);
226
+   if(elem.cacheClassElem)
227
+     elem.className = elem.cacheClassElem;
228
+   if(elem.cacheClassTarget)
229
+     target.className = elem.cacheClassTarget;
230
+ }
231
+/*]]>*///-->
232
+</script>
233
+</head>
234
+<body>
235
+<div id="preamble" class="status">
236
+<a name="top" id="top"></a>
237
+</div>
238
+<div id="content">
239
+<div class="org-center">
240
+
241
+<div class="figure">
242
+<p><img src="images/logo.png" alt="logo.png" />
243
+</p>
244
+</div>
245
+</div>
246
+
247
+<center>
248
+<h1>OpenPGP Key Server</h1>
249
+</center>
250
+
251
+<p>
252
+The <i>web of trust</i> is a nice idea, but how trustable is it? If you take a look at how many OpenPGP key servers are out there then there are a two or three main ones and not much else. Can you trust those servers? Who is maintaining them and how often? Is any censorship going on? How hard would it be for adversaries to get implants onto them? In terms of technology this infrastructure is quite old and it could have been neglected for a long time. Once vigilant maintainers might have turned lazy and gotten lax with server security, or been recruited over to the dark side.
253
+</p>
254
+
255
+<p>
256
+For these kinds of reasons you might prefer to run your own web of trust infrastructure. In simple terms it's a database of GPG public keys which provides a way for users to <i>find out how to communicate with others securely via email</i>. You can meet in person and exchange public keys via sneakernet on USB drives, but most users of GPG don't do that. Instead they just download the public key for a given email address from one of the key servers.
257
+</p>
258
+
259
+<div class="org-center">
260
+
261
+<div class="figure">
262
+<p><img src="images/keyserver.jpg" alt="keyserver.jpg" />
263
+</p>
264
+</div>
265
+</div>
266
+
267
+<div id="outline-container-orgfcf6c32" class="outline-2">
268
+<h2 id="orgfcf6c32">Installation</h2>
269
+<div class="outline-text-2" id="text-orgfcf6c32">
270
+<p>
271
+ssh into the system with:
272
+</p>
273
+
274
+<div class="org-src-container">
275
+<pre><code class="src src-bash">ssh myusername@mydomain.com -p 2222
276
+</code></pre>
277
+</div>
278
+
279
+<p>
280
+Select <b>Add/Remove Apps</b> then <b>keyserver</b>. You will then be asked for a domain name and if you are using FreeDNS also the code for the domain which can be found under <b>Dynamic DNS</b> on the FreeDNS site (the random string from "<i>quick cron example</i>" which appears after <i>update.php?</i> and before <i>&gt;&gt;</i>). For more details on obtaining a domain and making it accessible via dynamic DNS see the <a href="./faq.html">FAQ</a>. Typically the domain name you use will be a subdomain, such as <i>keys.mydomainname.net</i>. It will need to be a domain which you have bought somewhere and own and not one of the FreeDNS subdomains, otherwise you won't be able to get a SSL/TLS certificate for it.
281
+</p>
282
+
283
+<p>
284
+After the install has completed go to <b>Security settings</b> and select <b>Create a new Let's Encrypt certificate</b> and enter the domain name that you are using for the Key server. If the certificate is obtained successfully then you will see a congratulations message.
285
+</p>
286
+</div>
287
+</div>
288
+
289
+<div id="outline-container-org8e2baf7" class="outline-2">
290
+<h2 id="org8e2baf7">How to use it</h2>
291
+<div class="outline-text-2" id="text-org8e2baf7">
292
+<p>
293
+Interaction with the web user interface is pretty minimal and obvious, but most likely you will also want to be able to use your keyserver from the commandline. To do that use the <b>&#x2013;keyserver</b> option. For example to search for a key on your server:
294
+</p>
295
+
296
+<div class="org-src-container">
297
+<pre><code class="src src-bash">gpg --keyserver [your keyserver domain] --search-keys [email address]
298
+</code></pre>
299
+</div>
300
+
301
+
302
+<p>
303
+Or to send a key to it:
304
+</p>
305
+
306
+<div class="org-src-container">
307
+<pre><code class="src src-bash">gpg --keyserver [your keyserver domain] --send-keys [email address or key ID]
308
+</code></pre>
309
+</div>
310
+
311
+<p>
312
+Or to get a key:
313
+</p>
314
+
315
+<div class="org-src-container">
316
+<pre><code class="src src-bash">gpg --keyserver [your keyserver domain] --recv-keys [email address or key ID]
317
+</code></pre>
318
+</div>
319
+</div>
320
+</div>
321
+<div id="outline-container-orgf7e93ae" class="outline-2">
322
+<h2 id="orgf7e93ae">Sync with other keyservers</h2>
323
+<div class="outline-text-2" id="text-orgf7e93ae">
324
+<p>
325
+Key servers avoid censorship or errors by gossiping between each other and cross referencing the data. You can define which other servers your key server will gossip with by going to the <b>Administrator control panel</b>, selecting <b>App Settings</b> then <b>keyserver</b> then <b>Sync with other keyserver</b>.
326
+</p>
327
+
328
+<p>
329
+It's a good idea not to try to sync with the popular OpenPGP key servers, because those have gigantic databases which may make your server unstable and certainly would make it hard to create backups within a tractable amount of time. This option is mainly intended to sync with other Freedombone systems or small home servers within a particular community.
330
+</p>
331
+</div>
332
+</div>
333
+<div id="outline-container-org7be3c82" class="outline-2">
334
+<h2 id="org7be3c82">Possible problems</h2>
335
+<div class="outline-text-2" id="text-org7be3c82">
336
+<p>
337
+OpenPGP key servers are not very well defended from flooding attacks. This means that an adversary could just upload a billion keys to destabilize the server and fill it with nonsense to make it unusable. Since key servers are <i>fully open to the public</i> there isn't anything to prevent that from happening.
338
+</p>
339
+
340
+<p>
341
+Within the Freedombone system there is a watchdog script which keeps track of the key server database size, and disables the key server if that gets too large. Apart from the usual firewall and web server traffic rate limits, this is a crude but probably practical way of defending against flooding.
342
+</p>
343
+
344
+<p>
345
+If a flood attack does happen then really the only way to recover is to restore from the last known good backup, which can be done from the <b>Administrator control panel</b>.
346
+</p>
347
+</div>
348
+</div>
349
+</div>
350
+<div id="postamble" class="status">
351
+
352
+<style type="text/css">
353
+.back-to-top {
354
+    position: fixed;
355
+    bottom: 2em;
356
+    right: 0px;
357
+    text-decoration: none;
358
+    color: #000000;
359
+    background-color: rgba(235, 235, 235, 0.80);
360
+    font-size: 12px;
361
+    padding: 1em;
362
+    display: none;
363
+}
364
+
365
+.back-to-top:hover {
366
+    background-color: rgba(135, 135, 135, 0.50);
367
+}
368
+</style>
369
+
370
+<div class="back-to-top">
371
+<a href="#top">Back to top</a> | <a href="mailto:bob@freedombone.net">E-mail me</a>
372
+</div>
373
+</div>
374
+</body>
375
+</html>

+ 112
- 100
website/EN/apps.html ファイルの表示

@@ -3,7 +3,7 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2017-07-25 Tue 23:25 -->
6
+<!-- 2017-07-28 Fri 22:42 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 9
 <title></title>
@@ -264,9 +264,9 @@ The base install of the system just contains an email server and Mutt client, bu
264 264
 </div>
265 265
 </div>
266 266
 
267
-<div id="outline-container-org9a19246" class="outline-2">
268
-<h2 id="org9a19246">CryptPad</h2>
269
-<div class="outline-text-2" id="text-org9a19246">
267
+<div id="outline-container-orgbe17d63" class="outline-2">
268
+<h2 id="orgbe17d63">CryptPad</h2>
269
+<div class="outline-text-2" id="text-orgbe17d63">
270 270
 <p>
271 271
 Collaborate on editing documents, presentations and source code, or vote on things. All with a good level of security.
272 272
 </p>
@@ -276,9 +276,9 @@ Collaborate on editing documents, presentations and source code, or vote on thin
276 276
 </p>
277 277
 </div>
278 278
 </div>
279
-<div id="outline-container-orgaf887a3" class="outline-2">
280
-<h2 id="orgaf887a3">DLNA</h2>
281
-<div class="outline-text-2" id="text-orgaf887a3">
279
+<div id="outline-container-orgeb85cd1" class="outline-2">
280
+<h2 id="orgeb85cd1">DLNA</h2>
281
+<div class="outline-text-2" id="text-orgeb85cd1">
282 282
 <p>
283 283
 Enables you to use the system as a music server which any DLNA compatible devices can connect to within your home network.
284 284
 </p>
@@ -288,9 +288,9 @@ Enables you to use the system as a music server which any DLNA compatible device
288 288
 </p>
289 289
 </div>
290 290
 </div>
291
-<div id="outline-container-org24b3d95" class="outline-2">
292
-<h2 id="org24b3d95">Dokuwiki</h2>
293
-<div class="outline-text-2" id="text-org24b3d95">
291
+<div id="outline-container-orge7dce56" class="outline-2">
292
+<h2 id="orge7dce56">Dokuwiki</h2>
293
+<div class="outline-text-2" id="text-orge7dce56">
294 294
 <p>
295 295
 A databaseless wiki system.
296 296
 </p>
@@ -300,9 +300,9 @@ A databaseless wiki system.
300 300
 </p>
301 301
 </div>
302 302
 </div>
303
-<div id="outline-container-orga7568ea" class="outline-2">
304
-<h2 id="orga7568ea">Emacs</h2>
305
-<div class="outline-text-2" id="text-orga7568ea">
303
+<div id="outline-container-org16980fe" class="outline-2">
304
+<h2 id="org16980fe">Emacs</h2>
305
+<div class="outline-text-2" id="text-org16980fe">
306 306
 <p>
307 307
 If you use the Mutt client to read your email then this will set it up to use emacs for composing new mail.
308 308
 </p>
@@ -312,9 +312,9 @@ If you use the Mutt client to read your email then this will set it up to use em
312 312
 </p>
313 313
 </div>
314 314
 </div>
315
-<div id="outline-container-org3d4300f" class="outline-2">
316
-<h2 id="org3d4300f">Etherpad</h2>
317
-<div class="outline-text-2" id="text-org3d4300f">
315
+<div id="outline-container-orge6eede4" class="outline-2">
316
+<h2 id="orge6eede4">Etherpad</h2>
317
+<div class="outline-text-2" id="text-orge6eede4">
318 318
 <p>
319 319
 Collaborate on creating documents in real time. Maybe you're planning a holiday with other family members or creating documentation for a Free Software project along with other volunteers. Etherpad is hard to beat for simplicity and speed. Only users of the system will be able to access it.
320 320
 </p>
@@ -324,9 +324,9 @@ Collaborate on creating documents in real time. Maybe you're planning a holiday
324 324
 </p>
325 325
 </div>
326 326
 </div>
327
-<div id="outline-container-org91f769f" class="outline-2">
328
-<h2 id="org91f769f">Friendica</h2>
329
-<div class="outline-text-2" id="text-org91f769f">
327
+<div id="outline-container-org72aea62" class="outline-2">
328
+<h2 id="org72aea62">Friendica</h2>
329
+<div class="outline-text-2" id="text-org72aea62">
330 330
 <p>
331 331
 Federated social network system.
332 332
 </p>
@@ -336,9 +336,9 @@ Federated social network system.
336 336
 </p>
337 337
 </div>
338 338
 </div>
339
-<div id="outline-container-org6266e6b" class="outline-2">
340
-<h2 id="org6266e6b">Ghost</h2>
341
-<div class="outline-text-2" id="text-org6266e6b">
339
+<div id="outline-container-org75bbd1d" class="outline-2">
340
+<h2 id="org75bbd1d">Ghost</h2>
341
+<div class="outline-text-2" id="text-org75bbd1d">
342 342
 <p>
343 343
 Modern looking blogging system.
344 344
 </p>
@@ -348,9 +348,9 @@ Modern looking blogging system.
348 348
 </p>
349 349
 </div>
350 350
 </div>
351
-<div id="outline-container-orge7307c0" class="outline-2">
352
-<h2 id="orge7307c0">GNU Social</h2>
353
-<div class="outline-text-2" id="text-orge7307c0">
351
+<div id="outline-container-org879241a" class="outline-2">
352
+<h2 id="org879241a">GNU Social</h2>
353
+<div class="outline-text-2" id="text-org879241a">
354 354
 <p>
355 355
 Federated social network. You can "<i>remote follow</i>" other users within the GNU Social federation.
356 356
 </p>
@@ -360,9 +360,9 @@ Federated social network. You can "<i>remote follow</i>" other users within the
360 360
 </p>
361 361
 </div>
362 362
 </div>
363
-<div id="outline-container-org42d8a6c" class="outline-2">
364
-<h2 id="org42d8a6c">Gogs</h2>
365
-<div class="outline-text-2" id="text-org42d8a6c">
363
+<div id="outline-container-org0c63c0d" class="outline-2">
364
+<h2 id="org0c63c0d">Gogs</h2>
365
+<div class="outline-text-2" id="text-org0c63c0d">
366 366
 <p>
367 367
 Lightweight git project hosting system. You can mirror projects from Github, or if Github turns evil then just host your own projects while retaining the familiar <i>fork-and-pull</i> workflow. If you can use Github then you can also use Gogs.
368 368
 </p>
@@ -372,9 +372,9 @@ Lightweight git project hosting system. You can mirror projects from Github, or
372 372
 </p>
373 373
 </div>
374 374
 </div>
375
-<div id="outline-container-org21d5b80" class="outline-2">
376
-<h2 id="org21d5b80">HTMLy</h2>
377
-<div class="outline-text-2" id="text-org21d5b80">
375
+<div id="outline-container-org8d5a195" class="outline-2">
376
+<h2 id="org8d5a195">HTMLy</h2>
377
+<div class="outline-text-2" id="text-org8d5a195">
378 378
 <p>
379 379
 Databaseless blogging system. Quite simple and with a markdown-like format.
380 380
 </p>
@@ -384,9 +384,9 @@ Databaseless blogging system. Quite simple and with a markdown-like format.
384 384
 </p>
385 385
 </div>
386 386
 </div>
387
-<div id="outline-container-org47d8fc7" class="outline-2">
388
-<h2 id="org47d8fc7">Hubzilla</h2>
389
-<div class="outline-text-2" id="text-org47d8fc7">
387
+<div id="outline-container-orgbc0a684" class="outline-2">
388
+<h2 id="orgbc0a684">Hubzilla</h2>
389
+<div class="outline-text-2" id="text-orgbc0a684">
390 390
 <p>
391 391
 Web publishing platform with social network like features and good privacy controls so that it's possible to specify who can see which content. Includes photo albums, calendar, wiki and file storage.
392 392
 </p>
@@ -396,9 +396,9 @@ Web publishing platform with social network like features and good privacy contr
396 396
 </p>
397 397
 </div>
398 398
 </div>
399
-<div id="outline-container-org71113c6" class="outline-2">
400
-<h2 id="org71113c6">IRC Server (ngirc)</h2>
401
-<div class="outline-text-2" id="text-org71113c6">
399
+<div id="outline-container-org4f18360" class="outline-2">
400
+<h2 id="org4f18360">IRC Server (ngirc)</h2>
401
+<div class="outline-text-2" id="text-org4f18360">
402 402
 <p>
403 403
 Run your own IRC chat channel which can be secured with a password and accessible via an onion address. A bouncer is included so that you can receive messages sent while you were offline. Works with Hexchat and other popular clients.
404 404
 </p>
@@ -408,18 +408,18 @@ Run your own IRC chat channel which can be secured with a password and accessibl
408 408
 </p>
409 409
 </div>
410 410
 </div>
411
-<div id="outline-container-org9f28087" class="outline-2">
412
-<h2 id="org9f28087">Jitsi Meet</h2>
413
-<div class="outline-text-2" id="text-org9f28087">
411
+<div id="outline-container-orgc105f39" class="outline-2">
412
+<h2 id="orgc105f39">Jitsi Meet</h2>
413
+<div class="outline-text-2" id="text-orgc105f39">
414 414
 <p>
415 415
 Experimental WebRTC video conferencing system, similar to Google Hangouts. This may not be fully functional, but is hoped to be in the near future.
416 416
 </p>
417 417
 </div>
418 418
 </div>
419 419
 
420
-<div id="outline-container-orgbad5922" class="outline-2">
421
-<h2 id="orgbad5922">KanBoard</h2>
422
-<div class="outline-text-2" id="text-orgbad5922">
420
+<div id="outline-container-org10fbc88" class="outline-2">
421
+<h2 id="org10fbc88">KanBoard</h2>
422
+<div class="outline-text-2" id="text-org10fbc88">
423 423
 <p>
424 424
 A simple kanban system for managing projects or TODO lists.
425 425
 </p>
@@ -429,9 +429,21 @@ A simple kanban system for managing projects or TODO lists.
429 429
 </p>
430 430
 </div>
431 431
 </div>
432
-<div id="outline-container-org6529912" class="outline-2">
433
-<h2 id="org6529912">Koel</h2>
434
-<div class="outline-text-2" id="text-org6529912">
432
+<div id="outline-container-orgb3097e7" class="outline-2">
433
+<h2 id="orgb3097e7">Key Server</h2>
434
+<div class="outline-text-2" id="text-orgb3097e7">
435
+<p>
436
+An OpenPGP key server for storing and retrieving GPG public keys.
437
+</p>
438
+
439
+<p>
440
+<a href="./app_keyserver.html">How to use it</a>
441
+</p>
442
+</div>
443
+</div>
444
+<div id="outline-container-orga3542ee" class="outline-2">
445
+<h2 id="orga3542ee">Koel</h2>
446
+<div class="outline-text-2" id="text-orga3542ee">
435 447
 <p>
436 448
 Access your music collection from any internet connected device.
437 449
 </p>
@@ -441,9 +453,9 @@ Access your music collection from any internet connected device.
441 453
 </p>
442 454
 </div>
443 455
 </div>
444
-<div id="outline-container-orgc0eae1a" class="outline-2">
445
-<h2 id="orgc0eae1a">Lychee</h2>
446
-<div class="outline-text-2" id="text-orgc0eae1a">
456
+<div id="outline-container-orga662c8f" class="outline-2">
457
+<h2 id="orga662c8f">Lychee</h2>
458
+<div class="outline-text-2" id="text-orga662c8f">
447 459
 <p>
448 460
 Make your photo albums available on the web.
449 461
 </p>
@@ -453,9 +465,9 @@ Make your photo albums available on the web.
453 465
 </p>
454 466
 </div>
455 467
 </div>
456
-<div id="outline-container-orga4bfc9d" class="outline-2">
457
-<h2 id="orga4bfc9d">Mailpile</h2>
458
-<div class="outline-text-2" id="text-orga4bfc9d">
468
+<div id="outline-container-orgccf23ee" class="outline-2">
469
+<h2 id="orgccf23ee">Mailpile</h2>
470
+<div class="outline-text-2" id="text-orgccf23ee">
459 471
 <p>
460 472
 Modern email client which supports GPG encryption.
461 473
 </p>
@@ -465,9 +477,9 @@ Modern email client which supports GPG encryption.
465 477
 </p>
466 478
 </div>
467 479
 </div>
468
-<div id="outline-container-org672b48e" class="outline-2">
469
-<h2 id="org672b48e">Matrix</h2>
470
-<div class="outline-text-2" id="text-org672b48e">
480
+<div id="outline-container-orgdee374a" class="outline-2">
481
+<h2 id="orgdee374a">Matrix</h2>
482
+<div class="outline-text-2" id="text-orgdee374a">
471 483
 <p>
472 484
 Multi-user chat with some security and moderation controls.
473 485
 </p>
@@ -477,9 +489,9 @@ Multi-user chat with some security and moderation controls.
477 489
 </p>
478 490
 </div>
479 491
 </div>
480
-<div id="outline-container-orgce218ca" class="outline-2">
481
-<h2 id="orgce218ca">Mediagoblin</h2>
482
-<div class="outline-text-2" id="text-orgce218ca">
492
+<div id="outline-container-org7faaca0" class="outline-2">
493
+<h2 id="org7faaca0">Mediagoblin</h2>
494
+<div class="outline-text-2" id="text-org7faaca0">
483 495
 <p>
484 496
 Publicly host video and audio files so that you don't need to use YouTube/Vimeo/etc.
485 497
 </p>
@@ -489,9 +501,9 @@ Publicly host video and audio files so that you don't need to use YouTube/Vimeo/
489 501
 </p>
490 502
 </div>
491 503
 </div>
492
-<div id="outline-container-orgb224245" class="outline-2">
493
-<h2 id="orgb224245">Mumble</h2>
494
-<div class="outline-text-2" id="text-orgb224245">
504
+<div id="outline-container-orgfa87291" class="outline-2">
505
+<h2 id="orgfa87291">Mumble</h2>
506
+<div class="outline-text-2" id="text-orgfa87291">
495 507
 <p>
496 508
 The popular VoIP and text chat system. Say goodbye to old-fashioned telephony conferences with silly dial codes. Also works well on mobile.
497 509
 </p>
@@ -501,9 +513,9 @@ The popular VoIP and text chat system. Say goodbye to old-fashioned telephony co
501 513
 </p>
502 514
 </div>
503 515
 </div>
504
-<div id="outline-container-org2786fbb" class="outline-2">
505
-<h2 id="org2786fbb">NextCloud</h2>
506
-<div class="outline-text-2" id="text-org2786fbb">
516
+<div id="outline-container-org88bc444" class="outline-2">
517
+<h2 id="org88bc444">NextCloud</h2>
518
+<div class="outline-text-2" id="text-org88bc444">
507 519
 <p>
508 520
 Store files on your server and sync them with laptops or mobile devices. Includes many plugins including videoconferencing and collaborative document editing.
509 521
 </p>
@@ -513,9 +525,9 @@ Store files on your server and sync them with laptops or mobile devices. Include
513 525
 </p>
514 526
 </div>
515 527
 </div>
516
-<div id="outline-container-orgaad15be" class="outline-2">
517
-<h2 id="orgaad15be">PI-Hole</h2>
518
-<div class="outline-text-2" id="text-orgaad15be">
528
+<div id="outline-container-orgd909087" class="outline-2">
529
+<h2 id="orgd909087">PI-Hole</h2>
530
+<div class="outline-text-2" id="text-orgd909087">
519 531
 <p>
520 532
 The black hole for web adverts. Block adverts at the domain name level within your local network. It can significantly reduce bandwidth, speed up page load times and protect your systems from being tracked by spyware.
521 533
 </p>
@@ -525,9 +537,9 @@ The black hole for web adverts. Block adverts at the domain name level within yo
525 537
 </p>
526 538
 </div>
527 539
 </div>
528
-<div id="outline-container-org0cb789f" class="outline-2">
529
-<h2 id="org0cb789f">PostActiv</h2>
530
-<div class="outline-text-2" id="text-org0cb789f">
540
+<div id="outline-container-org54cc393" class="outline-2">
541
+<h2 id="org54cc393">PostActiv</h2>
542
+<div class="outline-text-2" id="text-org54cc393">
531 543
 <p>
532 544
 An alternative federated social networking system compatible with GNU Social. It includes some optimisations and fixes currently not available within the main GNU Social project.
533 545
 </p>
@@ -537,9 +549,9 @@ An alternative federated social networking system compatible with GNU Social. It
537 549
 </p>
538 550
 </div>
539 551
 </div>
540
-<div id="outline-container-org6b2db26" class="outline-2">
541
-<h2 id="org6b2db26">Profanity</h2>
542
-<div class="outline-text-2" id="text-org6b2db26">
552
+<div id="outline-container-orgbf4385b" class="outline-2">
553
+<h2 id="orgbf4385b">Profanity</h2>
554
+<div class="outline-text-2" id="text-orgbf4385b">
543 555
 <p>
544 556
 A shell based XMPP client which you can run on the Freedombone server via ssh.
545 557
 </p>
@@ -549,9 +561,9 @@ A shell based XMPP client which you can run on the Freedombone server via ssh.
549 561
 </p>
550 562
 </div>
551 563
 </div>
552
-<div id="outline-container-org4dea572" class="outline-2">
553
-<h2 id="org4dea572">Riot Web</h2>
554
-<div class="outline-text-2" id="text-org4dea572">
564
+<div id="outline-container-orgda318c9" class="outline-2">
565
+<h2 id="orgda318c9">Riot Web</h2>
566
+<div class="outline-text-2" id="text-orgda318c9">
555 567
 <p>
556 568
 A browser based user interface for the Matrix federated communications system, including WebRTC audio and video chat.
557 569
 </p>
@@ -561,9 +573,9 @@ A browser based user interface for the Matrix federated communications system, i
561 573
 </p>
562 574
 </div>
563 575
 </div>
564
-<div id="outline-container-org7e88433" class="outline-2">
565
-<h2 id="org7e88433">SearX</h2>
566
-<div class="outline-text-2" id="text-org7e88433">
576
+<div id="outline-container-org99449d0" class="outline-2">
577
+<h2 id="org99449d0">SearX</h2>
578
+<div class="outline-text-2" id="text-org99449d0">
567 579
 <p>
568 580
 A metasearch engine for customised and private web searches.
569 581
 </p>
@@ -573,9 +585,9 @@ A metasearch engine for customised and private web searches.
573 585
 </p>
574 586
 </div>
575 587
 </div>
576
-<div id="outline-container-orgcfc1af4" class="outline-2">
577
-<h2 id="orgcfc1af4">tt-rss</h2>
578
-<div class="outline-text-2" id="text-orgcfc1af4">
588
+<div id="outline-container-org761a652" class="outline-2">
589
+<h2 id="org761a652">tt-rss</h2>
590
+<div class="outline-text-2" id="text-org761a652">
579 591
 <p>
580 592
 Private RSS reader. Pulls in RSS/Atom feeds via Tor and is only accessible via an onion address. Have "<i>the right to read</i>" without the Surveillance State knowing what you're reading. Also available with a user interface suitable for viewing on mobile devices via a browser such as OrFox.
581 593
 </p>
@@ -585,9 +597,9 @@ Private RSS reader. Pulls in RSS/Atom feeds via Tor and is only accessible via a
585 597
 </p>
586 598
 </div>
587 599
 </div>
588
-<div id="outline-container-org526d1e5" class="outline-2">
589
-<h2 id="org526d1e5">Syncthing</h2>
590
-<div class="outline-text-2" id="text-org526d1e5">
600
+<div id="outline-container-orga6e23d7" class="outline-2">
601
+<h2 id="orga6e23d7">Syncthing</h2>
602
+<div class="outline-text-2" id="text-orga6e23d7">
591 603
 <p>
592 604
 Possibly the best way to synchronise files across all of your devices. Once it has been set up it "just works" with no user intervention needed.
593 605
 </p>
@@ -597,9 +609,9 @@ Possibly the best way to synchronise files across all of your devices. Once it h
597 609
 </p>
598 610
 </div>
599 611
 </div>
600
-<div id="outline-container-org43bcb4f" class="outline-2">
601
-<h2 id="org43bcb4f">Tahoe-LAFS</h2>
602
-<div class="outline-text-2" id="text-org43bcb4f">
612
+<div id="outline-container-org643b86b" class="outline-2">
613
+<h2 id="org643b86b">Tahoe-LAFS</h2>
614
+<div class="outline-text-2" id="text-org643b86b">
603 615
 <p>
604 616
 Robust and encrypted storage of files on one or more server.
605 617
 </p>
@@ -609,9 +621,9 @@ Robust and encrypted storage of files on one or more server.
609 621
 </p>
610 622
 </div>
611 623
 </div>
612
-<div id="outline-container-org29d522e" class="outline-2">
613
-<h2 id="org29d522e">Tox</h2>
614
-<div class="outline-text-2" id="text-org29d522e">
624
+<div id="outline-container-org8eb9d12" class="outline-2">
625
+<h2 id="org8eb9d12">Tox</h2>
626
+<div class="outline-text-2" id="text-org8eb9d12">
615 627
 <p>
616 628
 Client and bootstrap node for the Tox chat/VoIP system.
617 629
 </p>
@@ -621,9 +633,9 @@ Client and bootstrap node for the Tox chat/VoIP system.
621 633
 </p>
622 634
 </div>
623 635
 </div>
624
-<div id="outline-container-org71eba9a" class="outline-2">
625
-<h2 id="org71eba9a">Turtl</h2>
626
-<div class="outline-text-2" id="text-org71eba9a">
636
+<div id="outline-container-org5a0e4e5" class="outline-2">
637
+<h2 id="org5a0e4e5">Turtl</h2>
638
+<div class="outline-text-2" id="text-org5a0e4e5">
627 639
 <p>
628 640
 A system for privately creating and sharing notes and images, similar to Evernote but without the spying.
629 641
 </p>
@@ -633,18 +645,18 @@ A system for privately creating and sharing notes and images, similar to Evernot
633 645
 </p>
634 646
 </div>
635 647
 </div>
636
-<div id="outline-container-org95cabfd" class="outline-2">
637
-<h2 id="org95cabfd">Vim</h2>
638
-<div class="outline-text-2" id="text-org95cabfd">
648
+<div id="outline-container-orgdeeab5b" class="outline-2">
649
+<h2 id="orgdeeab5b">Vim</h2>
650
+<div class="outline-text-2" id="text-orgdeeab5b">
639 651
 <p>
640 652
 If you use the Mutt client to read your email then this will set it up to use vim for composing new mail.
641 653
 </p>
642 654
 </div>
643 655
 </div>
644 656
 
645
-<div id="outline-container-org07897b8" class="outline-2">
646
-<h2 id="org07897b8">XMPP</h2>
647
-<div class="outline-text-2" id="text-org07897b8">
657
+<div id="outline-container-orgdbd802c" class="outline-2">
658
+<h2 id="orgdbd802c">XMPP</h2>
659
+<div class="outline-text-2" id="text-orgdbd802c">
648 660
 <p>
649 661
 Chat server which can be used together with client such as Gajim or Conversations to provide end-to-end content security and also onion routed metadata security. Includes advanced features such as <i>client state notification</i> to save battery power on your mobile devices, support for seamless roaming between networks and <i>message carbons</i> so that you can receive the same messages while being simultaneously logged in to your account on more than one device.
650 662
 </p>