About the Author |
|
xiii | |
About the Technical Reviewer |
|
xv | |
Acknowledgements |
|
xvii | |
Introduction |
|
xix | |
|
|
1 | (22) |
|
|
1 | (12) |
|
|
13 | (10) |
|
Chapter 2 Basic Administration |
|
|
23 | (36) |
|
|
23 | (2) |
|
2.1.1 Directories and Their Contents (Is and cd) |
|
|
23 | (1) |
|
|
24 | (1) |
|
2.2 Creating and Editing Files |
|
|
25 | (8) |
|
|
25 | (2) |
|
|
27 | (1) |
|
|
28 | (1) |
|
|
29 | (1) |
|
|
30 | (1) |
|
|
31 | (1) |
|
|
32 | (1) |
|
|
32 | (1) |
|
|
32 | (1) |
|
|
33 | (1) |
|
|
33 | (11) |
|
2.4.1 Configuring yum in CentOS 6 |
|
|
35 | (1) |
|
2.4.2 Configuring yum in CentOS 7 |
|
|
36 | (2) |
|
|
38 | (6) |
|
2.5 Graphical Environment |
|
|
44 | (7) |
|
|
44 | (4) |
|
|
48 | (3) |
|
2.6 Other Useful Commands |
|
|
51 | (2) |
|
|
51 | (1) |
|
|
51 | (2) |
|
|
53 | (1) |
|
|
53 | (1) |
|
|
53 | (6) |
|
|
59 | (14) |
|
|
59 | (8) |
|
|
60 | (1) |
|
3.1.2 Unicast, Multicast, and Broadcast |
|
|
60 | (1) |
|
3.1.3 IPv4 Configuration in CentOS |
|
|
61 | (6) |
|
|
67 | (2) |
|
|
69 | (4) |
|
|
69 | (1) |
|
|
70 | (1) |
|
|
70 | (2) |
|
|
72 | (1) |
|
|
72 | (1) |
|
|
73 | (50) |
|
|
73 | (2) |
|
4.2 Installing a DNS Server |
|
|
75 | (4) |
|
4.2.1 Starting the Service in CentOS 6 |
|
|
76 | (1) |
|
4.2.2 Starting the Service in CentOS 7 |
|
|
77 | (2) |
|
4.3 Installing a Master Server |
|
|
79 | (11) |
|
|
90 | (3) |
|
4.5 Slave Servers and Zone Transfers |
|
|
93 | (9) |
|
|
102 | (5) |
|
|
107 | (3) |
|
|
110 | (5) |
|
|
110 | (3) |
|
|
113 | (1) |
|
|
114 | (1) |
|
|
115 | (4) |
|
4.9.1 A Computer Can't Resolve Names |
|
|
115 | (1) |
|
4.9.2 Many Computers Can't Resolve Names |
|
|
116 | (2) |
|
4.9.3 Master and Slave Servers Don't Have the Same Information |
|
|
118 | (1) |
|
|
119 | (4) |
|
4.10.1 Journalcti (only in CentOS 7) |
|
|
120 | (3) |
|
|
123 | (28) |
|
5.1 Installing a DHCP Server |
|
|
124 | (6) |
|
|
125 | (3) |
|
|
128 | (2) |
|
5.2 Troubleshooting and Diagnostic Tools |
|
|
130 | (5) |
|
5.3 DHCP and DNS Dynamic Update |
|
|
135 | (16) |
|
|
145 | (6) |
|
|
151 | (18) |
|
|
151 | (4) |
|
|
155 | (8) |
|
|
157 | (4) |
|
|
161 | (1) |
|
6.2.3 Authenticating with Keys |
|
|
162 | (1) |
|
|
163 | (6) |
|
|
169 | (30) |
|
7.1 Installing the Apache Web Server |
|
|
169 | (2) |
|
|
171 | (1) |
|
7.3 Configuring the Web Site |
|
|
172 | (2) |
|
|
174 | (4) |
|
|
178 | (6) |
|
7.5.1 Host-Based Security |
|
|
178 | (3) |
|
7.5.2 User-Based Security |
|
|
181 | (3) |
|
|
184 | (1) |
|
|
185 | (14) |
|
7.7.1 Certificate Creation with openSSL |
|
|
187 | (8) |
|
7.7.2 Certificate Creation with certbot |
|
|
195 | (4) |
|
|
199 | (30) |
|
8.1 Installing an FTP Server on CentOS |
|
|
199 | (1) |
|
8.2 Connecting from a Linux Client |
|
|
200 | (14) |
|
8.2.1 Access As an Anonymous User |
|
|
201 | (12) |
|
8.2.2 Connecting As a Local User |
|
|
213 | (1) |
|
8.3 Connecting from a Windows Client |
|
|
214 | (2) |
|
8.4 Analyzing the FTP with Telnet |
|
|
216 | (5) |
|
|
221 | (8) |
|
8.5.1 Generating the Certificate |
|
|
221 | (1) |
|
8.5.2 Configuring vsftpd As an FTP Secure Server |
|
|
222 | (1) |
|
8.5.3 Connecting with Filezilla |
|
|
223 | (6) |
|
|
229 | (60) |
|
9.1 Communication Between Local Users |
|
|
229 | (2) |
|
9.2 Communication Between Remote Systems |
|
|
231 | (3) |
|
|
234 | (5) |
|
|
239 | (6) |
|
|
245 | (14) |
|
|
247 | (6) |
|
|
253 | (6) |
|
|
259 | (5) |
|
|
264 | (11) |
|
9.7.1 Securing the SMTP Connection |
|
|
264 | (4) |
|
|
268 | (6) |
|
|
274 | (1) |
|
|
275 | (5) |
|
|
280 | (9) |
|
|
289 | (16) |
|
10.1 Firewall in CentOS 6 |
|
|
289 | (11) |
|
10.1.1 Saving and Restoring the Configuration |
|
|
294 | (3) |
|
|
297 | (1) |
|
10.1.3 Redirecting Traffic to a Different Host |
|
|
298 | (1) |
|
|
299 | (1) |
|
10.2 Firewall in CentOS 7 |
|
|
300 | (5) |
|
10.2.1 Saving and Restoring Configuration |
|
|
303 | (1) |
|
|
304 | (1) |
|
10.2.3 Redirecting Traffic to a Different Host |
|
|
304 | (1) |
|
|
305 | (32) |
|
|
305 | (1) |
|
11.2 Customizing the Installation |
|
|
306 | (12) |
|
|
306 | (6) |
|
|
312 | (5) |
|
|
317 | (1) |
|
11.3 Securing LDAP Connections with TLS |
|
|
318 | (7) |
|
|
318 | (4) |
|
11.3.2 Securing the LDAP Protocol |
|
|
322 | (3) |
|
11.4 Authenticating Users with LDAP |
|
|
325 | (4) |
|
|
329 | (3) |
|
|
332 | (5) |
Index |
|
337 | |