About the Author |
|
xvii | |
About the Technical Reviewer |
|
xix | |
Acknowledgments |
|
xxi | |
Introduction |
|
xxiii | |
|
Chapter 1 Server Preparation |
|
|
1 | (6) |
|
|
1 | (1) |
|
|
1 | (1) |
|
|
2 | (1) |
|
|
3 | (2) |
|
|
5 | (1) |
|
|
5 | (1) |
|
|
5 | (2) |
|
Chapter 2 Server Configuration |
|
|
7 | (14) |
|
|
7 | (1) |
|
|
7 | (1) |
|
|
7 | (12) |
|
|
19 | (1) |
|
|
19 | (2) |
|
|
21 | (12) |
|
|
21 | (1) |
|
|
21 | (1) |
|
Installing the DHCP server |
|
|
22 | (2) |
|
Configuring the DHCP server |
|
|
24 | (5) |
|
|
29 | (3) |
|
|
31 | (1) |
|
|
32 | (1) |
|
|
32 | (1) |
|
|
33 | (34) |
|
|
33 | (1) |
|
Introducing Domain Name Services |
|
|
33 | (3) |
|
|
34 | (2) |
|
|
36 | (2) |
|
|
38 | (4) |
|
|
42 | (4) |
|
|
42 | (1) |
|
|
43 | (1) |
|
|
43 | (1) |
|
|
44 | (1) |
|
|
44 | (1) |
|
|
44 | (1) |
|
|
45 | (1) |
|
|
45 | (1) |
|
|
46 | (1) |
|
|
46 | (11) |
|
|
46 | (1) |
|
Setting up the caching name server |
|
|
47 | (3) |
|
Configuring IPTables for DNS |
|
|
50 | (3) |
|
|
53 | (2) |
|
|
55 | (1) |
|
Using the top-level DNS servers |
|
|
56 | (1) |
|
Creating a primary name server |
|
|
57 | (9) |
|
Creating the forward zone file |
|
|
57 | (1) |
|
Adding the forward zone files to named.conf |
|
|
58 | (2) |
|
|
60 | (2) |
|
Creating the reverse zone file |
|
|
62 | (1) |
|
Add the reverse zone to named.conf |
|
|
63 | (3) |
|
|
66 | (1) |
|
|
66 | (1) |
|
Chapter 5 Remote Access with SSH |
|
|
67 | (20) |
|
|
67 | (1) |
|
|
67 | (1) |
|
|
68 | (2) |
|
|
70 | (1) |
|
|
71 | (7) |
|
|
72 | (6) |
|
|
78 | (3) |
|
|
80 | (1) |
|
|
81 | (3) |
|
|
83 | (1) |
|
|
84 | (1) |
|
|
85 | (2) |
|
Chapter 6 Routing and Firewalls |
|
|
87 | (38) |
|
|
87 | (1) |
|
|
87 | (2) |
|
|
89 | (4) |
|
|
90 | (1) |
|
Create an interface configuration File |
|
|
90 | (3) |
|
The interface configuration file |
|
|
93 | (3) |
|
|
96 | (1) |
|
|
97 | (2) |
|
|
99 | (11) |
|
|
100 | (1) |
|
|
101 | (1) |
|
|
102 | (4) |
|
|
106 | (4) |
|
|
110 | (8) |
|
|
110 | (2) |
|
|
112 | (6) |
|
|
118 | (1) |
|
|
119 | (4) |
|
|
123 | (1) |
|
|
123 | (2) |
|
Chapter 7 Introducing Email |
|
|
125 | (34) |
|
|
125 | (1) |
|
|
125 | (2) |
|
|
126 | (1) |
|
|
127 | (2) |
|
|
129 | (5) |
|
|
129 | (5) |
|
|
134 | (13) |
|
|
134 | (1) |
|
|
135 | (10) |
|
Firewall and DNS configuration |
|
|
145 | (2) |
|
|
147 | (3) |
|
|
150 | (4) |
|
|
154 | (1) |
|
|
155 | (2) |
|
|
157 | (1) |
|
|
157 | (1) |
|
There is no delivery guarantee |
|
|
157 | (1) |
|
|
158 | (1) |
|
|
158 | (1) |
|
|
159 | (28) |
|
|
159 | (1) |
|
|
159 | (1) |
|
|
160 | (3) |
|
|
163 | (3) |
|
Configuring IMAP on the server |
|
|
163 | (3) |
|
|
166 | (4) |
|
|
170 | (5) |
|
|
171 | (1) |
|
|
171 | (4) |
|
|
175 | (10) |
|
|
185 | (1) |
|
|
185 | (1) |
|
|
186 | (1) |
|
|
187 | (28) |
|
|
187 | (1) |
|
|
187 | (1) |
|
|
188 | (1) |
|
|
189 | (1) |
|
|
189 | (1) |
|
|
190 | (1) |
|
|
191 | (1) |
|
|
192 | (1) |
|
|
193 | (1) |
|
|
194 | (18) |
|
|
194 | (1) |
|
Hacking mimedefang-filter |
|
|
195 | (7) |
|
|
202 | (1) |
|
|
203 | (3) |
|
Creating SpamAssassin rules |
|
|
206 | (6) |
|
|
212 | (1) |
|
|
212 | (1) |
|
|
213 | (2) |
|
Chapter 10 Apache Web Server |
|
|
215 | (20) |
|
|
215 | (1) |
|
|
215 | (1) |
|
|
216 | (1) |
|
|
216 | (3) |
|
Creating a simple index file |
|
|
219 | (2) |
|
|
221 | (1) |
|
Using Telnet to test the web site |
|
|
222 | (1) |
|
Good practice configuration |
|
|
223 | (1) |
|
|
224 | (4) |
|
Configuring the primary virtual host |
|
|
224 | (2) |
|
Configuring the second virtual host |
|
|
226 | (2) |
|
|
228 | (5) |
|
|
228 | (2) |
|
|
230 | (1) |
|
Redirecting the web page to CGI |
|
|
231 | (2) |
|
Refreshing the page automatically |
|
|
233 | (1) |
|
|
233 | (1) |
|
|
234 | (1) |
|
|
235 | (16) |
|
|
235 | (1) |
|
|
235 | (1) |
|
|
236 | (1) |
|
|
237 | (2) |
|
|
239 | (1) |
|
Creating the WordPress Database |
|
|
240 | (1) |
|
|
241 | (3) |
|
|
244 | (2) |
|
|
246 | (1) |
|
|
247 | (2) |
|
|
249 | (1) |
|
|
250 | (1) |
|
|
251 | (14) |
|
|
251 | (1) |
|
|
251 | (1) |
|
|
252 | (1) |
|
Integrating MailMan with Apache |
|
|
252 | (1) |
|
|
253 | (3) |
|
|
256 | (1) |
|
|
257 | (2) |
|
|
259 | (1) |
|
|
260 | (2) |
|
Rejections from large email services |
|
|
262 | (1) |
|
|
263 | (1) |
|
|
264 | (1) |
|
|
264 | (1) |
|
|
265 | (50) |
|
|
265 | (1) |
|
|
265 | (1) |
|
|
266 | (2) |
|
|
268 | (3) |
|
|
271 | (1) |
|
|
271 | (13) |
|
Installation and preparation of VSFTP |
|
|
271 | (3) |
|
|
274 | (2) |
|
Firewall configuration for FTP |
|
|
276 | (4) |
|
|
280 | (2) |
|
Securing VSFTP with encryption |
|
|
282 | (2) |
|
|
284 | (9) |
|
|
284 | (7) |
|
|
291 | (1) |
|
|
292 | (1) |
|
|
293 | (9) |
|
|
299 | (3) |
|
|
302 | (4) |
|
Midnight Commander and SAMBA |
|
|
306 | (1) |
|
|
306 | (6) |
|
|
312 | (1) |
|
|
313 | (2) |
|
Chapter 14 Remote Desktop Access |
|
|
315 | (12) |
|
|
315 | (1) |
|
|
315 | (1) |
|
|
316 | (5) |
|
|
321 | (2) |
|
|
323 | (1) |
|
Blank TigerVNC view screen |
|
|
323 | (1) |
|
|
324 | (1) |
|
|
324 | (3) |
|
Chapter 15 Network Time Protocol |
|
|
327 | (18) |
|
|
327 | (1) |
|
|
327 | (1) |
|
|
328 | (1) |
|
|
329 | (1) |
|
|
330 | (1) |
|
|
330 | (4) |
|
Configuring NTP with Chrony |
|
|
334 | (4) |
|
Configuring the NTP server |
|
|
334 | (2) |
|
Configuring the client and testing |
|
|
336 | (2) |
|
Chronyc as an interactive tool |
|
|
338 | (1) |
|
Setting the hardware clock |
|
|
339 | (1) |
|
|
340 | (3) |
|
|
343 | (1) |
|
|
344 | (1) |
|
|
345 | (38) |
|
|
345 | (1) |
|
|
345 | (1) |
|
|
346 | (4) |
|
|
346 | (1) |
|
|
346 | (4) |
|
|
350 | (2) |
|
|
352 | (3) |
|
|
355 | (8) |
|
|
356 | (4) |
|
|
360 | (3) |
|
|
363 | (1) |
|
Restrict SSH remote root login |
|
|
363 | (1) |
|
|
364 | (10) |
|
|
364 | (5) |
|
|
369 | (2) |
|
|
371 | (3) |
|
|
374 | (6) |
|
Additional SELinux considerations |
|
|
380 | (1) |
|
|
380 | (1) |
|
|
381 | (1) |
|
|
381 | (2) |
|
Chapter 17 Advanced Package Management |
|
|
383 | (18) |
|
|
383 | (1) |
|
|
383 | (1) |
|
|
384 | (4) |
|
|
388 | (6) |
|
|
388 | (2) |
|
|
390 | (1) |
|
|
390 | (1) |
|
|
391 | (1) |
|
|
392 | (1) |
|
|
392 | (1) |
|
|
392 | (1) |
|
|
393 | (1) |
|
|
393 | (1) |
|
|
394 | (2) |
|
|
396 | (1) |
|
|
397 | (1) |
|
Rebuilding a corrupted RPM database |
|
|
398 | (1) |
|
|
398 | (1) |
|
|
399 | (2) |
|
Chapter 18 Where Do I Go from Here? |
|
|
401 | (8) |
|
|
401 | (1) |
|
|
401 | (1) |
|
|
402 | (1) |
|
|
403 | (1) |
|
|
404 | (1) |
|
|
405 | (1) |
|
|
405 | (1) |
|
|
405 | (1) |
|
|
406 | (3) |
|
|
409 | (6) |
|
|
409 | (1) |
|
|
410 | (5) |
Index |
|
415 | |