2020-03-19 13:16:39 +00:00
|
|
|
soju(1)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
soju - IRC bouncer
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
*soju* [options...]
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
soju is a user-friendly IRC bouncer. It connects to upstream IRC servers on
|
|
|
|
behalf of the user to provide extra features.
|
|
|
|
|
|
|
|
- Multiple separate users sharing the same bouncer, each with their own
|
|
|
|
upstream servers
|
|
|
|
- Clients connecting to multiple upstream servers via a single connection to
|
|
|
|
the bouncer
|
|
|
|
- Sending the backlog (messages received while the user was disconnected from
|
|
|
|
the bouncer), with per-client buffers
|
|
|
|
|
|
|
|
When joining a channel, the channel will be saved and automatically joined on
|
|
|
|
the next connection. When registering or authenticating with NickServ, the
|
|
|
|
credentials will be saved and automatically used on the next connection if the
|
2020-04-28 13:27:41 +00:00
|
|
|
server supports SASL. When parting a channel with the reason "detach", the
|
|
|
|
channel will be detached instead of being left.
|
2020-03-19 13:16:39 +00:00
|
|
|
|
2020-04-03 15:25:53 +00:00
|
|
|
When all clients are disconnected from the bouncer, the user is automatically
|
|
|
|
marked as away.
|
|
|
|
|
2020-03-19 13:16:39 +00:00
|
|
|
soju supports two connection modes:
|
|
|
|
|
|
|
|
- Single upstream mode: one downstream connection maps to one upstream
|
|
|
|
connection. To enable this mode, connect to the bouncer with the username
|
|
|
|
"<username>/<network>". If the bouncer isn't connected to the upstream
|
|
|
|
server, it will get automatically added. Then channels can be joined and
|
|
|
|
parted as if you were directly connected to the upstream server.
|
|
|
|
- Multiple upstream mode: one downstream connection maps to multiple upstream
|
|
|
|
connections. Channels and nicks are suffixed with the network name. To join
|
|
|
|
a channel, you need to use the suffix too: _/join #channel/network_. Same
|
|
|
|
applies to messages sent to users.
|
|
|
|
|
2020-03-31 17:02:02 +00:00
|
|
|
For per-client history to work, clients need to indicate their name. This can
|
|
|
|
be done by adding a "@<client>" suffix to the username.
|
|
|
|
|
2020-03-19 13:16:39 +00:00
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
*-h, -help*
|
|
|
|
Show help message and quit.
|
|
|
|
|
|
|
|
*-config* <path>
|
2020-04-16 16:54:47 +00:00
|
|
|
Path to the config file. If unset, a default config file is used.
|
2020-03-19 13:16:39 +00:00
|
|
|
|
|
|
|
*-debug*
|
|
|
|
Enable debug logging (this will leak sensitive information such as
|
|
|
|
passwords).
|
|
|
|
|
|
|
|
*-listen* <address>
|
|
|
|
Listening address (default: ":6667").
|
|
|
|
|
|
|
|
# CONFIG FILE
|
|
|
|
|
|
|
|
The config file has one directive per line.
|
|
|
|
|
|
|
|
*listen* <address>
|
|
|
|
Listening address (default: ":6667").
|
|
|
|
|
|
|
|
*hostname* <name>
|
|
|
|
Server hostname (default: system hostname).
|
|
|
|
|
|
|
|
*tls* <cert> <key>
|
|
|
|
Enable TLS support. The certificate and the key files must be PEM-encoded.
|
|
|
|
|
|
|
|
*sql* <driver> <source>
|
2020-04-10 20:37:14 +00:00
|
|
|
Set the SQL driver settings. The only supported driver is "sqlite3". The
|
2020-04-16 16:54:47 +00:00
|
|
|
source is the path to the SQLite database file. By default, the path to the
|
|
|
|
database file is "soju.db".
|
2020-03-19 13:16:39 +00:00
|
|
|
|
2020-03-25 22:51:28 +00:00
|
|
|
*log* <path>
|
2020-04-16 16:54:47 +00:00
|
|
|
Path to the bouncer logs root directory, or empty to disable logging. By
|
|
|
|
default, logging is disabled.
|
2020-03-25 22:51:28 +00:00
|
|
|
|
2020-03-19 13:16:39 +00:00
|
|
|
# IRC SERVICE
|
|
|
|
|
2020-03-25 19:58:07 +00:00
|
|
|
soju exposes an IRC service called *BouncerServ* to manage the bouncer.
|
|
|
|
Commands can be sent via regular private messages
|
|
|
|
(_/msg BouncerServ <command> [args...]_). Commands may be written in full or
|
|
|
|
abbreviated form, for instance *network* can be abbreviated as *net* or just
|
|
|
|
*n*.
|
2020-03-19 13:16:39 +00:00
|
|
|
|
|
|
|
*help* [command]
|
|
|
|
Show a list of commands. If _command_ is specified, show a help message for
|
|
|
|
the command.
|
|
|
|
|
2020-03-25 19:58:07 +00:00
|
|
|
*network create* *-addr* <addr> [options...]
|
2020-04-27 16:02:33 +00:00
|
|
|
Connect to a new network at _addr_. _-addr_ is mandatory.
|
|
|
|
|
|
|
|
_addr_ supports several connection types:
|
|
|
|
- _[ircs://]host[:port]_ connects with TLS over TCP
|
2020-04-27 16:05:28 +00:00
|
|
|
- _irc+insecure://host[:port]_ connects with plain-text TCP
|
2020-04-27 16:02:33 +00:00
|
|
|
|
|
|
|
Other options are:
|
2020-03-19 13:16:39 +00:00
|
|
|
|
|
|
|
*-name* <name>
|
|
|
|
Short network name. This will be used instead of _addr_ to refer to the
|
|
|
|
network.
|
|
|
|
|
|
|
|
*-username* <username>
|
|
|
|
Connect with the specified username. By default, the nickname is used.
|
|
|
|
|
|
|
|
*-pass* <pass>
|
|
|
|
Connect with the specified server password.
|
|
|
|
|
|
|
|
*-realname* <realname>
|
|
|
|
Connect with the specified real name. By default, the nickname is used.
|
|
|
|
|
|
|
|
*-nick* <nickname>
|
|
|
|
Connect with the specified nickname. By default, the account's username
|
|
|
|
is used.
|
|
|
|
|
2020-05-29 11:10:54 +00:00
|
|
|
*certfp generate* *[options...]* <network name>
|
|
|
|
Generate self-signed certificate and use it for authentication.
|
|
|
|
|
|
|
|
Generates RSA-3072 private key by default.
|
|
|
|
|
|
|
|
Options are:
|
|
|
|
|
|
|
|
*-key-type* <type>
|
|
|
|
Private key algoritm to use. Valid values are: rsa, ecdsa, ed25519.
|
|
|
|
ecdsa uses NIST P-521 curve.
|
|
|
|
|
|
|
|
*-bits* <bits>
|
|
|
|
Size of RSA key to generate. Ignored for other key types.
|
|
|
|
|
|
|
|
*certfp fingerprint* <network name>
|
|
|
|
Show SHA-1 and SHA-256 fingerprints for the certificate
|
|
|
|
currently used with the network.
|
|
|
|
|
|
|
|
*certfp reset* <network name>
|
|
|
|
Disable SASL EXTERNAL authentication and remove stored certificate.
|
|
|
|
|
2020-04-01 15:38:09 +00:00
|
|
|
*network delete* <name>
|
|
|
|
Disconnect and delete a network.
|
|
|
|
|
2020-03-25 21:57:48 +00:00
|
|
|
*network status*
|
|
|
|
Show a list of saved networks and their current status.
|
|
|
|
|
2020-03-19 13:16:39 +00:00
|
|
|
# AUTHORS
|
|
|
|
|
|
|
|
Maintained by Simon Ser <contact@emersion.fr>, who is assisted by other
|
2020-03-19 13:18:31 +00:00
|
|
|
open-source contributors. For more information about soju development, see
|
2020-03-19 13:16:39 +00:00
|
|
|
https://git.sr.ht/~emersion/soju.
|