About the Author |
|
xv | |
About the Technical Reviewer |
|
xvii | |
|
Chapter 1 Introduction And Preparations |
|
|
1 | (14) |
|
|
2 | (1) |
|
|
2 | (1) |
|
Required Knowledge and Experience |
|
|
2 | (2) |
|
Required Time and Motivation |
|
|
3 | (1) |
|
External Account for Email and Disk Space |
|
|
4 | (1) |
|
Selecting a System and a Provider |
|
|
5 | (7) |
|
|
5 | (2) |
|
|
7 | (1) |
|
|
8 | (1) |
|
|
9 | (1) |
|
BIOS or UEFI Configuration |
|
|
10 | (1) |
|
|
11 | (1) |
|
Names and Addresses Used in This Book |
|
|
12 | (2) |
|
|
12 | (1) |
|
|
12 | (1) |
|
|
13 | (1) |
|
|
14 | (1) |
|
|
14 | (1) |
|
Chapter 2 Unix And Posix In A Few Words |
|
|
15 | (28) |
|
|
15 | (1) |
|
|
16 | (7) |
|
|
19 | (3) |
|
|
22 | (1) |
|
|
23 | (6) |
|
|
29 | (1) |
|
|
29 | (1) |
|
|
30 | (4) |
|
|
31 | (1) |
|
|
31 | (2) |
|
Switching Off/Restarting the System |
|
|
33 | (1) |
|
|
34 | (5) |
|
Starting and Stopping Daemons |
|
|
35 | (3) |
|
Other Background Processes |
|
|
38 | (1) |
|
|
39 | (1) |
|
|
39 | (3) |
|
|
40 | (1) |
|
|
41 | (1) |
|
Request for Comments (RFC) |
|
|
42 | (1) |
|
|
42 | (1) |
|
Chapter 3 Software Management |
|
|
43 | (28) |
|
|
45 | (12) |
|
|
45 | (1) |
|
|
46 | (11) |
|
|
57 | (5) |
|
|
59 | (1) |
|
|
59 | (1) |
|
|
60 | (1) |
|
|
61 | (1) |
|
|
62 | (4) |
|
|
62 | (1) |
|
|
63 | (1) |
|
|
64 | (1) |
|
|
65 | (1) |
|
|
66 | (3) |
|
|
67 | (1) |
|
|
68 | (1) |
|
|
69 | (2) |
|
Chapter 4 Network Basics And Firewall |
|
|
71 | (28) |
|
|
71 | (8) |
|
About the Netmask and the Routing Prefix |
|
|
73 | (1) |
|
|
74 | (2) |
|
|
76 | (1) |
|
|
77 | (2) |
|
|
79 | (18) |
|
|
82 | (1) |
|
|
82 | (5) |
|
|
87 | (6) |
|
|
93 | (4) |
|
|
97 | (2) |
|
Chapter 5 User Management And Permissions |
|
|
99 | (42) |
|
|
99 | (21) |
|
|
100 | (5) |
|
|
105 | (4) |
|
|
109 | (1) |
|
|
109 | (1) |
|
|
110 | (2) |
|
|
112 | (2) |
|
|
114 | (1) |
|
Group Creation and Deletion |
|
|
115 | (1) |
|
Changing uroup Memberships |
|
|
116 | (3) |
|
|
119 | (1) |
|
|
120 | (1) |
|
|
121 | (7) |
|
|
128 | (7) |
|
|
135 | (4) |
|
|
135 | (3) |
|
|
138 | (1) |
|
|
139 | (1) |
|
|
139 | (1) |
|
Departure of a System Administrator |
|
|
139 | (1) |
|
|
140 | (1) |
|
Chapter 6 Domain Name System (Dns) |
|
|
141 | (18) |
|
|
143 | (1) |
|
|
143 | (1) |
|
|
144 | (1) |
|
|
144 | (1) |
|
|
144 | (3) |
|
|
147 | (8) |
|
|
147 | (6) |
|
Adding Zones to the Configuration |
|
|
153 | (1) |
|
Loading the Configuration |
|
|
154 | (1) |
|
|
155 | (2) |
|
|
157 | (1) |
|
|
158 | (1) |
|
Chapter 7 Secure Shell (Ssh) |
|
|
159 | (16) |
|
Installing and Configuring the SSH Server |
|
|
159 | (6) |
|
|
159 | (2) |
|
|
161 | (1) |
|
|
161 | (1) |
|
|
161 | (2) |
|
|
163 | (2) |
|
|
165 | (2) |
|
|
165 | (1) |
|
|
166 | (1) |
|
File Transfer via an SSH Connection |
|
|
167 | (2) |
|
|
167 | (1) |
|
|
168 | (1) |
|
|
169 | (1) |
|
SSH Keys Instead of Passwords |
|
|
169 | (5) |
|
|
170 | (2) |
|
Installing the Key on the Server |
|
|
172 | (1) |
|
|
173 | (1) |
|
Rejecting Password-Based Authentication |
|
|
174 | (1) |
|
|
174 | (1) |
|
Chapter 8 Task Scheduling |
|
|
175 | (8) |
|
Network Time Protocol (NTP) |
|
|
175 | (1) |
|
|
176 | (1) |
|
|
176 | (1) |
|
|
176 | (1) |
|
|
176 | (3) |
|
|
179 | (1) |
|
|
180 | (1) |
|
|
181 | (2) |
|
Chapter 9 Web Server Part 1: Apache/Nginx Basics |
|
|
183 | (44) |
|
|
186 | (1) |
|
|
187 | (9) |
|
|
187 | (1) |
|
|
188 | (1) |
|
|
188 | (1) |
|
|
188 | (1) |
|
|
189 | (7) |
|
|
196 | (7) |
|
|
196 | (1) |
|
|
196 | (1) |
|
|
197 | (1) |
|
|
197 | (1) |
|
|
198 | (5) |
|
|
203 | (1) |
|
|
203 | (6) |
|
|
204 | (1) |
|
|
204 | (1) |
|
|
204 | (1) |
|
|
205 | (4) |
|
|
209 | (2) |
|
|
209 | (1) |
|
|
210 | (1) |
|
A First Virtual Host or Virtual Server |
|
|
211 | (13) |
|
|
211 | (1) |
|
|
212 | (1) |
|
|
212 | (1) |
|
|
213 | (3) |
|
|
216 | (1) |
|
|
217 | (3) |
|
|
220 | (3) |
|
|
223 | (1) |
|
Replacing mod php with PHP-FPM |
|
|
224 | (1) |
|
|
225 | (2) |
|
Chapter 10 Traffic Encryption: Ssl/Tls |
|
|
227 | (12) |
|
|
229 | (8) |
|
|
229 | (2) |
|
Installation of the green.example.com Certificate |
|
|
231 | (4) |
|
|
235 | (2) |
|
|
237 | (1) |
|
|
237 | (2) |
|
|
239 | (42) |
|
|
240 | (5) |
|
|
245 | (8) |
|
|
245 | (1) |
|
|
246 | (1) |
|
|
247 | (1) |
|
|
247 | (2) |
|
|
249 | (4) |
|
|
253 | (7) |
|
|
254 | (1) |
|
|
255 | (1) |
|
|
256 | (1) |
|
|
256 | (1) |
|
|
257 | (3) |
|
Lightweight Directory Access Protocol (LDAP) |
|
|
260 | (19) |
|
|
261 | (1) |
|
|
262 | (5) |
|
|
267 | (5) |
|
|
272 | (1) |
|
|
272 | (1) |
|
|
273 | (6) |
|
|
279 | (1) |
|
|
279 | (1) |
|
|
280 | (1) |
|
|
280 | (1) |
|
|
280 | (1) |
|
|
281 | (28) |
|
|
284 | (1) |
|
|
284 | (1) |
|
Internet Message Access Protocol (IMAP) |
|
|
285 | (12) |
|
|
285 | (1) |
|
|
285 | (1) |
|
|
286 | (1) |
|
|
287 | (9) |
|
|
296 | (1) |
|
Simple Mail Transfer Protocol (SMTP) |
|
|
297 | (10) |
|
|
297 | (1) |
|
|
297 | (3) |
|
|
300 | (7) |
|
|
307 | (1) |
|
Basic Mail Server Finished |
|
|
307 | (1) |
|
|
307 | (2) |
|
Chapter 13 Web Server Part 2: Advanced Apache/Nginx |
|
|
309 | (30) |
|
|
309 | (3) |
|
CGI (Common Gateway Interface) |
|
|
312 | (2) |
|
|
313 | (1) |
|
|
313 | (1) |
|
|
314 | (3) |
|
|
314 | (2) |
|
|
316 | (1) |
|
|
317 | (4) |
|
|
317 | (3) |
|
|
320 | (1) |
|
|
321 | (13) |
|
|
323 | (2) |
|
|
325 | (2) |
|
|
327 | (7) |
|
|
334 | (1) |
|
|
335 | (3) |
|
|
336 | (1) |
|
|
337 | (1) |
|
|
337 | (1) |
|
|
338 | (1) |
|
|
338 | (1) |
|
|
338 | (1) |
|
Chapter 14 Advanced Email |
|
|
339 | (28) |
|
|
339 | (3) |
|
|
340 | (1) |
|
|
341 | (1) |
|
Manipulation of the Filters |
|
|
341 | (1) |
|
Fine-tuning the Postfix Configuration |
|
|
342 | (3) |
|
Verification of HELO/EHLO Command |
|
|
342 | (1) |
|
Verification of Addresses |
|
|
343 | (1) |
|
|
344 | (1) |
|
|
345 | (2) |
|
|
345 | (1) |
|
|
346 | (1) |
|
DNS Blackhole List (DNSBL) |
|
|
347 | (1) |
|
Sender Policy Framework (SPF) |
|
|
348 | (3) |
|
|
349 | (2) |
|
DomainKeys Identified Mail (DKIM) |
|
|
351 | (5) |
|
|
356 | (10) |
|
Reclassification of Emails |
|
|
361 | (5) |
|
|
366 | (1) |
|
|
366 | (1) |
|
Chapter 15 Backup And Monitoring |
|
|
367 | (8) |
|
|
368 | (3) |
|
What Needs to Be Backed Up? |
|
|
368 | (1) |
|
Where Are Backups Stored? |
|
|
369 | (1) |
|
When Are Backups Created? |
|
|
370 | (1) |
|
|
371 | (1) |
|
|
371 | (3) |
|
|
371 | (1) |
|
|
372 | (2) |
|
|
374 | (1) |
|
|
374 | (1) |
|
Chapter 16 Taking It Further |
|
|
375 | (8) |
|
Chroot and Virtualization |
|
|
375 | (1) |
|
|
376 | (1) |
|
|
377 | (1) |
|
|
378 | (2) |
|
Reduce the System Administrator's Work |
|
|
380 | (1) |
|
Web Hosting Control Panel |
|
|
380 | (1) |
|
|
381 | (1) |
|
|
381 | (2) |
Appendix: Default Port Numbers |
|
383 | (2) |
Index |
|
385 | |