]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/conf/links.conf.example
Make some config strings a bit more professional and use RFC reserved TLD's everywhere
[user/henk/code/inspircd.git] / docs / conf / links.conf.example
1 #-#-#-#-#-#-#-#-#-#-#-  SERVER LINK CONFIGURATION  -#-#-#-#-#-#-#-#-#-#
2 #                                                                     #
3 # Defines which servers can link to this one, and which servers this  #
4 # server may create outbound links to.                                #
5 #                                                                     #
6 #    ____                _   _____ _     _       ____  _ _   _        #
7 #   |  _ \ ___  __ _  __| | |_   _| |__ (_)___  | __ )(_) |_| |       #
8 #   | |_) / _ \/ _` |/ _` |   | | | '_ \| / __| |  _ \| | __| |       #
9 #   |  _ <  __/ (_| | (_| |   | | | | | | \__ \ | |_) | | |_|_|       #
10 #   |_| \_\___|\__,_|\__,_|   |_| |_| |_|_|___/ |____/|_|\__(_)       #
11 #                                                                     #
12 #  If you want to link servers to InspIRCd you must load the          #
13 #  m_spanningtree.so module!                                          #
14 #                                                                     #
15 #                                                                     #
16
17 <link
18       # name: The name of the remote server. This must match
19       # the <server:name> value of the remote server.
20       name="hub.example.org"
21
22       # ipaddr: The IP address of the remote server.
23       # Can also be a hostname, but hostname must resolve.
24       ipaddr="penguin.example.org"
25
26       # port: The port to connect to the server on.
27       # It must be bound as a server port on the other server.
28       port="7000"
29
30       # allowmask: Range of IP addresses to allow for this link.
31       # Can be a CIDR (see example).
32       allowmask="203.0.113.0/24"
33
34       # timeout: If defined, this option defines how long the server
35       # will wait to consider the connect attempt failed and try the
36       # failover (see above).
37       timeout="300"
38
39       # ssl: If defined, this states the SSL module that will be used when
40       # making an outbound connection to the server. Options are: "openssl"
41       # and "gnutls" (they are compatible with each other).
42       #
43       # You will need to load the m_ssl_openssl.so module for OpenSSL,
44       # m_ssl_gnutls.so for GnuTLS. The server port that you connect to
45       # must be capable of accepting this type of connection.
46       ssl="gnutls"
47
48       # fingerprint: If defined, this option will force servers to be
49       # authenticated using SSL Fingerprints. See http://wiki.inspircd.org/SSL
50       # for more information. This will require an SSL link for both inbound
51       # and outbound connections.
52       #fingerprint=""
53
54       # bind: Local IP address to bind to.
55       bind="1.2.3.4"
56
57       # statshidden: Defines if IP is shown to opers when
58       # /STATS c is invoked.
59       statshidden="no"
60
61       # hidden: If this is set to yes, this server and its "child"
62       # servers will not be shown when users do a /MAP or /LINKS.
63       hidden="no"
64
65       # passwords: the passwords we send and receive.
66       # The remote server will have these passwords reversed.
67       # Passwords that contain a space character or begin with
68       # a colon (:) are invalid and may not be used.
69       sendpass="outgoing!password"
70       recvpass="incoming!password">
71
72 # A duplicate of the first link block without comments
73 # if you like copying & pasting.
74 <link name="hub.example.org"
75       ipaddr="penguin.example.org"
76       port="7000"
77       allowmask="203.0.113.0/24"
78       timeout="300"
79       ssl="gnutls"
80       bind="1.2.3.4"
81       statshidden="no"
82       hidden="no"
83       sendpass="outgoing!password"
84       recvpass="incoming!password">
85
86 # Link block for services. Options are the same as for the first
87 # link block (depending on what your services package supports).
88 <link name="services.example.com"
89       ipaddr="localhost"
90       port="7000"
91       allowmask="127.0.0.0/8"
92       sendpass="penguins"
93       recvpass="polarbears">
94
95 # Simple autoconnect block. This enables automatic connection of a server
96 # Recommended setup is to have leaves connect to the hub, and have no
97 # automatic connections started by the hub.
98 <autoconnect period="300" server="hub.example.org">
99
100 # Failover autoconnect block. If you have multiple hubs, or want your network
101 # to automatically link even if the hub is down, you can specify multiple
102 # space separated servers to autoconnect; they will be tried in a round
103 # robin fashion until one succeeds. Period defines the time for restarting
104 # a single loop.
105 <autoconnect period="120"
106         server="hub.us.example.org hub.eu.example.org leaf.eu.example.org">
107
108
109 #-#-#-#-#-#-#-#-#-#-#-#- ULINES CONFIGURATION #-#-#-#-#-#-#-#-#-#-#-#-#
110 # This tag defines a ulined server. A U-Lined server has special      #
111 # permissions, and should be used with caution. Services servers are  #
112 # usually u-lined in this manner.                                     #
113 #                                                                     #
114 # The 'silent' value, if set to yes, indicates that this server should#
115 # not generate quit and connect notices, which can cut down on noise  #
116 # to opers on the network.                                            #
117 #                                                                     #
118 <uline server="services.example.com" silent="yes">