blob: c2c00ca242a93d687ccab50a59d7ea38914f3619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
|
.. index::
single: Systems; Ircserver
=========
Ircserver
=========
Purpose
=======
This system is the planned replacement for :doc:`irc`
Administration
==============
System Administration
---------------------
* Primary: :ref:`people_martin`
* Secondary: :ref:`people_jandd`
Application Administration
--------------------------
+--------------+-------------------------------------------+
| Application | Administrator(s) |
+==============+===========================================+
| IRC server | :ref:`people_martin`, :ref:`people_jandd` |
+--------------+-------------------------------------------+
| IRC services | :ref:`people_martin`, :ref:`people_jandd` |
+--------------+-------------------------------------------+
| Votebot | :ref:`people_martin`, :ref:`people_jandd` |
+--------------+-------------------------------------------+
Contact
-------
* irc-admin@cacert.org
Basics
======
Physical Location
-----------------
This system is located in an :term:`LXC` container on physical machine
:doc:`infra02`.
Logical Location
----------------
:IP Internet: :ip:v4:`213.154.225.233`
:IP Intranet: :ip:v4:`172.16.2.24`
:IP Internal: :ip:v4:`10.0.0.130`
:MAC address: :mac:`00:ff:9a:79:ca:b1` (eth0)
.. todo:: setup IPv6
.. seealso::
See :doc:`../network`
DNS
---
.. index::
single: DNS records; Ircserver
single: DNS records; Irc
======================= ======== ==========================================
Name Type Content
======================= ======== ==========================================
irc.cacert.org. IN A 213.154.225.233
irc.cacert.org. IN SSHFP 1 1 C123F73001682277DE5346923518D17CC94E298E
irc.cacert.org. IN SSHFP 2 1 B85941C077732F78BE290B8F0B44B0A5E8A0E51D
irc.intra.cacert.org. IN A 172.16.2.14
======================= ======== ==========================================
.. todo:: setup new SSHFP records
.. seealso::
See :wiki:`SystemAdministration/Procedures/DNSChanges`
Operating System
----------------
.. index::
single: Debian GNU/Linux; Jessie
single: Debian GNU/Linux; 8.5
* Debian GNU/Linux 8.5
Applicable Documentation
------------------------
This is it :-)
Services
========
Listening services
------------------
+----------+--------------+---------+----------------------------+
| Port | Service | Origin | Purpose |
+==========+==============+=========+============================+
| 22/tcp | ssh | ANY | admin console access |
+----------+--------------+---------+----------------------------+
| 25/tcp | smtp | local | mail delivery to local MTA |
+----------+--------------+---------+----------------------------+
| 80/tcp | http | ANY | redirect to https |
+----------+--------------+---------+----------------------------+
| 443/tcp | https | ANY | reverse proxy for kiwiirc |
+----------+--------------+---------+----------------------------+
| 5666/tcp | nrpe | monitor | remote monitoring service |
+----------+--------------+---------+----------------------------+
| 6667/tcp | ircd | ANY | IRC |
+----------+--------------+---------+----------------------------+
| 7000/tcp | ircd | ANY | IRC (SSL) |
+----------+--------------+---------+----------------------------+
| 7001/tcp | ircd | local | IRC (services) |
+----------+--------------+---------+----------------------------+
| 7778/tcp | kiwiirc | local | kiwiirc process |
+----------+--------------+---------+----------------------------+
| 8080/tcp | irc-services | ANY | IRC services |
+----------+--------------+---------+----------------------------+
irc opens a random UDP port.
The following port forwarding is setup on :doc:`infra02`
+-------------+-------+-----------------+
| Intranet IP | Port | Target |
+=============+=======+=================+
| 172.16.2.14 | 13022 | 10.0.0.130:22 |
+-------------+-------+-----------------+
| 172.16.2.14 | 13080 | 10.0.0.130:80 |
+-------------+-------+-----------------+
| 172.16.2.14 | 13443 | 10.0.0.130:443 |
+-------------+-------+-----------------+
| 172.16.2.14 | 13667 | 10.0.0.130:6667 |
+-------------+-------+-----------------+
| 172.16.2.14 | 13700 | 10.0.0.130:7000 |
+-------------+-------+-----------------+
.. todo:: implement final forwarding to required ports from :doc:`infra02`
Running services
----------------
.. index::
single: cron
single: exim
single: nrpe
single: openssh
single: inspircd
single: atheme-services
single: votebot
+--------------------+--------------------+----------------------------------------+
| Service | Usage | Start mechanism |
+====================+====================+========================================+
| openssh server | ssh daemon for | init script :file:`/etc/init.d/ssh` |
| | remote | |
| | administration | |
+--------------------+--------------------+----------------------------------------+
| cron | job scheduler | init script :file:`/etc/init.d/cron` |
+--------------------+--------------------+----------------------------------------+
| Exim | SMTP server for | init script |
| | local mail | :file:`/etc/init.d/exim4` |
| | submission | |
+--------------------+--------------------+----------------------------------------+
| Nagios NRPE server | remote monitoring | init script |
| | service queried by | :file:`/etc/init.d/nagios-nrpe-server` |
| | :doc:`monitor` | |
+--------------------+--------------------+----------------------------------------+
| inspircd | IRC daemon | init script |
| | | :file:`/etc/init.d/inspircd` |
+--------------------+--------------------+----------------------------------------+
| atheme-services | IRC services | init script |
| | | :file:`/etc/init.d/atheme-services` |
+--------------------+--------------------+----------------------------------------+
| kiwiirc | IRC web client | start script |
| | | :file:`/home/kiwiirc/KiwiIRC/kiwi` |
| | | started by user kiwiirc |
+--------------------+--------------------+----------------------------------------+
| nginx | Reverse proxy for | init script |
| | kiwiirc | :file:`/etc/init.d/nginx |
+--------------------+--------------------+----------------------------------------+
Connected Systems
-----------------
* :doc:`monitor`
Outbound network connections
----------------------------
* DNS (53) resolving nameservers 172.16.2.2 and 172.16.2.3
* :doc:`emailout` as SMTP relay
* ftp.nl.debian.org as Debian mirror
* security.debian.org for Debian security updates
* crl.cacert.org (rsync) for getting CRLs
Security
========
.. sshkeys::
:RSA: dc:8f:c3:d7:38:72:39:13:6f:97:db:3d:06:c6:83:db
:DSA: 52:73:d9:76:38:df:bd:18:37:4a:e3:9d:65:14:ac:39
:ECDSA: 61:9f:ca:c7:05:0e:46:a1:8f:6d:7f:3a:68:ce:5a:21
Dedicated user roles
--------------------
+---------+-------------------------------------+
| User | Purpose |
+=========+=====================================+
| votebot | used to run the votebot |
+---------+-------------------------------------+
| kiwiirc | used to run the Kiwi IRC web client |
+---------+-------------------------------------+
Non-distribution packages and modifications
-------------------------------------------
Votebot
~~~~~~~
The :ref:`Votebot <votebot>` is a custom developed IRC daemon that is packaged
as a self contained Java jar archive. The bot is started manually as described
above. For improved maintainability it should be packaged and provide a start
mechanism that is better integrated with the system.
.. _votebot:
.. topic:: Votebot
The vote bot is a Java based IRC bot developed at
https://github.com/CAcertOrg/cacert-votebot. The bot is started manually by
running
.. code-block:: bash
java -DvoteBot.meetingChn=SGM -cp VoteBot.jar \
de.dogcraft.irc.CAcertVoteBot -u -h 10.0.0.14 -p 6667 --nick VoteBot
.. todo:: use a CAcert git repository for votebot
.. todo:: package votebot for Debian
.. todo:: provide a proper init script/and or systemd unit for votebot
Kiwi IRC
~~~~~~~~
Kiwi IRC is a nodejs based IRC web client. The software has been installed via
`Github <https://github.com/prawnsalad/KiwiIRC.git>` and npm as described in
https://kiwiirc.com/docs/installing and
https://kiwiirc.com/docs/installing/proxies. The software is running on the
local loopback interface and Internet access is provided by an nginx reverse
proxy that also provides https connectivity. NodeJS and npm have been installed
from Debian packages.
Risk assessments on critical packages
-------------------------------------
Votebot is a Java based application and therefore Java security patches should
be applied as soon as they become available.
Kiwi IRC is nodejs based and uses some third party npm packages. The
application is kept behind a reverse proxy but it is advisable to make sure
that available updates are applied.
.. todo:: implement some update monitoring for Kiwi IRC
Critical Configuration items
============================
Keys and X.509 certificates
---------------------------
.. sslcert:: irc.cacert.org
:altnames: DNS:irc.cacert.org, DNS:ircserver.cacert.org
:certfile: /etc/ssl/public/irc.cacert.org.crt
:keyfile: /etc/ssl/private/irc.cacert.org.key
:serial: 0FBBE0
:expiration: Oct 22 15:27:04 16 GMT
:sha1fp: 82:F7:B8:08:FB:FD:C3:FA:21:6C:89:B7:07:69:3D:66:F8:BC:5F:AA
:issuer: CA Cert Signing Authority
.. index::
pair: inspircd; configuration
inspircd configuration
----------------------
Inspircd is installed from a Debian package. It is configured via files in
:file:`/etc/inspircd/`. The main configuration file is :file:`inspircd.conf`.
.. index::
pair: atheme-services; configuration
atheme-services configuration
-----------------------------
Atheme-services is installed from a Debian package. It is configured via
:file:`/etc/atheme/atheme.conf`.
Kiwi IRC configuration
----------------------
Kiwi IRC configuration is kept in :file:`/home/kiwiirc/KiwiIRC/config.js`. When
the configuration is changed it can be applied by running:
.. code-block:: bash
sudo -s -u kiwi
cd ~/KiwiIRC
./kiwi reconfig
nginx configuration
-------------------
The nginx configuration for reverse proxying Kiwi IRC is stored in
:file:`/etc/nginx/sites-available/default`. The same certificate and private
key are used for inspirced and nginx.
Tasks
=====
Planned
-------
- setup IPv6
- setup DNS records
Changes
=======
System Future
-------------
- replace :doc:`irc` by this system
Additional documentation
========================
.. seealso::
* :wiki:`Exim4Configuration`
* :wiki:`Technology/TechnicalSupport/EndUserSupport/IRC`
References
----------
Atheme services website
https://atheme.github.io/atheme.html
Inspircd wiki
https://wiki.inspircd.org/
Kiwi IRC documentation
https://kiwiirc.com/docs/
nginx documentation
http://nginx.org/en/docs/
|