InspIRCd IRC Server With TLS
InspIRCd IRC Server With TLS
This note records a minimal InspIRCd configuration for
running a small IRC server with TLS support. The example exposes a plain
client port on 6667 and a TLS client port on
6697.
The TLS setup uses the ssl_gnutls module and certificate
files stored under /etc/inspircd/cert/.
Requirements
Install InspIRCd and make sure the GnuTLS SSL module is available:
1 | sudo pacman -S inspircd |
On Debian/Ubuntu-style systems, the package name may differ:
1 | sudo apt install inspircd |
You also need a certificate and private key. For a public domain, use Let's Encrypt or another ACME client. The config below expects:
1 | /etc/inspircd/cert/fullchain.pem |
TLS Configuration
Add or adapt the following server, module, TLS profile, bind, admin, class, type, and oper blocks in your InspIRCd config.
Do not publish a real oper password. Generate a strong password or use InspIRCd's password hashing support if available in your setup.
1 | <server |
Check The Config
Before restarting the service, run InspIRCd's config test if your package provides it:
1 | sudo inspircd --configtest |
If your package uses a different wrapper, check the service logs after restart:
1 | sudo systemctl restart inspircd |
Connect
Plain IRC:
1 | server: irc.example.com |
TLS IRC:
1 | server: irc.example.com |
With WeeChat:
1 | /server add examplenet irc.example.com/6697 -ssl |
With irssi:
1 | /connect -ssl irc.example.com 6697 |
Oper Login
After connecting as a normal user, authenticate as an IRC operator:
1 | /OPER admin <password> |
If login succeeds, the user receives the privileges from the
configured NetAdmin type.
Notes
- Use port
6697for TLS clients. This is the common IRC-over-TLS port. - Keep
6667only if you intentionally want to allow plaintext clients. - Restrict
host="*@*"for real deployments. A narrower host mask is safer. - Avoid committing real passwords into blog posts, git repositories, or public config examples.
- Prefer hashed oper passwords if your InspIRCd version and modules support them.