Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / doc / exaconf.2
1 # Set the name of the server, its numeric, and the server info field
2 serverinfo {
3         name "test.server.undernet.org";
4         capacity 6124;
5         numeric 18;
6         description "A test server for the next generation";
7
8         # this is an optional parameter to specify where outbound
9         # connections should originate from
10         addr "18.177.0.118";
11 }
12
13 # Select a seed from /dev/random or the appropriate local alternative.
14 # If /dev/random doesn't exist, use a seed
15 # Note: on Linux, /dev/urandom should probably be used--it won't block.
16 seedfile "/dev/random";
17
18 # Let's set up some logging
19 logging {
20         syslog daemon; # set the syslog facility to daemon
21
22         logpath "/home/irc/logs" # path prepended to log file names
23
24         log kill syslog notice; # log kills to syslog at priority "notice"
25         log squit syslog notice;
26         log connect syslog debug;
27
28         log oper file "opers.log"; # log /opers to file "opers.log"
29         log gline file "gline.log";
30
31         nolog users; # turn off logging for users (default, but illustrative)
32
33         pid "ircd.pid";
34 }
35
36 binpath "/home/irc/bin/ircd"; # binary to exec() when we /restart
37 libpath "/home/irc/lib"; # directory to chdir() to on start-up
38
39 # Here's an authorization record--defines who is permitted on the server
40 # and what special information needs to be remembered about them.
41 auth everyone {
42         host "*@*";     # hosts this auth record matches
43         maxusers 1200;  # Max users for this auth record
44         perhost 2;      # Maximum of 2 users per host on this server
45         global 3;       # Maximum of 2 users per host on the entire network
46         ping 120;       # ping them once every 120 seconds if link inactive
47         sendq 270000;   # max sendq for everyone in the auth record
48 }
49
50 # Here's another one for miters people
51 auth miters {
52         host "*@*.mit.edu";
53         host "*@18.*";
54         maxusers 1200;
55         perhost 1;
56         global 1;
57         ping 300;
58         sendq 120000;
59 }
60
61 # And here's a back door for my operators--perhaps to be used in an emergency
62 auth opers {
63         host "*@*";
64         unset ident;    # no identd
65         unset banable;  # no denial rules
66         unset limit;    # ignore any limits
67         set ipspoof;    # hostname is spoofed to protect the guilty
68         password "MybacKd004!"; # password-only access
69         motd "opers.motd";      # a special MOTD for opers
70 }
71
72 port {
73         accept opers; # auth records are tried in order listed
74         accept miters;
75         accept everyone;
76
77         port 6660-6669 "18.177.0.118"; # ports to open
78         port 6660-6669 "18.177.0.119";
79 }
80
81 port {
82         set hide;
83
84         accept opers;
85
86         port 7000; # IP is optional and defaults to 0.0.0.0
87 }
88
89 port {
90         set hide;
91         set serveronly;
92
93         port 4400 "18.177.0.118";
94 }
95
96 # allow channel hacks and glines
97 server uworld.undernet.org {
98         set channelhack;
99         set gline;
100 }
101
102 server uworld2.undernet.org {
103         set channelhack;
104         set gline;
105 }
106
107 server uworld.eu.undernet.org {
108         set channelhack;
109         set gline;
110 }
111
112 # allow channel hacks only
113 server channels.undernet.org {
114         set channelhack;
115 }
116
117 server channels2.undernet.org {
118         set channelhack;
119 }
120
121 # here's some link class definitions for servers (only)
122 class hubs {
123         limit 2;        # Max connection attempts per class
124         freq 600;       # Connect frequency
125         ping 300;       # how often to ping them
126         sendq 2700000;  # sendq
127 }
128
129 # Here's a hub link
130 server santaclara.ca.us.undernet.org {
131         class hubs;                     # this is in the hubs link class
132
133         link 4400 "205.158.23.3";       # link address
134         password "toysrus";             # link password
135         set auto;                       # we'll auto to it
136         set hub;                        # it's a hub
137 }
138
139 server dallas-r.tx.us.undernet.org {
140         class hubs;
141
142         link 4400 "204.178.73.175";
143         password "areyouready?";
144         set auto;
145         set hub;
146
147         deny "linked(santaclara.ca.us.undernet.org)"; # a d-line
148 }
149
150 # here's a leaf
151 server vancouver.bc.ca.undernet.org {
152         link 4400 "199.60.228.129";
153         password "toylink";
154         set auto;
155
156         denyoper "linked(santaclara.ca.us.undernet.org)"; # a D-line
157 }
158
159 # here's a set of default flags for opers
160 #
161 # the part before the '.' specifies the namespace the flags are from--
162 # not necessary inside the user record itself, but we don't otherwise
163 # know the namespace here.  The part after the '.' is a label.
164 flagset user.oper {
165         set kill;       # allow kills...
166         set kline;      # allow kline/unkline
167         set gline;      # allow local glines
168         set rehash;     # can use /rehash
169         set restart;    # can use /restart
170         set die;        # can use /die
171         set wallops;    # can use /wallops
172         set connect;    # can use /connect and /squit
173         set stats;      # can use /stats
174         set info;       # can use /info
175         set opernotice; # can see oper-only notices
176         set massmsg;    # can use mass messages
177 }
178
179 # here's an operator
180 user Kev {
181         default oper;                   # a set of flags for the user
182         cryptpass "J/7oDe78NhQ+/";      # password must be given to activate
183         host "*.mit.edu";               # must be from the listed hosts
184         host "*.ne.mediaone.net";
185         host "18.*";
186         host "168.159.*";
187 }
188
189 # nick jupes
190 user Uworld {
191         set juped;
192 }
193
194 user Uworld2 {
195         set juped;
196 }
197
198 user EUworld {
199         set juped;
200 }
201
202 user X {
203         set juped;
204 }
205
206 user W {
207         set juped;
208 }
209
210 # File deny records are kept in; this can be modified from online
211 denyfile "klines.conf";