Proof of concept mechanical port of ircnet/ircd to Rust as part of a bit about C being insecure for network services
1# Legacy C ircd config that links to the leveva instance in simple.kdl.
2#
3# Run with: ircd -f leveva/examples/ircd.conf
4# (paths/ports assume leveva is up first, listening for servers on :6067.)
5#
6# This server is "hub.example.net" (SID 001A); leveva is "irc.example.net"
7# (SID 0ABC). The C-line below auto-connects out to leveva on :6067; the
8# matching connect block on the leveva side lives in simple.kdl.
9#
10# Reminder: ircd reads this file UPSIDE-DOWN, so same-typed lines that must
11# be ordered should be listed in reverse. The lines here don't depend on order.
12
13# M: this server's identity.
14# M|<name>|<bind IP>|<location>|<client port>|<SID>|<split servers>|<split users>|
15M|hub.example.net||Leveva link test hub, Planet Earth|6668|001A|0|0|
16
17# A: administrative contact (shown by /ADMIN).
18A|Leveva Test|Daemon <ircd@hub.example.net>|Link test hub||ExampleNet|
19
20# P: listening ports. 6668 for local clients on this C server.
21P||||6668||
22
23# Y: connection classes.
24# Server class 2 (ping 90s, connect-retry 300s, 1 link, 8MB sendq).
25Y|2|90|300|1|8000000||
26# Client class 10.
27Y|10|90||100|512000|10.2|32.2|
28
29# I: client authorisation — allow loopback clients in class 10.
30I|*@*||*@*||10||
31
32# c/C + N: the link to leveva. These MUST be used as a pair.
33#
34# C-line: actively connect to leveva at 127.0.0.1:6067, in class 2. The
35# password "hubpass" is what we SEND; it must equal leveva's accept-password.
36# N-line: accept leveva's inbound auth. The password "levevapass" is what we
37# EXPECT to receive; it must equal leveva's send-password. Domain mask 1.
38C|127.0.0.1|hubpass|irc.example.net|6067|2||
39N|127.0.0.1|levevapass|irc.example.net|1|2||
40
41# H: permit leveva to act as a hub (introduce servers behind it). Empty SID
42# mask = allow any SID.
43H|*||irc.example.net||