Advertisement
NetAnarchisT

NEW ANONYMOUS IRC SERVER HOWTO

Nov 19th, 2011
4,759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. Anons that already been using the i2p dark-net default IRC and participating on #occupy and indignados
  2. movements came to some type of consensus:
  3. To create our own IRC network inside of the dark-net with our own anonymous ways not only dedicated
  4. to be secure and anonymous but also represent the kind of freedom and consensus, leaderless and
  5. decentralization we want on the rest of the internet and in our societies. For this we
  6. are creating and linking together volunteer IRC servers inside the i2p dark-net and with this
  7. avoid DOS attacks and the recent privacy concerns anons had in the last months. More about this
  8. on another release but in the mean time join us and lets all build a new world starting from
  9. IRC.
  10.  
  11.  
  12. HOW TO LOG INTO THE ANONYMOUS NEW IRC SERVERS!
  13.  
  14. USING GNU/LINUX - Ubuntu: (if using other distro just check http://www.i2p2.de/download.html) and skip the install part of this doc.
  15.  
  16. Adding the PPA via the command line and installing I2P
  17.  
  18. Open a terminal and enter:
  19.  
  20. sudo apt-add-repository ppa:i2p-maintainers/i2p
  21.  
  22. This command will add the PPA to /etc/apt/sources.list.d and fetch the gpg key that the repository has been signed with. The GPG key ensures that the packages have not been tampered with since being built.
  23. Notify your package manager of the new PPA by entering
  24.  
  25. sudo apt-get update
  26.  
  27. This command will retrieve the latest list of software from each repository that is enabled on your system, including the I2P PPA that was added with the earlier command.
  28. You are now ready to install I2P!
  29.  
  30. sudo apt-get install i2p
  31.  
  32. Adding the PPA Using Synaptic
  33.  
  34. Open Synaptic (System -> Administration -> Synaptic Package Manager).
  35.  
  36. Once Synaptic opens, select Repositories from the Settings menu.
  37. Click the Other Sources tab and click Add and paste:
  38.  
  39. ppa:i2p-maintainers/i2p
  40.  
  41. into the APT-line field and click Add Source. Click the Close button then Reload.
  42. In the Quick Filter box, type in i2p and press enter. When i2p is returned in the results list, right click i2p and select Mark for Installation. After doing so you may see a Mark additional required changes? popup. If so, click Mark then Apply.
  43.  
  44. now SETUP ANONS IRC
  45.  
  46. download this script to make things easier or copy and paste into a .sh file
  47.  
  48. -------------------------- START filename: add_irc_tunnel.sh and chmod +x ------------------
  49.  
  50. #!/usr/bin/env bash
  51.  
  52. if [[ "$#" -lt "3" ]]; then
  53. cat << EOF
  54. USAGE:
  55. ./$(basename $0) <path> <host> <port>
  56.  
  57. ARGS:
  58. path ....... Full path to your i2p tunnel list, if you have already
  59. ran I2P before this script, you may have to use
  60. /home/<user>/.i2p/i2ptunnel.config
  61. host ....... The IRC server's address you want to access
  62. port ....... A local open port to use
  63.  
  64. EXAMPLE:
  65. ./$(basename $0) "/etc/i2p/i2ptunnel.config" "irc.anon-anarchist-action.i2p" "6669"
  66.  
  67. EOF
  68. exit 0
  69. fi
  70.  
  71. die() { # shout bloody messages
  72. echo -e "\e[1;31mERROR:\e[0;31m $1 \e[0m \n"
  73. exit 1
  74. }
  75.  
  76. run_checks() { # brain check
  77. [[ "${I2PTUNNEL##*/}" != "i2ptunnel.config" ]] && die "Wrong file"
  78. [[ ! -w "$I2PTUNNEL" ]] && die "$I2PTUNNEL : No write permission."
  79. [[ "$IRC_HOST" != @(*.*) ]] && die "$IRC_HOST : Not a valid hostname."
  80. [[ "$LOCAL_PORT" -eq 6668 || "$LOCAL_PORT" -lt 1024 || "$LOCAL_PORT" -gt 65535 ]] && die "$LOCAL_PORT : Invalid port."
  81. [[ "$NUM" -lt 7 ]] && die "$NUM : Not a valid tunnel identifier."
  82. }
  83.  
  84. add_tunnel() {
  85. cat >> "$I2PTUNNEL" << EOF
  86. tunnel.${NUM}.name=IRC Proxy
  87. tunnel.${NUM}.description=
  88. tunnel.${NUM}.type=ircclient
  89. tunnel.${NUM}.sharedClient=false
  90. tunnel.${NUM}.interface=127.0.0.1
  91. tunnel.${NUM}.listenPort=${LOCAL_PORT}
  92. tunnel.${NUM}.targetDestination=${IRC_HOST}
  93. tunnel.${NUM}.i2cpHost=127.0.0.1
  94. tunnel.${NUM}.i2cpPort=7654
  95. tunnel.${NUM}.option.inbound.nickname=IRC Proxy
  96. tunnel.${NUM}.option.outbound.nickname=IRC Proxy
  97. tunnel.${NUM}.option.i2cp.closeIdleTime=1200000
  98. tunnel.${NUM}.option.i2cp.closeOnIdle=true
  99. tunnel.${NUM}.option.i2cp.delayOpen=true
  100. tunnel.${NUM}.option.i2cp.newDestOnResume=false
  101. tunnel.${NUM}.option.i2cp.reduceIdleTime=600000
  102. tunnel.${NUM}.option.i2cp.reduceOnIdle=true
  103. tunnel.${NUM}.option.i2cp.reduceQuantity=1
  104. tunnel.${NUM}.option.i2p.streaming.connectDelay=1000
  105. tunnel.${NUM}.option.i2p.streaming.maxWindowSize=16
  106. tunnel.${NUM}.option.inbound.length=3
  107. tunnel.${NUM}.option.inbound.lengthVariance=0
  108. tunnel.${NUM}.option.outbound.length=3
  109. tunnel.${NUM}.option.outbound.lengthVariance=0
  110. tunnel.${NUM}.startOnLoad=true
  111. EOF
  112. }
  113.  
  114. #[ VARIABLES ]#
  115. I2PTUNNEL=$1 # path to our i2ptunnel.config file
  116. IRC_HOST=$2 # our irc i2p hostname
  117. LOCAL_PORT=$3 # our local port
  118.  
  119. # A default i2p installation already has 7 tunnels, labeled from 0 -> 6
  120. # default is set to num=7 unless our 4th argument changes it.
  121. NUM=${4:-7}
  122.  
  123. #[ MAIN ]#
  124. run_checks # make sure the user used their brain before keyboard
  125. add_tunnel # add our irc tunnel to their i2p tunnel list
  126. echo "Done."
  127. exit 0
  128.  
  129. ------------------------------ END --------------------------------------
  130.  
  131. IMPORTNAT: make sure you stop your i2p server before running this script if not it will not work
  132.  
  133. sudo /etc/init.d/i2p stop
  134.  
  135. ok now to this script when you run it as "sudo" or with toor priviledges
  136. the options are"
  137.  
  138. ./add_irc_tunnel "/etc/i2p/i2ptunnel.config" "irc.anon-anarchist-action.i2p" "6669"
  139.  
  140. or
  141.  
  142. ./add_irc_tunnel "/home/$yourusername_here/.i2p/i2ptunnel.config" "irc.anon-anarchist-action.i2p" "6669"
  143.  
  144. NOTE: this name irc.anon-anarchist-action.i2p is propagating now inside the dark-net i2p so you
  145. may have to use the b32 address for more on this see the end of this note.
  146.  
  147. OK: now you can start your i2p server again
  148.  
  149. sudo /etc/init.d/i2p start
  150.  
  151.  
  152. now download X-chat, iircII, Kvirc, BitchX or whatever is the IRC client you like to use
  153. and configure it to use:
  154.  
  155. host: localhost
  156. port: 6669
  157.  
  158. and to auto join channels:
  159. #aaa
  160. #anonops
  161. #AnonAnarchistAction
  162. #opmonsanto
  163.  
  164. etc for more channels when you are already log into IRC type
  165. /list
  166.  
  167. or start your own ;-)
  168.  
  169. here there is an image with how should it look on the i2p config:
  170. at the i2ptunnel tab look for the client tunnels you will see http https and two IRC ones..
  171. open the IRC you just created.
  172. http://img580.imageshack.us/img580/4655/anonirci2phowto.png
  173.  
  174. ---- NOTE ----
  175. The name irc.anon-anarchist-action.i2p is propagating it may take up to 4-5 days
  176. in the mean time you can use the b32 address(like ip address on the internet but anonymous)
  177. so put this instead of the name on the same field:
  178. lighzva3g3qtph5xqw5wotzntg7dejqrtmxwepyrke73ljrjjsea.b32.i2p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement