Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Anonymous IRC Chat System

Tor-Hidden InspIRCd · Zero Metadata · No Central Infrastructure

A fully anonymous, self-hosted IRC network tunnelled through a Tor hidden service. No phone numbers, no logs, no identity — just encrypted, onion-routed messaging across any device.


Overview

This project deploys an InspIRCd IRC server behind a Tor .onion hidden service, enabling fully anonymous real-time communication without relying on any centralised platform. All traffic is routed through Tor's SOCKS5 proxy, meaning neither the server nor the clients ever reveal real IP addresses.

Built and tested across three environments: WSL (Windows Subsystem for Linux), Kali Linux VM, and Android (via Termux + tmux).


Features

  • Full anonymity — Tor .onion address; no DNS, no real IPs exposed
  • Privacy-by-design — no metadata, no phone numbers, no registration requirements
  • Zero centralised infrastructure — self-hosted, self-contained
  • Multi-platform — runs on Linux, WSL, and Android
  • Containerised — Docker-based deployment for portability and reproducibility
  • Verified traffic integrity — SOCKS5 routing validated with tcpdump and torsocks
  • Multiple clients — WeeChat (terminal) and HexChat (GUI) both supported

Architecture

[Client: WeeChat / HexChat]
        │
        │  SOCKS5 (127.0.0.1:9050)
        ▼
[Tor Client (local)]
        │
        │  Tor network (3-hop circuit)
        ▼
[Tor Hidden Service (.onion)]
        │
        │  localhost:6667
        ▼
[InspIRCd Server]
        │
        └── Channels, nicks, messages (no logs)

See ARCHITECTURE.svg for the full visual diagram.

Overview Diagram

IRC Server Tor Network Overview

---

Prerequisites

Tool Purpose
Docker & Docker Compose Container orchestration
Tor Onion routing daemon
InspIRCd IRC server (runs inside Docker)
WeeChat or HexChat IRC clients
tcpdump Traffic validation
torsocks Force-proxy CLI tools through Tor

Deployment

1. Clone the repository

git clone https://github.com/yourname/anon-irc
cd anon-irc

2. Start the stack

docker compose up -d

This brings up:

  • inspircd — the IRC server, bound to 127.0.0.1:6667
  • tor — the hidden service proxy, creating a .onion address

3. Get your .onion address

docker exec tor-container cat /var/lib/tor/irc_hidden_service/hostname

Save this address — it's the only way to reach your server.

4. Connect with WeeChat

/server add anonnet <your-onion>.onion/6667
/set irc.server.anonnet.proxy "tor"
/proxy add tor socks5 127.0.0.1 9050
/connect anonnet

5. Connect with HexChat

  1. Open Network List → Add network
  2. Server: <your-onion>.onion/6667
  3. Under Proxy: SOCKS5, host 127.0.0.1, port 9050
  4. Connect

Android Setup (Termux)

# Install dependencies
pkg install tor tmate tmux weechat

# Start Tor
tor &

# Start WeeChat in a persistent tmux session
tmux new -s irc
weechat

Configure WeeChat identically to the desktop setup, using the same SOCKS5 proxy settings.


Traffic Validation

Verify that no unproxied traffic leaks outside Tor:

# Watch all IRC-related traffic — should show only Tor localhost traffic
sudo tcpdump -i any port 6667 -n

# Confirm torsocks routes correctly
torsocks nc <your-onion>.onion 6667

If tcpdump shows any traffic to a non-loopback address besides Tor's 127.0.0.1:9050, there is a proxy leak — do not use the connection until resolved.


Docker Compose Structure

services:
  inspircd:
    image: inspircd/inspircd-docker
    volumes:
      - ./inspircd.conf:/inspircd/conf/inspircd.conf
    network_mode: host          # binds to 127.0.0.1 only

  tor:
    image: torproject/tor
    volumes:
      - ./torrc:/etc/tor/torrc
      - tor-data:/var/lib/tor
    network_mode: host

volumes:
  tor-data:

Privacy Design Principles

This project was built with the following guarantees:

  • No metadata — InspIRCd is configured with logging disabled
  • No real IPs — hidden service means the server's IP is never exposed; SOCKS5 means the client's IP is never sent
  • No registration — no email, no phone number, no account
  • No persistence — channel history is not stored; messages exist only in transit
  • Isolation — each Docker container has the minimum required network exposure

Tested Environments

Platform Client Status
WSL2 (Ubuntu) WeeChat ✅ Verified
Kali Linux VM HexChat + WeeChat ✅ Verified
Android (Termux) WeeChat in tmux ✅ Verified

Limitations & Caveats

  • Tor latency — expect ~1–3s message delays due to onion routing
  • No TLS inside Tor — traffic between InspIRCd and the Tor hidden service is local loopback; Tor itself provides encryption over the network
  • Single point of failure — if the host running InspIRCd goes down, the service is unavailable (no federation)
  • Android stability — Termux background processes may be killed by the OS; use termux-wake-lock to prevent this

Security Considerations

  • Keep your .onion address private if you want a closed group
  • Rotate .onion addresses periodically by deleting /var/lib/tor/irc_hidden_service/ and restarting Tor
  • Do not share the Docker host's real IP or hostname in any IRC channel
  • Consider running the server on a VPS you access only over Tor

Project Timeline

Month Milestone
Aug 2024 Initial InspIRCd deployment + Tor hidden service setup
Aug 2024 WeeChat + HexChat SOCKS5 client configuration
Aug 2024 Traffic validation with tcpdump + torsocks
Sep 2024 Docker containerisation of full stack
Sep 2024 Android (Termux + tmux) client verified

License

MIT — do whatever you want, but remember that anonymity tools carry responsibility. Use ethically.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors