Routing: Difference between revisions
From Buzznet
Line 16: | Line 16: | ||
=== Step 3: Preparing Your Configuration=== | === Step 3: Preparing Your Configuration=== | ||
Suggested server setup | |||
Cloak keys for your conf below: | |||
<pre> | |||
/* Buzznet uses "cloak_md5" module. */ | |||
set { | |||
cloak-keys { | |||
"d86PVocPMhCm8YcLs46Yb8FiCF1wC50x1VvutFBviIAitqb0g034M"; | |||
"Qh3262E4uJOM2Aj210EC2gawF5llEA65mRK3cSctNOv4p610AJhX067KY5Xg"; | |||
"240TUBv13ce2ANwm2cki1Rj80p8OAdqR64HWeDh8h38kTQkEWRXJ7"; | |||
} | |||
} | |||
</pre> | |||
'''Note: If you are not a hub, make sure to edit your servers class as follows, so you don't connect to more than one hub at a time: ''' | |||
/* Server class with good defaults */ | |||
class servers | |||
{ | |||
pingfreq 60; | |||
connfreq 15; /* try to connect every 15 seconds */ | |||
'''maxclients 1;''' /* max servers */ | |||
sendq 20M; | |||
} | |||
== Suggested leaf setup == | |||
If you're running a leaf server you might be interested in these instructions: | |||
# Create a separate <code>hubs</code> class with <code>maxclients</code> set to 1. | |||
# Add all the hubs from further down the page to your config. Make sure their <code>link</code> blocks use the <code>hubs</code> class. | |||
# Enable autoconnect for the hubs that are geographically closest to you by adding <code>autoconnect;</code> to the <code>options { tls; }</code> block. | |||
# Profit. | |||
A <code>hubs</code> <code>class</code> block would look like this: | |||
class hubs { | |||
pingfreq 60; | |||
connfreq 60; | |||
'''maxclients 1;''' | |||
sendq 20M; | |||
} | |||
An '''autoconnect''' hub <code>link</code> block would look like this: | |||
link irc.buzznet.ovh { | |||
incoming { | |||
mask *; | |||
} | |||
outgoing { | |||
hostname irc.buzznet.ovh; | |||
port 6900; | |||
options { tls; autoconnect; } | |||
} | |||
password "awesome.base64.fingerprint" { spkifp; } | |||
'''class hubs;''' | |||
} | |||
== Suggested server setup == | |||
UnrealIRCd by default does not send a fake quit/join for "Changing host" when a ip/spoof/cloak/vhost/whatever is changed. This can be an issue for some clients and bots. This setting will only send the fake quit/join to clients on your server that do not support CHGHOST. This setting will not override CHGHOST. NOTE: UnrealIRCd uses PART instead of QUIT. | UnrealIRCd by default does not send a fake quit/join for "Changing host" when a ip/spoof/cloak/vhost/whatever is changed. This can be an issue for some clients and bots. This setting will only send the fake quit/join to clients on your server that do not support CHGHOST. This setting will not override CHGHOST. NOTE: UnrealIRCd uses PART instead of QUIT. | ||
<pre> | |||
/* Server specific configuration */ | /* Server specific configuration */ | ||
set { | set { | ||
allow-userhost-change force-rejoin; | allow-userhost-change force-rejoin; | ||
} | } | ||
</pre> | |||
=== Step 4: Blank=== | === Step 4: Blank=== | ||
=== Step 5: Blank=== | === Step 5: Blank=== |
Revision as of 19:36, 3 April 2025
Step 1: Preparing your system
- you will need a few tools, like:
wget
,libssl-dev
, etc. - On Ubuntu, Debian and the like, you can install these with
apt install wget build-essential python3 libssl-dev
- It is usually a good idea to run UnrealIRCd on it's own user. You can create a
ircd
user withadduser ircd
- Switch to the new ircd user with
su ircd
Step 2: Downloading and building the IRCd
We will download Unrealircd
- Get the IRCD source code with
wget --trust-server-names https://www.unrealircd.org/downloads/unrealircd-latest.tar.gz
- Configure it for compilation with
./Config
- The script will ask you a few questions. It is recommended to pick the defaults for everything, so you can just hit enter on every question.
- After you finish configuring, you can now compile and install UnrealIRCd with
make && make install
Step 3: Preparing Your Configuration
Cloak keys for your conf below:
/* Buzznet uses "cloak_md5" module. */ set { cloak-keys { "d86PVocPMhCm8YcLs46Yb8FiCF1wC50x1VvutFBviIAitqb0g034M"; "Qh3262E4uJOM2Aj210EC2gawF5llEA65mRK3cSctNOv4p610AJhX067KY5Xg"; "240TUBv13ce2ANwm2cki1Rj80p8OAdqR64HWeDh8h38kTQkEWRXJ7"; } }
Note: If you are not a hub, make sure to edit your servers class as follows, so you don't connect to more than one hub at a time:
/* Server class with good defaults */ class servers { pingfreq 60; connfreq 15; /* try to connect every 15 seconds */ maxclients 1; /* max servers */ sendq 20M; }
Suggested leaf setup
If you're running a leaf server you might be interested in these instructions:
- Create a separate
hubs
class withmaxclients
set to 1. - Add all the hubs from further down the page to your config. Make sure their
link
blocks use thehubs
class. - Enable autoconnect for the hubs that are geographically closest to you by adding
autoconnect;
to theoptions { tls; }
block. - Profit.
A hubs
class
block would look like this:
class hubs { pingfreq 60; connfreq 60; maxclients 1; sendq 20M; }
An autoconnect hub link
block would look like this:
link irc.buzznet.ovh { incoming { mask *; } outgoing { hostname irc.buzznet.ovh; port 6900; options { tls; autoconnect; } } password "awesome.base64.fingerprint" { spkifp; } class hubs; }
Suggested server setup
UnrealIRCd by default does not send a fake quit/join for "Changing host" when a ip/spoof/cloak/vhost/whatever is changed. This can be an issue for some clients and bots. This setting will only send the fake quit/join to clients on your server that do not support CHGHOST. This setting will not override CHGHOST. NOTE: UnrealIRCd uses PART instead of QUIT.
/* Server specific configuration */ set { allow-userhost-change force-rejoin; }