Parcourir la source

Avoid irc data leakage

Bob Mottram il y a 9 ans
Parent
révision
05ff82c6f4
3 fichiers modifiés avec 11 ajouts et 34 suppressions
  1. 7
    32
      doc/EN/usage.org
  2. 2
    1
      src/freedombone
  3. 2
    1
      src/freedombone-adduser

+ 7
- 32
doc/EN/usage.org Voir le fichier

@@ -163,40 +163,13 @@ On first visiting your Hubzilla site you'll see the login screen. The first thin
163 163
 ** IRC
164 164
 IRC is useful for multi-user chat. The classic use case is for software development where many engineers might need to coordinate their activities, but it's also useful for meetings, parties and general socialising.
165 165
 *** Irssi
166
-If you are using the [[http://www.irssi.org][irssi]] IRC client then you can use the following commands to connect to your IRC server.
166
+The easiest way to use irssi is to connect to your system, like this:
167 167
 
168 168
 #+BEGIN_SRC bash
169
-/server add -auto -ssl yourdomainname 6697
170
-/connect yourdomainname
171
-/join freedombone
169
+ssh myusername@mydomain -p 2222
172 170
 #+END_SRC
173 171
 
174
-You can also connect via Tor, and this will help to protect your metadata from mass surveillance and will also allow you to connect even if you are behind a hostile firewall. Note however, that connecting to popular servers such as Freenode is hard to do via Tor (they may block exit nodes to try to stop trolls), so you might want to have a special irssi config file for only connecting to your server.
175
-
176
-Look up the onion address for IRC on your Freedombone system.
177
-
178
-#+BEGIN_SRC bash
179
-ssh username@domain -p 2222
180
-sudo control
181
-#+END_SRC
182
-
183
-Go to the /About/ screen and look for the IRC onion address, then exit back to your local system.
184
-
185
-#+BEGIN_SRC bash
186
-exit
187
-#+END_SRC
188
-
189
-Once you know the onion address for the IRC server you can then connect to it with:
190
-
191
-#+BEGIN_SRC bash
192
-usewithtor irssi
193
-/server add -auto myaddress.onion 6697
194
-/ignore * CTCPS
195
-/connect myaddress.onion
196
-/join freedombone
197
-#+END_SRC
198
-
199
-Note that if *usewithtor* doesn't work then the *torify* command might.
172
+Then select *IRC* from the menu. Irssi is automatically set up to connect to your server and route its messages through the Tor network. Some popular systems such as *Freenode* reject connections coming from Tor (as a very crude attempt to stop trolls) and so if you want to use those you can exit to the command line from the menu and then just type "irssi" to use the system without Tor.
200 173
 *** XChat
201 174
 If you are using the XChat client:
202 175
 
@@ -303,11 +276,13 @@ Then select *Next*. When chatting you can use the lock icon to encrypt your conv
303 276
 ** Tox
304 277
 Tox is an encrypted peer-to-peer messaging system and so should work without Freedombone. It uses a system of nodes which act as a sort of directory service allowing users to find and connect to each other. The Tox node ID on the Freedombone can be found within the README within your home directory. If you have other users connect to your node then you will be able to continue chatting even when no other nodes are available.
305 278
 *** Using the Toxic client
306
-To connect to your node use the command:
279
+Log into your system with:
307 280
 
308 281
 #+BEGIN_SRC bash
309
-/connect [yourdomainname] 33445 [your tox node ID]
282
+ssh myusername@mydomain -p 2222
310 283
 #+END_SRC
284
+
285
+Then from the menu select *Tox Chat*. Tox is encrypted by default and also router through Tor, so it should be reasonably secure both in terms of message content and metadata.
311 286
 ** VoIP (Voice chat)
312 287
 *** Using with Ubuntu
313 288
 Within the software center search for "mumble" and install the client then run it. Skip through the audio setup wizard.

+ 2
- 1
src/freedombone Voir le fichier

@@ -7548,7 +7548,7 @@ function install_irc_client {
7548 7548
     echo '    address = "chat.freenode.net";' >> /home/$MY_USERNAME/.irssi/config
7549 7549
     echo '    chatnet = "Freenode";' >> /home/$MY_USERNAME/.irssi/config
7550 7550
     echo '    port = "6667";' >> /home/$MY_USERNAME/.irssi/config
7551
-    echo '    autoconnect = "yes";' >> /home/$MY_USERNAME/.irssi/config
7551
+    echo '    autoconnect = "no";' >> /home/$MY_USERNAME/.irssi/config
7552 7552
     echo '  },' >> /home/$MY_USERNAME/.irssi/config
7553 7553
     echo '  {' >> /home/$MY_USERNAME/.irssi/config
7554 7554
     echo '    address = "irc.oftc.net";' >> /home/$MY_USERNAME/.irssi/config
@@ -7595,6 +7595,7 @@ function install_irc_client {
7595 7595
     echo "  core = { real_name = \"$MY_NAME\"; user_name = \"$MY_USERNAME\"; nick = \"$MY_USERNAME\"; };" >> /home/$MY_USERNAME/.irssi/config
7596 7596
     echo '  "fe-text" = { actlist_sort = "refnum"; };' >> /home/$MY_USERNAME/.irssi/config
7597 7597
     echo '};' >> /home/$MY_USERNAME/.irssi/config
7598
+    echo 'ignores = ( { level = "CTCPS"; } );' >> /home/$MY_USERNAME/.irssi/config
7598 7599
 
7599 7600
     chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.irssi
7600 7601
 

+ 2
- 1
src/freedombone-adduser Voir le fichier

@@ -313,7 +313,7 @@ if grep -q "install_irc_client" $COMPLETION_FILE; then
313 313
     echo '    address = "chat.freenode.net";' >> /home/$MY_USERNAME/.irssi/config
314 314
     echo '    chatnet = "Freenode";' >> /home/$MY_USERNAME/.irssi/config
315 315
     echo '    port = "6667";' >> /home/$MY_USERNAME/.irssi/config
316
-    echo '    autoconnect = "yes";' >> /home/$MY_USERNAME/.irssi/config
316
+    echo '    autoconnect = "no";' >> /home/$MY_USERNAME/.irssi/config
317 317
     echo '  },' >> /home/$MY_USERNAME/.irssi/config
318 318
     echo '  {' >> /home/$MY_USERNAME/.irssi/config
319 319
     echo '    address = "irc.oftc.net";' >> /home/$MY_USERNAME/.irssi/config
@@ -360,6 +360,7 @@ if grep -q "install_irc_client" $COMPLETION_FILE; then
360 360
     echo "  core = { real_name = \"$MY_NAME\"; user_name = \"$MY_USERNAME\"; nick = \"$MY_USERNAME\"; };" >> /home/$MY_USERNAME/.irssi/config
361 361
     echo '  "fe-text" = { actlist_sort = "refnum"; };' >> /home/$MY_USERNAME/.irssi/config
362 362
     echo '};' >> /home/$MY_USERNAME/.irssi/config
363
+    echo 'ignores = ( { level = "CTCPS"; } );' >> /home/$MY_USERNAME/.irssi/config
363 364
 
364 365
     chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.irssi
365 366
 fi