This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| help:technical:znc [2017/05/25 23:13] – rubin | help:technical:znc [2017/05/26 22:55] (current) – rubin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== ZNC install for network Administrators ====== | ====== ZNC install for network Administrators ====== | ||
| + | |||
| + | This is a guide for IRC Network Administrators. If you just want to connect to AfterNET' | ||
| If you use X3 with ldap support (Or any services with ldap support) you can host a ZNC bouncer for all your users to use, by using ZNC's cyrusauth module. Here is how we build ZNC for afternet: | If you use X3 with ldap support (Or any services with ldap support) you can host a ZNC bouncer for all your users to use, by using ZNC's cyrusauth module. Here is how we build ZNC for afternet: | ||
| Line 44: | Line 46: | ||
| * compile: '' | * compile: '' | ||
| * install: '' | * install: '' | ||
| + | * Remove plugins (See list below) that you don't want around for security or irrelevance | ||
| * Run for the first time, from the install directory: '' | * Run for the first time, from the install directory: '' | ||
| * Username: admin | * Username: admin | ||
| Line 54: | Line 57: | ||
| * Load the cyrusauth module with subcomponents: | * Load the cyrusauth module with subcomponents: | ||
| * Create a dummy user in znc to use as a skel/clone identity: ''/ | * Create a dummy user in znc to use as a skel/clone identity: ''/ | ||
| + | * Configure this user how you want them. Mainly use your above zncadmin account to disable their flag access to bind. | ||
| * Configure cyrusauth module: (''/ | * Configure cyrusauth module: (''/ | ||
| * Set cyrusauth module to use it the cloneuser: '' | * Set cyrusauth module to use it the cloneuser: '' | ||
| Line 59: | Line 63: | ||
| * Your services/ | * Your services/ | ||
| * A network to configure for cloned users: '' | * A network to configure for cloned users: '' | ||
| - | * A server to configure for them: '' | + | * A server to configure for them: '' |
| * Salt is used to unpredictibly hash usernames: '' | * Salt is used to unpredictibly hash usernames: '' | ||
| * A WebIRC Block in nefarious lets us setup our hostname: '' | * A WebIRC Block in nefarious lets us setup our hostname: '' | ||
| Line 68: | Line 72: | ||
| * SASL Mechanism to support: '' | * SASL Mechanism to support: '' | ||
| * Set < | * Set < | ||
| + | |||
| + | ===== Setup IRCD ===== | ||
| + | * Add a webIRC line: | ||
| + | |||
| + | WebIRC { | ||
| + | description = " | ||
| + | host = " | ||
| + | pass = " | ||
| + | }; | ||
| + | | ||
| + | * Except block to protect znc from flood limits: | ||
| + | |||
| + | Except { | ||
| + | host = " | ||
| + | gline = yes; | ||
| + | rdns = yes; | ||
| + | ipcheck = yes; | ||
| + | targetlimit = yes; | ||
| + | }; | ||
| + | |||
| + | ===== Security ===== | ||
| + | I run this script after '' | ||
| + | |||
| + | < | ||
| + | #!/bin/bash | ||
| + | |||
| + | RM='/ | ||
| + | echo "Lets delete modules we dont trust or need for security!" | ||
| + | |||
| + | #Lets remove unsafe modules! | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | $RM lib/ | ||
| + | # | ||
| + | # | ||
| + | $RM lib/ | ||
| + | # | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | # ADD? # | ||
| + | # | ||
| + | # | ||
| + | # ADD? # | ||
| + | # ADD? # | ||
| + | # | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | # | ||
| + | # | ||
| + | $RM lib/ | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | $RM lib/ | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | $RM lib/ | ||
| + | # | ||
| + | $RM lib/ | ||
| + | #$RM lib/ | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | #$RM lib/ | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | # | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | # | ||
| + | # ADD? # | ||
| + | # | ||
| + | # | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | # ADD? # | ||
| + | # ADD? # | ||
| + | # | ||
| + | $RM lib/ | ||
| + | # | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | $RM lib/ | ||
| + | # | ||
| + | # | ||
| + | # ADD? # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | </ | ||