瀏覽代碼

Promote convergence

Bob Mottram 11 年之前
父節點
當前提交
6f846328fe
共有 1 個文件被更改,包括 92 次插入72 次删除
  1. 92
    72
      beaglebone.txt

+ 92
- 72
beaglebone.txt 查看文件

563
 iptables -A INPUT -p udp --destination-port 4000 -j DROP
563
 iptables -A INPUT -p udp --destination-port 4000 -j DROP
564
 iptables -A INPUT -p udp --destination-port 119 -j DROP
564
 iptables -A INPUT -p udp --destination-port 119 -j DROP
565
 iptables -A INPUT -p udp --destination-port 137 -j DROP
565
 iptables -A INPUT -p udp --destination-port 137 -j DROP
566
+iptables -A INPUT -p udp --destination-port 8432 -j DROP
567
+iptables -A INPUT -p udp --destination-port 8433 -j DROP
566
 
568
 
567
 # Make sure NEW incoming tcp connections are SYN packets
569
 # Make sure NEW incoming tcp connections are SYN packets
568
 iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
570
 iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
612
 # Limit Bitmessage connections
614
 # Limit Bitmessage connections
613
 iptables -A INPUT -p tcp --dport 8444 -m limit --limit 10/minute --limit-burst 1 -j ACCEPT
615
 iptables -A INPUT -p tcp --dport 8444 -m limit --limit 10/minute --limit-burst 1 -j ACCEPT
614
 
616
 
617
+# Limit Convergence notary
618
+iptables -A INPUT -p tcp --dport 8432:8433 -m limit --limit 10/minute --limit-burst 1 -j ACCEPT
619
+
615
 # Limit the number of incoming tcp connections
620
 # Limit the number of incoming tcp connections
616
 # Interface 0 incoming syn-flood protection
621
 # Interface 0 incoming syn-flood protection
617
 iptables -N syn_flood
622
 iptables -N syn_flood
4969
 To make the list easier to identify, rather than just appearing as a random string, then under the *Your Identities* tab right click on it and select *Set Avatar* and assign a suitable icon.
4974
 To make the list easier to identify, rather than just appearing as a random string, then under the *Your Identities* tab right click on it and select *Set Avatar* and assign a suitable icon.
4970
 
4975
 
4971
 The disadvantage of this type of mailing list is that it's not possible for any one participant to act as a list moderator, or in other words each participant must do their own moderation.  That's ok if the size of the group is small, but if it's larger then anyone spamming or trolling the list can make things miserable for the others.
4976
 The disadvantage of this type of mailing list is that it's not possible for any one participant to act as a list moderator, or in other words each participant must do their own moderation.  That's ok if the size of the group is small, but if it's larger then anyone spamming or trolling the list can make things miserable for the others.
4977
+** Add a Convergenge notary
4978
+Convergence is a secure replacement for the Certificate Authority System. Rather than employing a traditionally hard-coded list of immutable and largely untrusted CAs, Convergence allows you to configure a dynamic set of Notaries which use network perspective to validate your communication.  For more details see [[http://convergence.io][convergence.io]] or [[http://www.youtube.com/watch?v=Z7Wl2FW2TcA][this talk which explains the concepts]].
4979
+
4980
+*** Installation
4981
+
4982
+#+BEGIN_SRC: bash
4983
+apt-get install python python-twisted-web python-twisted-names python-m2crypto python-openssl
4984
+cd /tmp
4985
+wget http://freedombone.uk.to/convergence-notary-current.tar.gz
4986
+#+END_SRC
4987
+
4988
+Verify it:
4989
+
4990
+#+BEGIN_SRC: bash
4991
+sha256sum convergence-notary-current.tar.gz
4992
+6d3f7f30649c174c58ef4d719498d33737ddfa229f3d7fc51af0162b590d719b
4993
+#+END_SRC
4994
+
4995
+Install it:
4996
+
4997
+#+BEGIN_SRC: bash
4998
+tar zxvf convergence-notary-current.tar.gz
4999
+cd convergence-0.4
5000
+python ./setup.py install
5001
+#+END_SRC
5002
+
5003
+Generate a key pair:
5004
+
5005
+#+BEGIN_SRC: bash
5006
+convergence-gencert
5007
+#+END_SRC
5008
+
5009
+When asked for a challenge password just hit *Enter* a couple of times.  Then move the key pair to the appropriate directories as follows.
5010
+
5011
+#+BEGIN_SRC: bash
5012
+mv mynotary.key /etc/ssl/private
5013
+chmod 400 /etc/ssl/private/mynotary.key
5014
+mv mynotary.pem /etc/ssl/certs
5015
+#+END_SRC
5016
+
5017
+Now create the database:
5018
+
5019
+#+BEGIN_SRC: bash
5020
+convergence-createdb
5021
+#+END_SRC
5022
+
5023
+Create an initialisation script:
5024
+
5025
+#+BEGIN_SRC: bash
5026
+convergence-notary -p 8432 -s 8433 -c /etc/ssl/certs/mynotary.pem -k /etc/ssl/private/mynotary.key
5027
+#+END_SRC
5028
+
5029
+An initialisation script will be created automatically within /etc/init.d.
5030
+
5031
+Generate a notary bundle:
5032
+
5033
+#+BEGIN_SRC: bash
5034
+convergence-bundle
5035
+#+END_SRC
5036
+
5037
+Enter your name, nickname, handle or whatever.
5038
+
5039
+For the bundle location enter https://mydomainname.com/convergence.notary
5040
+
5041
+For the Hostname enter your domain name
5042
+
5043
+For SSL port enter *8433* and for HTTP port nter *8432*
5044
+
5045
+For the pem file enter */etc/ssl/certs/mynotary.pem*
5046
+
5047
+#+BEGIN_SRC: bash
5048
+export HOSTNAME=mydomainname.com
5049
+mv mynotarybundle.notary /var/www/$HOSTNAME/htdocs/convergence.notary
5050
+chown www-data:www-data /var/www/$HOSTNAME/htdocs/convergence.notary
5051
+#+END_SRC
5052
+
5053
+Now open ports 8432 and 8433 on your internet router or firewall and direct it to the BBB.
5054
+
5055
+*** Using Convergence
5056
+On a computer which is not the BBB (your laptop, etc):
5057
+
5058
+Install the browser plugin by navigating to https://convergence.io or a backup copy also exists at http://freedombone.uk.to/convergence-current.xpi
5059
+
5060
+After installation restart your browser.
5061
+
5062
+You will notice that an icon appears in the top right corner of the browser, which resembles a lock and two plus signs.  Click on the down arrow to the right of it and select *options*.
4972
 ** Install Tripwire
5063
 ** Install Tripwire
4973
 
5064
 
4974
 #+BEGIN_VERSE
5065
 #+BEGIN_VERSE
5042
 | XMPP (server) |       5269 |
5133
 | XMPP (server) |       5269 |
5043
 | XMPP (BOSH)   | 5280..5281 |
5134
 | XMPP (BOSH)   | 5280..5281 |
5044
 | Bitmessage    |       8444 |
5135
 | Bitmessage    |       8444 |
5136
+| Convergence   | 8432..8433 |
5045
 
5137
 
5046
 * Hints and Tips
5138
 * Hints and Tips
5047
 ** Messaging security
5139
 ** Messaging security
5676
 
5768
 
5677
 See documentation in /usr/share/doc/kune/INSTALL.gz
5769
 See documentation in /usr/share/doc/kune/INSTALL.gz
5678
 
5770
 
5679
-** Add a Convergenge notary
5680
-Convergence is a secure replacement for the Certificate Authority System. Rather than employing a traditionally hard-coded list of immutable and largely untrusted CAs, Convergence allows you to configure a dynamic set of Notaries which use network perspective to validate your communication.  For more details see [[http://convergence.io][convergence.io]]
5681
-
5682
-#+BEGIN_SRC: bash
5683
-apt-get install python python-twisted-web python-twisted-names python-m2crypto python-openssl
5684
-cd /tmp
5685
-wget http://freedombone.uk.to/convergence-notary-current.tar.gz
5686
-#+END_SRC
5687
-
5688
-Verify it:
5689
-
5690
-#+BEGIN_SRC: bash
5691
-sha256sum convergence-notary-current.tar.gz
5692
-6d3f7f30649c174c58ef4d719498d33737ddfa229f3d7fc51af0162b590d719b
5693
-#+END_SRC
5694
-
5695
-Install it:
5696
-
5697
-#+BEGIN_SRC: bash
5698
-tar zxvf convergence-notary-current.tar.gz
5699
-cd convergence-0.4
5700
-python ./setup.py install
5701
-#+END_SRC
5702
-
5703
-Generate a key pair:
5704
-
5705
-#+BEGIN_SRC: bash
5706
-convergence-gencert
5707
-#+END_SRC
5708
-
5709
-When asked for a challenge password just hit *Enter* a couple of times.  Then move the key pair to the appropriate directories as follows.
5710
-
5711
-#+BEGIN_SRC: bash
5712
-mv mynotary.key /etc/ssl/private
5713
-chmod 400 /etc/ssl/private/mynotary.key
5714
-mv mynotary.pem /etc/ssl/certs
5715
-#+END_SRC
5716
-
5717
-Now create the database:
5718
-
5719
-#+BEGIN_SRC: bash
5720
-convergence-createdb
5721
-#+END_SRC
5722
-
5723
-Create an initialisation script:
5724
-
5725
-#+BEGIN_SRC: bash
5726
-convergence-notary -p 8432 -s 8433 -c /etc/ssl/certs/mynotary.pem -k /etc/ssl/private/mynotary.key
5727
-#+END_SRC
5728
-
5729
-An initialisation script will be created automatically within /etc/init.d.
5730
-
5731
-Generate a notary bundle:
5732
-
5733
-#+BEGIN_SRC: bash
5734
-convergence-bundle
5735
-#+END_SRC
5736
-
5737
-Enter your name, nickname, handle or whatever.
5738
-
5739
-For the bundle location enter https://mydomainname.com/convergence.notary
5740
-
5741
-For the Hostname press Enter.
5742
-
5743
-#+BEGIN_SRC: bash
5744
-export HOSTNAME=mydomainname.com
5745
-mv mynotarybundle.notary /var/www/$HOSTNAME/htdocs/convergence.notary
5746
-chown www-data:www-data /var/www/$HOSTNAME/htdocs/convergence.notary
5747
-#+END_SRC
5748
-
5749
-Now open ports 8432 and 8433 on your internet router or firewall and direct it to the BBB.
5750
-
5751
 * Related projects
5771
 * Related projects
5752
 
5772
 
5753
   * [[https://freedomboxfoundation.org/][Freedombox]]
5773
   * [[https://freedomboxfoundation.org/][Freedombox]]