2020-11-28 19:25:17 +01:00
|
|
|
#-#-#-#-#-#-#-#-#-#-#-#- PORT CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#-
|
|
|
|
# #
|
|
|
|
# Configure the port and address bindings for linking here. #
|
|
|
|
# #
|
2024-06-17 17:09:54 +01:00
|
|
|
# Refer to the port configuration section in inspircd.example.conf #
|
2020-11-28 19:25:17 +01:00
|
|
|
# for more information about the available options. #
|
|
|
|
# #
|
|
|
|
|
2021-04-08 11:29:16 +01:00
|
|
|
# TLS listener that binds on a TCP/IP endpoint:
|
2020-11-28 19:25:17 +01:00
|
|
|
<bind address="1.2.3.4"
|
|
|
|
port="7005"
|
|
|
|
type="servers"
|
2021-03-10 03:43:56 +00:00
|
|
|
sslprofile="Servers">
|
2020-11-28 19:25:17 +01:00
|
|
|
|
|
|
|
# Plaintext listener that binds on a TCP/IP endpoint:
|
|
|
|
<bind address=""
|
|
|
|
port="7000,7001"
|
|
|
|
type="servers">
|
|
|
|
|
|
|
|
|
2008-10-07 18:34:27 +00:00
|
|
|
#-#-#-#-#-#-#-#-#-#-#- SERVER LINK CONFIGURATION -#-#-#-#-#-#-#-#-#-#
|
|
|
|
# #
|
|
|
|
# Defines which servers can link to this one, and which servers this #
|
|
|
|
# server may create outbound links to. #
|
2009-10-21 23:44:27 +00:00
|
|
|
# #
|
2008-10-07 18:34:27 +00:00
|
|
|
# ____ _ _____ _ _ ____ _ _ _ #
|
|
|
|
# | _ \ ___ __ _ __| | |_ _| |__ (_)___ | __ )(_) |_| | #
|
|
|
|
# | |_) / _ \/ _` |/ _` | | | | '_ \| / __| | _ \| | __| | #
|
|
|
|
# | _ < __/ (_| | (_| | | | | | | | \__ \ | |_) | | |_|_| #
|
|
|
|
# |_| \_\___|\__,_|\__,_| |_| |_| |_|_|___/ |____/|_|\__(_) #
|
|
|
|
# #
|
|
|
|
# If you want to link servers to InspIRCd you must load the #
|
2020-11-28 19:25:17 +01:00
|
|
|
# spanningtree module! If you do not load this module, server ports #
|
|
|
|
# will NOT work! #
|
2008-10-07 18:34:27 +00:00
|
|
|
# #
|
|
|
|
|
2009-03-05 05:41:17 +00:00
|
|
|
<link
|
|
|
|
# name: The name of the remote server. This must match
|
|
|
|
# the <server:name> value of the remote server.
|
2014-11-08 19:40:08 -05:00
|
|
|
name="hub.example.org"
|
2008-10-07 18:34:27 +00:00
|
|
|
|
2009-03-05 05:41:17 +00:00
|
|
|
# ipaddr: The IP address of the remote server.
|
2008-10-07 18:34:27 +00:00
|
|
|
# Can also be a hostname, but hostname must resolve.
|
2014-11-08 19:40:08 -05:00
|
|
|
ipaddr="penguin.example.org"
|
2008-10-07 18:34:27 +00:00
|
|
|
|
2009-08-24 02:41:34 +00:00
|
|
|
# port: The port to connect to the server on.
|
|
|
|
# It must be bound as a server port on the other server.
|
2008-10-07 18:34:27 +00:00
|
|
|
port="7000"
|
|
|
|
|
|
|
|
# allowmask: Range of IP addresses to allow for this link.
|
|
|
|
# Can be a CIDR (see example).
|
2014-01-21 18:44:08 +01:00
|
|
|
allowmask="203.0.113.0/24 127.0.0.0/8 2001:db8::/32"
|
2008-10-07 18:34:27 +00:00
|
|
|
|
|
|
|
# timeout: If defined, this option defines how long the server
|
|
|
|
# will wait to consider the connect attempt failed and try the
|
|
|
|
# failover (see above).
|
2017-08-13 16:26:48 +01:00
|
|
|
timeout="5m"
|
2008-10-07 18:34:27 +00:00
|
|
|
|
2021-04-08 11:29:16 +01:00
|
|
|
# sslprofile: If defined, this states the TLS profile that will be used
|
2020-12-24 20:55:10 +00:00
|
|
|
# when making an outbound connection to the server. See the docs page for
|
2021-04-08 11:29:16 +01:00
|
|
|
# the TLS module you are using for more details:
|
2020-12-24 20:55:10 +00:00
|
|
|
#
|
2022-05-18 16:49:20 +01:00
|
|
|
# GnuTLS: https://docs.inspircd.org/4/modules/ssl_gnutls#sslprofile
|
|
|
|
# OpenSSL: https://docs.inspircd.org/4/modules/ssl_openssl#sslprofile
|
2009-10-21 23:44:27 +00:00
|
|
|
#
|
2024-04-01 14:44:34 +01:00
|
|
|
# You will need to load the ssl_openssl module for OpenSSL and ssl_gnutls
|
|
|
|
# for GnuTLS. The server port that you connect to must be capable of
|
|
|
|
# accepting this type of connection.
|
2021-03-10 03:30:50 +00:00
|
|
|
sslprofile="Servers"
|
2008-10-07 18:34:27 +00:00
|
|
|
|
2009-10-21 23:44:27 +00:00
|
|
|
# fingerprint: If defined, this option will force servers to be
|
2021-04-08 11:29:16 +01:00
|
|
|
# authenticated using TLS certificate fingerprints. See
|
2022-05-18 16:49:20 +01:00
|
|
|
# https://docs.inspircd.org/4/modules/spanningtree for more information.
|
2021-04-08 11:29:16 +01:00
|
|
|
# This will require a TLS link for both inbound and outbound connections.
|
2009-10-21 23:44:27 +00:00
|
|
|
#fingerprint=""
|
|
|
|
|
2008-10-07 18:34:27 +00:00
|
|
|
# bind: Local IP address to bind to.
|
|
|
|
bind="1.2.3.4"
|
|
|
|
|
2014-03-19 15:52:07 +01:00
|
|
|
# statshidden: Defines if IP is shown to opers when
|
2014-07-24 14:20:14 +02:00
|
|
|
# /STATS c is invoked.
|
2008-10-07 18:34:27 +00:00
|
|
|
statshidden="no"
|
|
|
|
|
2009-10-21 23:44:27 +00:00
|
|
|
# hidden: If this is set to yes, this server and its "child"
|
2014-07-24 14:20:14 +02:00
|
|
|
# servers will not be shown when users do a /MAP or /LINKS.
|
2008-10-07 18:34:27 +00:00
|
|
|
hidden="no"
|
|
|
|
|
2019-02-17 15:58:31 +01:00
|
|
|
# passwords: The passwords we send and receive.
|
2008-10-07 18:34:27 +00:00
|
|
|
# The remote server will have these passwords reversed.
|
2012-06-11 15:04:29 +02:00
|
|
|
# Passwords that contain a space character or begin with
|
|
|
|
# a colon (:) are invalid and may not be used.
|
2008-10-07 18:34:27 +00:00
|
|
|
sendpass="outgoing!password"
|
|
|
|
recvpass="incoming!password">
|
|
|
|
|
2019-02-17 15:58:31 +01:00
|
|
|
# A duplicate of the first link block without comments,
|
2008-10-07 18:34:27 +00:00
|
|
|
# if you like copying & pasting.
|
2014-11-08 19:40:08 -05:00
|
|
|
<link name="hub.example.org"
|
|
|
|
ipaddr="penguin.example.org"
|
2008-10-07 18:34:27 +00:00
|
|
|
port="7000"
|
2019-02-17 15:58:31 +01:00
|
|
|
allowmask="203.0.113.0/24 127.0.0.0/8 2001:db8::/32"
|
2017-08-13 16:26:48 +01:00
|
|
|
timeout="5m"
|
2021-03-10 03:43:56 +00:00
|
|
|
sslprofile="Servers"
|
2008-10-07 18:34:27 +00:00
|
|
|
bind="1.2.3.4"
|
|
|
|
statshidden="no"
|
|
|
|
hidden="no"
|
|
|
|
sendpass="outgoing!password"
|
|
|
|
recvpass="incoming!password">
|
|
|
|
|
|
|
|
# Link block for services. Options are the same as for the first
|
|
|
|
# link block (depending on what your services package supports).
|
2014-11-08 19:40:08 -05:00
|
|
|
<link name="services.example.com"
|
2008-10-07 18:34:27 +00:00
|
|
|
ipaddr="localhost"
|
|
|
|
port="7000"
|
|
|
|
allowmask="127.0.0.0/8"
|
|
|
|
sendpass="penguins"
|
|
|
|
recvpass="polarbears">
|
|
|
|
|
2019-02-17 15:58:31 +01:00
|
|
|
# Simple autoconnect block. This enables automatic connections to a server.
|
2009-10-21 23:44:27 +00:00
|
|
|
# Recommended setup is to have leaves connect to the hub, and have no
|
|
|
|
# automatic connections started by the hub.
|
2015-04-20 17:40:12 +02:00
|
|
|
<autoconnect period="10m" server="hub.example.org">
|
2009-10-21 23:44:27 +00:00
|
|
|
|
|
|
|
# Failover autoconnect block. If you have multiple hubs, or want your network
|
|
|
|
# to automatically link even if the hub is down, you can specify multiple
|
2013-08-27 18:30:59 +02:00
|
|
|
# space separated servers to autoconnect; they will be tried in a round
|
2012-05-30 00:29:06 +02:00
|
|
|
# robin fashion until one succeeds. Period defines the time for restarting
|
|
|
|
# a single loop.
|
2017-08-13 16:26:48 +01:00
|
|
|
<autoconnect period="2m"
|
2014-11-08 19:40:08 -05:00
|
|
|
server="hub.us.example.org hub.eu.example.org leaf.eu.example.org">
|
2009-10-21 23:44:27 +00:00
|
|
|
|
2008-10-07 18:34:27 +00:00
|
|
|
|
2023-07-07 13:28:04 +01:00
|
|
|
#-#-#-#-#-#-#-#-#-#-#-# SERVICES CONFIGURATION #-#-#-#-#-#-#-#-#-#-#-#-#
|
2021-01-30 14:04:59 +00:00
|
|
|
# This tag defines a services server. A services server has special #
|
|
|
|
# permissions, and should be used with caution. This should be used for #
|
|
|
|
# the server that has ChanServ, NickServ, etc on it not a user server. #
|
2019-02-17 15:58:31 +01:00
|
|
|
# #
|
|
|
|
# The 'silent' value, if set to yes, indicates that this server should #
|
|
|
|
# not generate quit and connect notices, which can cut down on noise #
|
|
|
|
# to opers on the network. #
|
|
|
|
# #
|
2023-07-07 13:28:04 +01:00
|
|
|
<services server="services.example.com" silent="yes">
|
2018-10-27 14:18:52 +01:00
|
|
|
|
|
|
|
# Once you have edited this file you can remove this line. This is just to
|
|
|
|
# ensure that you don't hastily include the file without reading it.
|
2024-06-17 17:09:54 +01:00
|
|
|
<die reason="Using links.example.conf without editing it is a security risk">
|