2014-05-11 16:18:55 +00:00
|
|
|
goircd -- minimalistic simple Internet Relay Chat (IRC) server
|
|
|
|
==============================================================
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
|
2014-05-11 16:20:29 +00:00
|
|
|
goircd is very simple IRC server, written on Go.
|
2015-11-14 15:54:34 +00:00
|
|
|
It was heavily inspired by miniircd daemon written on Python.
|
2016-09-25 03:27:29 +00:00
|
|
|
goircd is free software: see the file COPYING for copying conditions.
|
2014-05-11 16:20:29 +00:00
|
|
|
It does not aim to replace full featured mass scalable IRC networks:
|
2014-05-11 16:18:55 +00:00
|
|
|
|
|
|
|
* It can not connect to other servers. Just standalone installation
|
|
|
|
* It has few basic IRC commands
|
2020-11-06 17:10:06 +00:00
|
|
|
* There is no support for channel operators, many modes, votes, invites
|
2015-10-18 20:07:57 +00:00
|
|
|
* No ident lookups
|
2014-05-11 16:18:55 +00:00
|
|
|
|
|
|
|
But it has some convincing features:
|
|
|
|
|
|
|
|
* Only standard Go libraries, no external requirements
|
|
|
|
* Single executable binary
|
|
|
|
* No configuration file, just few command line arguments
|
|
|
|
* IPv6 out-of-box support
|
2020-11-06 17:10:06 +00:00
|
|
|
* Ability to additionally listen on TLS-capable ports
|
|
|
|
* Optional channels logging to plain text files
|
2014-05-11 16:18:55 +00:00
|
|
|
* Optional permanent channel's state saving in plain text files
|
|
|
|
(so you can reload daemon and all channels topics and keys won't
|
|
|
|
disappear)
|
2015-05-09 15:27:06 +00:00
|
|
|
* Optional ability to authenticate users by nickname and password
|
2014-05-11 16:18:55 +00:00
|
|
|
|
|
|
|
Some remarks and recommendations related to it's simplicity:
|
|
|
|
|
2020-11-06 17:10:06 +00:00
|
|
|
* Use daemontools to daemonize, setuid/gid it
|
|
|
|
* Just plaintext logging to stdout, without syslog support -- use
|
|
|
|
daemontool's multilog
|
2014-05-11 16:18:55 +00:00
|
|
|
|
|
|
|
SUPPORTED IRC COMMANDS
|
|
|
|
|
2014-08-14 10:01:54 +00:00
|
|
|
* PASS/NICK/USER during registration workflow
|
2014-05-11 16:18:55 +00:00
|
|
|
* PING/PONGs
|
2015-11-14 15:54:34 +00:00
|
|
|
* NOTICE/PRIVMSG, ISON
|
2020-11-06 17:10:06 +00:00
|
|
|
* AWAY, MOTD, LUSERS, NAMES, WHO, WHOIS, VERSION, WALLOPS, QUIT
|
2014-05-11 16:18:55 +00:00
|
|
|
* LIST, JOIN, TOPIC, +k/-k channel MODE
|
|
|
|
|
|
|
|
USAGE
|
|
|
|
|
|
|
|
Just execute goircd daemon. It has following optional arguments:
|
|
|
|
|
2020-11-06 17:10:06 +00:00
|
|
|
-hostname: hostname to show for client's connections
|
|
|
|
-bind: address to bind to (:6667 by default)
|
|
|
|
-cloak: cloak user's host with the given hostname
|
|
|
|
-motd: absolute path to MOTD file. It is reread every time
|
|
|
|
MOTD is requested
|
|
|
|
-logdir: directory where all channels messages will be saved. If
|
|
|
|
omitted, then no logs will be kept
|
|
|
|
-statedir: directory where all channels states will be saved and
|
|
|
|
loaded during startup. If omitted, then states will be
|
|
|
|
lost after daemon termination
|
|
|
|
-tlsbind: enable TLS, specify address to listen on and path
|
|
|
|
-tlspem: to PEM file with certificate and private key
|
|
|
|
-passwd: enable client authentication and specify path to
|
|
|
|
passwords file
|
|
|
|
-timestamped: enabled timestamps for stderr messages
|
|
|
|
-verbose: increase verbosity
|
|
|
|
-debug: also show traffic messages
|
|
|
|
-perm-state-dir: permission (before umask) for newly created state directory
|
|
|
|
-perm-state-file: permission (before umask) for newly created state file
|
|
|
|
-perm-log-file: permission (before umask) for newly created log file
|
2014-05-11 16:18:55 +00:00
|
|
|
|
2014-08-14 14:46:21 +00:00
|
|
|
TLS
|
|
|
|
|
|
|
|
If you specify -bind and -tlsbind simultaneously, then you will have
|
|
|
|
both raw and encrypted listening sockets. You can use -bind "" to
|
|
|
|
disable raw socket.
|
|
|
|
|
2014-08-14 10:01:54 +00:00
|
|
|
AUTHENTICATION
|
|
|
|
|
|
|
|
You can turn on optional client authentication by preparing passwords
|
|
|
|
file and using the -passwords argument. Format of passwords file is:
|
|
|
|
|
2020-11-06 17:10:06 +00:00
|
|
|
login1:hex(sha256(password1))\n
|
|
|
|
login2:hex(sha256(password2))\n
|
2015-10-06 08:00:32 +00:00
|
|
|
...
|
2014-08-14 10:01:54 +00:00
|
|
|
|
2020-11-06 17:10:06 +00:00
|
|
|
You can get hashed password value using: echo -n password | sha256
|
|
|
|
|
2015-10-06 08:35:48 +00:00
|
|
|
LOG FILES
|
|
|
|
|
|
|
|
Log files are not opened all the time, but only during each message
|
|
|
|
saving. That is why you can safely rename them for rotation purposes.
|
|
|
|
|
|
|
|
STATE FILES
|
|
|
|
|
2020-11-06 17:10:06 +00:00
|
|
|
Room's state is created/saved when either topic or key is set. State is
|
|
|
|
a directory (room's name) with "topic" and "key" plaintext files.
|
2015-10-06 08:35:48 +00:00
|
|
|
|
2014-05-11 16:18:55 +00:00
|
|
|
LICENCE
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2019-09-27 08:32:53 +00:00
|
|
|
the Free Software Foundation, version 3 of the License.
|
2014-05-11 16:18:55 +00:00
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|