Link block

If you are linking servers we recommend you to follow our Tutorial: Linking servers instead. The link block is, however, shown below for reference.

Syntax
link  { /* Below, often you will have both an incoming { } and outcoming { } sub-block. * However you may also choose to have only 1 of them if you always link in the same direction. */   incoming { mask 1.2.3.*; };   outgoing { bind-ip ; /* optional now */ hostname irc1.some.net; /* may also be an IP */ port 6697; /* or move the hostname & ip into one item ? irc1.some.net:6697 */ options { ssl; autoconnect; }; /* optional, but recommended */ };   password "some-password"; /* either a plaintext password that's the same for both sides or an SSL fingerprint (or certificate) */ hub ; /* optional */ leaf ; /* optional */ leaf-depth ; /* optional */ class ; ciphers ; /* optional */ options { quarantine; /* is a generic option. optional. */   }; };

Required items
Note that you need link::incoming and/or link::outgoing. So at least one of them is required.

server-name
The server-name in your link  { block specifies the name of the server, that is the name you have specified in me::name on the other side of the link.

incoming::mask
Only servers matching this (IP) mask may use this link block.

outgoing::hostname
Hostname of the server to connect. This could be the same as the server-name, but it may also be an IP or a different DNS name.

outgoing::port
Port of the other server to connect to

outgoing::options (optional)
The following two options are available:
 * ssl: enable SSL/TLS encryption. This is recommended. If you use this, then be sure that the outgoing::port you specifiy is in fact a SSL port (so, on the other side of the link listen::options::ssl is turned on for that port). If it's not an SSL port then linking will fail mysteriously.
 * autoconnect: automatically connect to the server (or try to every XX seconds, anyway)

outgoing::bind-ip (optional)
Bind to this IP before connecting to the other server. The IP to bind to must be available on the machine (must not be an IP of another machine).

password
Password or other method to use to verify the authenticity of the link. This must be either: 1) a plaintext password that must be the same on both sides of the link, OR 2) an SSL fingerprint, which is our recommended and safest way to link, see our Tutorial.

hub
The value is a mask of what servers this hub may connect (ex: *.my.net).

leaf
The value is a mask of what servers this hub may not connect.

leaf-depth
The value specifies the depth (number of hops) this server may have beneath it. For example, 1 means the server can't have any links under it (a leaf), 2 means it can link servers but those servers can't link anything under them (that is, this hub can only link leaves). A value of 0 means no limit, and is the default.

class
The class this server is put into (see Class block), often a separate server class is used for this.

ciphers
Specifies the SSL ciphers to use for this link. To obtain a list of available ciphers, use the `openssl ciphers` command. Ciphers should be specified as a : separated list.

options
There's only one generic option:
 * quarantine: this link may have no IRC Operators on it.

For other link options see the link::outgoing block.

Example
See Tutorial: Linking servers