Skip to content

Instantly share code, notes, and snippets.

@miblodelcarpio
Last active June 14, 2025 16:54
Show Gist options
  • Save miblodelcarpio/20da48bcdfb55c0860c44fd42d1b9647 to your computer and use it in GitHub Desktop.
Save miblodelcarpio/20da48bcdfb55c0860c44fd42d1b9647 to your computer and use it in GitHub Desktop.
WeeChat Relay Setup
weechat (v4.0.0+)
Relevant Release Note: https://weechat.org/files/doc/weechat/ReleaseNotes-4.0.0.html#v4.0.0_tls
Relay setup
On the server's instance of weechat:
/relay add tls.irc 8001
/secure set relay WHATEVER_PASSWORD
/set relay.network.password "${sec.data.relay}"
On the server, to generate the SSL/TLS certificate:
mkdir -p ~/.weechat/ssl
cd ~/.weechat/ssl
openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out relay.pem
On the client's instance of weechat:
/secure set relay WHATEVER_PASSWORD (same as on the server)
/server add libera.chat 192.168.1.71/8001 -autoconnect
/set irc.server.libera.chat.password "libera.chat:${sec.data.relay}"
└─────────┘ Corresponding to an IRC server name
configured on the server's instance
/set irc.server_default.capabilities "server-time"
@lokesh-krishna
Copy link

Thank you so, so much for this!

@nm0i
Copy link

nm0i commented Feb 24, 2023

Gah! Thankyou a lot.

@DogeWithDependencies
Copy link

btw for newer weechat versions instead of /relay add ssl.irc 8001 use /relay add tls.irc 8001
More here: https://weechat.org/files/doc/weechat/ReleaseNotes-4.0.1.html

@miblodelcarpio
Copy link
Author

Cheers, @DogeWithDependencies, updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment