Browse Source

Avoid irc data leakage

Bob Mottram 9 years ago
parent
commit
05ff82c6f4
3 changed files with 11 additions and 34 deletions
  1. 7
    32
      doc/EN/usage.org
  2. 2
    1
      src/freedombone
  3. 2
    1
      src/freedombone-adduser

+ 7
- 32
doc/EN/usage.org View File

163
 ** IRC
163
 ** IRC
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.
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
 *** Irssi
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
 #+BEGIN_SRC bash
168
 #+BEGIN_SRC bash
169
-/server add -auto -ssl yourdomainname 6697
170
-/connect yourdomainname
171
-/join freedombone
169
+ssh myusername@mydomain -p 2222
172
 #+END_SRC
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
 *** XChat
173
 *** XChat
201
 If you are using the XChat client:
174
 If you are using the XChat client:
202
 
175
 
303
 ** Tox
276
 ** Tox
304
 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.
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
 *** Using the Toxic client
278
 *** Using the Toxic client
306
-To connect to your node use the command:
279
+Log into your system with:
307
 
280
 
308
 #+BEGIN_SRC bash
281
 #+BEGIN_SRC bash
309
-/connect [yourdomainname] 33445 [your tox node ID]
282
+ssh myusername@mydomain -p 2222
310
 #+END_SRC
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
 ** VoIP (Voice chat)
286
 ** VoIP (Voice chat)
312
 *** Using with Ubuntu
287
 *** Using with Ubuntu
313
 Within the software center search for "mumble" and install the client then run it. Skip through the audio setup wizard.
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 View File

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

+ 2
- 1
src/freedombone-adduser View File

313
     echo '    address = "chat.freenode.net";' >> /home/$MY_USERNAME/.irssi/config
313
     echo '    address = "chat.freenode.net";' >> /home/$MY_USERNAME/.irssi/config
314
     echo '    chatnet = "Freenode";' >> /home/$MY_USERNAME/.irssi/config
314
     echo '    chatnet = "Freenode";' >> /home/$MY_USERNAME/.irssi/config
315
     echo '    port = "6667";' >> /home/$MY_USERNAME/.irssi/config
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
     echo '  },' >> /home/$MY_USERNAME/.irssi/config
317
     echo '  },' >> /home/$MY_USERNAME/.irssi/config
318
     echo '  {' >> /home/$MY_USERNAME/.irssi/config
318
     echo '  {' >> /home/$MY_USERNAME/.irssi/config
319
     echo '    address = "irc.oftc.net";' >> /home/$MY_USERNAME/.irssi/config
319
     echo '    address = "irc.oftc.net";' >> /home/$MY_USERNAME/.irssi/config
360
     echo "  core = { real_name = \"$MY_NAME\"; user_name = \"$MY_USERNAME\"; nick = \"$MY_USERNAME\"; };" >> /home/$MY_USERNAME/.irssi/config
360
     echo "  core = { real_name = \"$MY_NAME\"; user_name = \"$MY_USERNAME\"; nick = \"$MY_USERNAME\"; };" >> /home/$MY_USERNAME/.irssi/config
361
     echo '  "fe-text" = { actlist_sort = "refnum"; };' >> /home/$MY_USERNAME/.irssi/config
361
     echo '  "fe-text" = { actlist_sort = "refnum"; };' >> /home/$MY_USERNAME/.irssi/config
362
     echo '};' >> /home/$MY_USERNAME/.irssi/config
362
     echo '};' >> /home/$MY_USERNAME/.irssi/config
363
+    echo 'ignores = ( { level = "CTCPS"; } );' >> /home/$MY_USERNAME/.irssi/config
363
 
364
 
364
     chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.irssi
365
     chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.irssi
365
 fi
366
 fi