Skip to content

innaky/irssi-tor-sasl-freenode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Idioms/Idiomas

Configuration Tor-SASL + irssi + Freenode

Configuration for irssi with tor + sasl, freenode.

Motivation

For my friends and some generic pattern matching creature, please!, no more questions about this configuration. RTFM! xD

Configuration

Installation (Debian GNU/Linux)

# apt update
# apt install irssi tor

Freenode user registration

irssi

Inside Shell of irssi.

  • Adding Freenode with tls 6697, never 6667
/server add -tls -tls_verify -network freenode -port 6697 chat.freenode.net
/save
/connect freenode
  • Nick registration
/nick your_nick_here
/msg NickServ REGISTER YourPassword youremail@example.com
/quit

Check your email.

Build your fingerprint

In the OS shell (Bash/Ksh)

1> openssl req -newkey rsa:2048 -days 730 -x509 -keyout your_nick.key -out your_nick.cert -nodes 
2> cat your_nick.cert your_nick.key > your_nick.pem
3> openssl x509 -sha1 -noout -fingerprint -in your_nick.pem | sed -e 's/^.*=//;s/://g;y/ABCDEF/abcdef/'
4> mv your_nick.pem ~/.irssi/config
  1. Replace your_nick.key and your_nick.cert, for your nick, example: innaky.key, innaky.cert.

  2. Follow the same logic for your_nick.pem.

  3. With This line you get the fingerprint for add in your freenode account (the output is similar to: c2ba4db1ccc82cd3f8ec50ebcc3461628f95ab27).

  4. copy or move the file .pem for the irssi config file in your home directory.

Adding your fingerprint certificate in freenode

  • Start irssi
irssi

Inside irssi

/nick YourNick
/msg NickServ IDENTIFY YourNick YourPassword
/msg NICKSERV CERT ADD c2ba4db1ccc82cd3f8ec50ebcc3461628f95ab27
/quit

Tor configuration

  • Call your favorite editor and add in the last line:
sudo emacs -nw /etc/tor/torrc
mapaddress 10.40.40.40 freenodeok2gncmy.onion

irssi + tor + sasl

  • Start irssi

  • Inside irssi

/network add -sasl_username <YourFreenodePassword> -sasl_password ~/.irssi/your_nick.pem -sasl_mechanism EXTERNAL freenodetor
/server add -auto -net freenodetor -ssl -ssl_cert ~/.irssi/your_nick.pem freenodeok2gncmy.onion 6697
/save

Tunelling irssi with tor

torify irssi -n YourFreenodeUser

Example:

torify irssi -n innaky

Checking tor connection

  1. Cloak

Inside of irssi console use this command /whois and check your user.

The freenode server added in your cloak of host, this:

~your_user@gateway/tor-sasl/your_user

Example:

~innaky@gateway/tor-sasl/innaky
  1. Check certificate fingerprint

If you use the command /whois you can see something like this,

has client certificate fingerprint c2ba4db1ccc82cd3f8ec50ebcc3461628f95ab27
  1. User mode

You can see in your irssi window (bottom left) this (but with your nick):

innaky(+Zi)

Congratulations

If you have the all checks, you are navigating in anonymous form! :)

Notes

  • The freenode user is the same of the .pem file.

  • emacs -nw Emacs is my favorite editor, but you can use nano, vi, vim

  • Customizing another IPv4

The 10.40.40.40 is arbitrary you can change it for anyone other.

Example:

You want this IPv4 10.17.23.41, ok

You need follow this steps:

  1. Edit torrc file
sudo emacs -nw /etc/tor/torrc

Add in the last line:

mapaddress 10.17.23.41 freenodeok2gncmy.onion
  1. Restart torrc
sudo systemctl restart tor
  1. Irssi file configuration
emacs -nw ~/.irssi/config

Search the chatnet = "freenodetor"; and change the address = "10.40.40.40" by address = "10.17.23.41"

The output is similar this:

  {
    address = "10.17.23.41";
    chatnet = "freenodetor";
    port = "6697";
    use_tls = "yes";
    tls_cert = "~/.irssi/innaky.pem";
    tls_verify = "no";
    autoconnect = "yes";
  },

Configuración Tor-SASL + irssi + Freenode

Configuración con TOR + SASL + irssi para Freenode

Motivación

Para mis amistades y todos aquellos seres que hagan pattern matching con criatura, por favor!, no más preguntas sobre esta configuración RTFM! xD

Configuración

Instalación (Debian GNU/Linux)

# apt update
# apt install irssi tor

Registro de nick en freenode

  • Ejecuta irssi.
irssi
  • Dentro de irssi escribe
/server add -tls -tls_verify -network freenode -port 6697 chat.freenode.net
/save
/connect freenode

De esta forma le decimos al irssi que cuando pidamos conectarnos a freenode, siempre sea a través del puerto 6697, aquí su RFC

  • Registro

Una vez conectada al Freenode, en la línea de abajo agrega:

/nick coloca_tu_nick_aquí
/msg NickServ REGISTER TuContraseñaAquí tucorreo@innaky.org
/quit

y revisa tu correo electrónico.

Construye tu certificado

En la consola/shell (Bash, Ksh o Zsh)

1> openssl req -newkey rsa:2048 -days 730 -x509 -keyout tu_nick.key -out tu_nick.cert -nodes 
2> cat tu_nick.cert tu_nick.key > tu_nick.pem
3> openssl x509 -sha1 -noout -fingerprint -in tu_nick.pem | sed -e 's/^.*=//;s/://g;y/ABCDEF/abcdef/'
4> mv tu_nick.pem ~/.irssi/config

Notas:

  1. Reemplaza tu_nick por el tuyo, obvio no? xD
  2. Igualmente con tu_nick
  3. Esta línea generará tu huella, será algo similar a esto: c2ba4db1ccc82cd3f8ec50ebcc3461628f95ab27 (eso lo agregaremos a tu cuenta freenode)
  4. El archivo .pem generado, copialo al directorio de irssi.

Agregando tu certificado

  • Llamamos al irssi
irssi
  • Dentro de irssi, agrega lo siguiente:
/nick Tu_nick
/msg NickServ IDENTIFY Tu_Nick YourPassword
/msg NICKSERV CERT ADD c2ba4db1ccc82cd3f8ec50ebcc3461628f95ab27
/quit

Configuración Tor

Con tu editor favorito (emacs, verdad? xD), agrega lo siguiente al final de este archivo /etc/tor/torrc

sudo emacs -nw /etc/tor/torrc
mapaddress 10.40.40.40 freenodeok2gncmy.onion

Irssi + tor + sasl

  • Inicia irssi
  • Dentro de irssi ejecuta lo siguiente:
/network add -sasl_username <TuContraseñaFreenode> -sasl_password ~/.irssi/tu_nick.pem -sasl_mechanism EXTERNAL freenodetor
/server add -auto -net freenodetor -ssl -ssl_cert ~/.irssi/tu_nick.pem freenodeok2gncmy.onion 6697
/save

Irssi sobre Tor

torify irssi -n tu_freenode_nick

Verificando el anonimato y certificado

  1. Si escribes el comando /whois en la ventana 1 del irssi revelará información, entre ellas tu capa o nombre asociado a tu hostname, será algo similar a esto:
~innaky@gateway/tor-sasl/innaky
  1. La siguiente información es tu huella, debe ser igual a la agregada en los pasos anteriores.

  2. El modo de tu usuaria debe ser:

innaky(+Zi)

Felicidades

Si pasastes todos los checks, estas conectada usando tor.

Notas

  • El archivo .pem que generas colócale tu nick.
  • el comando emacs -nw es porque emacs es mi editor favorito, pero eres libre de usar el que ames.
  • Los tutos de la red hablan de 10.40.40.40, pero ¿qué sucede si deseas 10.17.23.41?

ok!,

sólo debes seguir los siguientes pasos:

  1. Edita el archivo /etc/tor/torrc, cambia 10.40.40.40 por 10.17.23.41
  2. Restaura tor
    # systemctl restart tor
    
  3. En el archivo de ~/.irssi/config, busca la configuración de freenodetor y cambia 10.40.40.40 por 10.17.23.41

La salida sería algo como lo siguiente:

  {
    address = "10.17.23.41";
    chatnet = "freenodetor";
    port = "6697";
    use_tls = "yes";
    tls_cert = "~/.irssi/innaky.pem";
    tls_verify = "no";
    autoconnect = "yes";
  },

About

Configuration for irssi with tor sasl, freenode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published