2023-04-18 23:56:59 -05:00
|
|
|
# Includes
|
|
|
|
<config format="xml">
|
2022-12-18 22:18:43 -06:00
|
|
|
<include file="/etc/inspircd/opers.conf">
|
|
|
|
<include file="/etc/inspircd/links.conf">
|
|
|
|
<include file="/etc/inspircd/modules.conf">
|
|
|
|
<files motd="/etc/inspircd/motd.txt" rules="/etc/inspircd/rules.txt">
|
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
# Server Definition
|
2022-12-18 22:18:43 -06:00
|
|
|
<server
|
2023-04-18 23:56:59 -05:00
|
|
|
name="{{ external_domain }}"
|
|
|
|
description="{{ organization['displayname'] }}/IRC"
|
|
|
|
network="{{ organization['displayname'] }}/IRC">
|
2022-12-18 22:18:43 -06:00
|
|
|
<admin
|
2023-04-18 23:56:59 -05:00
|
|
|
name="{{ organization['admin'] }}"
|
|
|
|
nick="{{ organization['admin'] }}"
|
|
|
|
email="{{ organization['email'] }}">
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
# Connection Information
|
2022-12-18 22:18:43 -06:00
|
|
|
<define name="subnetips" value="10.0.1.0/24">
|
|
|
|
<define name="localhost" value="127.0.0.1/32">
|
2023-04-18 23:56:59 -05:00
|
|
|
<cidr
|
|
|
|
ipv4clone="32"
|
|
|
|
ipv6clone="128">
|
2022-12-18 22:18:43 -06:00
|
|
|
|
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
# Plaintext on local only for bots and servers
|
2022-12-18 22:18:43 -06:00
|
|
|
<bind address="" port="8067" type="servers">
|
2023-04-18 23:56:59 -05:00
|
|
|
<bind address="" port="6667" type="clients">
|
2022-12-18 22:18:43 -06:00
|
|
|
<connect
|
2023-04-18 23:56:59 -05:00
|
|
|
name="local"
|
|
|
|
parent="main"
|
|
|
|
allow="127.0.0.1"
|
|
|
|
localmax="20"
|
|
|
|
globalmax="20"
|
|
|
|
limit="20"
|
|
|
|
requiressl="off"
|
|
|
|
modes="+Bwx"
|
|
|
|
threshold="200"
|
|
|
|
port="6667">
|
|
|
|
|
|
|
|
# SSL for external connections
|
|
|
|
<bind
|
|
|
|
address=""
|
|
|
|
port="6697"
|
|
|
|
sslprofile="clients"
|
|
|
|
type="clients">
|
2022-12-18 22:18:43 -06:00
|
|
|
<connect
|
2023-04-18 23:56:59 -05:00
|
|
|
name="main"
|
|
|
|
allow="*"
|
|
|
|
commandrate="1000"
|
|
|
|
fakelag="on"
|
|
|
|
globalmax="500"
|
|
|
|
hardsendq="1M"
|
|
|
|
limit="500"
|
|
|
|
localmax="500"
|
|
|
|
maxconnwarn="on"
|
|
|
|
modes="+wx"
|
|
|
|
pingfreq="120"
|
|
|
|
port="6697"
|
|
|
|
recvq="8192"
|
2023-05-02 17:32:11 -05:00
|
|
|
requiressl="off"
|
2023-04-18 23:56:59 -05:00
|
|
|
resolvehostnames="on"
|
|
|
|
softsendq="8192"
|
|
|
|
threshold="25"
|
|
|
|
timeout="10"
|
|
|
|
useident="no">
|
|
|
|
<sslprofile
|
|
|
|
name="clients"
|
|
|
|
provider="openssl"
|
2023-10-08 12:28:14 -05:00
|
|
|
cafile="/etc/letsencrypt/live/{{ ssl['identity'] }}/chain.pem"
|
|
|
|
certfile="/etc/letsencrypt/live/{{ ssl['identity'] }}/fullchain.pem"
|
|
|
|
keyfile="/etc/letsencrypt/live/{{ ssl['identity'] }}/privkey.pem"
|
2023-04-18 23:56:59 -05:00
|
|
|
ciphers="{{ ssl['ciphersuite'] }}"
|
|
|
|
hash="sha256"
|
|
|
|
renegotiation="no"
|
|
|
|
requestclientcert="no"
|
|
|
|
sslv3="no"
|
|
|
|
tlsv1="no"
|
|
|
|
tlsv11="no"
|
|
|
|
tlsv12="yes"
|
|
|
|
tlsv13="yes">
|
|
|
|
<openssl onrehash="yes">
|
2022-12-18 22:18:43 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
# Performance
|
|
|
|
<performance
|
|
|
|
netbuffersize="10240"
|
|
|
|
somaxconn="128"
|
|
|
|
limitsomaxconn="true"
|
|
|
|
softlimit="1024"
|
|
|
|
quietbursts="yes">
|
|
|
|
<log method="file" type="* -USERINPUT -USEROUTPUT" level="default" target="/var/log/inspircd/inspircd.log" flush="1">
|
2022-12-18 22:18:43 -06:00
|
|
|
<pid file="/var/lib/inspircd/inspircd.pid">
|
|
|
|
<options
|
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
prefixquit="Quit: "
|
|
|
|
suffixquit=""
|
|
|
|
prefixpart="""
|
|
|
|
suffixpart="""
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
syntaxhints="no"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
cyclehosts="no"
|
|
|
|
cyclehostsfromuser="no"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
ircumsgprefix="no"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
announcets="yes"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
allowmismatch="no"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
defaultbind="auto"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
hostintopic="yes"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
pingwarning="15"
|
|
|
|
serverpingfreq="60"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
defaultmodes="not"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
moronbanner="You're banned! Contact {{ organization['email'] }} with the ERROR line below for help."
|
|
|
|
exemptchanops="nonick:v flood:o"
|
|
|
|
invitebypassmodes="yes"
|
|
|
|
nosnoticestack="no"
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
welcomenotice="yes">
|
2022-12-18 22:18:43 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
# Security and Controls
|
2022-12-18 22:18:43 -06:00
|
|
|
<security
|
2023-04-18 23:56:59 -05:00
|
|
|
announceinvites="dynamic"
|
|
|
|
hidemodes="eI"
|
|
|
|
hideulines="no"
|
|
|
|
flatlinks="no"
|
|
|
|
hidewhois=""
|
|
|
|
hidebans="no"
|
|
|
|
hidekills=""
|
|
|
|
hidesplits="yes"
|
|
|
|
maxtargets="20"
|
|
|
|
customversion=""
|
|
|
|
operspywhois="yes"
|
|
|
|
restrictbannedusers="yes"
|
|
|
|
genericoper="no"
|
|
|
|
userstats="Pu">
|
2022-12-18 22:18:43 -06:00
|
|
|
<limits
|
2023-04-18 23:56:59 -05:00
|
|
|
maxnick="12"
|
|
|
|
maxchan="20"
|
|
|
|
maxmodes="20"
|
|
|
|
maxident="64"
|
|
|
|
maxquit="255"
|
|
|
|
maxtopic="307"
|
|
|
|
maxkick="255"
|
|
|
|
maxgecos="128"
|
|
|
|
maxaway="200">
|
|
|
|
<channels users="20" opers="60">
|
|
|
|
<maxlist chan="*" limit="60">
|
2022-12-18 22:18:43 -06:00
|
|
|
<whowas
|
2023-04-18 23:56:59 -05:00
|
|
|
groupsize="10"
|
|
|
|
maxgroups="100000"
|
|
|
|
maxkeep="1d">
|
2022-12-18 22:18:43 -06:00
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
# Ban options
|
2022-12-18 22:18:43 -06:00
|
|
|
<badnick nick="*Serv" reason="Reserved for Services">
|
|
|
|
<badhost host="*@*malware*" reason="Malware">
|
|
|
|
<badhost host="root@*" reason="Don't IRC as root!">
|
|
|
|
<exception host="{{ organization['admin'] }}@localhost" reason="localhost">
|
|
|
|
<exception host="{{ organization['admin'] }}@127.0.0.1" reason="localhost">
|
|
|
|
<exception host="{{ organization['admin'] }}@{{ external_domain }}" reason="localhost">
|
|
|
|
<exception host="{{ organization['admin'] }}@*.{{ external_domain }}" reason="localhost">
|
|
|
|
<insane
|
2023-04-18 23:56:59 -05:00
|
|
|
hostmasks="no"
|
|
|
|
ipmasks="no"
|
|
|
|
nickmasks="no"
|
|
|
|
trigger="99">
|