Professional Documents
Culture Documents
M4 Slides Network Services
M4 Slides Network Services
SoftUni Team
Technical Trainers
Software University
https://softuni.bg
Have a Question?
sli.do
#LSA-Advanced
facebook.com/groups/
LinuxSystemAdministrationAdvancedApril2022
2
Previous Module (M3)
Quick Overview
What We Covered
1. Samba
2. Network File System
3. iSCSCI
4. GlusterFS
4
Homework Progress
Solutions for M3
Uploaded Solutions could be submitted
60 57
until 23:59:59 on
27.04.2022
50
50
Solutions for M4
40
could be submitted
30
until 23:59:59 on
04.05.2022
20
16
10
0
M1 M2 M3
5
This Module (M4)
Topics
Table of Contents
1. Web Servers
2. Printing Services
3. Directory Services
4. Mail Services
7
Network Services 101
Web Servers
Web Servers
Proprietary:
Apache HTTP
nginx lighttpd IIS, LiteSpeed,
Server
GWS
https://en.wikipedia.org/wiki/Web_server 9
HTTP Requests and Responses
10
Network Services 101
Apache
Apache
https://httpd.apache.org/docs/2.4/ 12
Apache
13
Network Services 101
Nginx
Nginx
Naming (CentOS)
Almost in tie Site Isolation
with Apache via Virtual Hosts • Package is nginx
• Service is nginx
• User is nginx
Considered faster Can work
than Apache as Proxy
Naming (Ubuntu)
• Package is nginx
Part of Can work • Service is nginx
the LEMP Stack as a Load Balancer • User is www-data
https://nginx.org/en/docs/ 15
Nginx
Logs Logs
/var/log/nginx /var/log/nginx
16
Network Services 101
Printing Services
Common UNIX Printing System (CUPS)
18
Common UNIX Printing System (CUPS)
Accept Enable
Print Request Print Queue Printer
Reject Disable
cupsaccept
lp (lpr), lpq, lprm,
cupsreject
cupsctl lpstat, lpoptions,
cupsenable
lpadmin, …
cupsdisable
19
Practice: Network Services 101
Network Services 102
Domain Name System (DNS)
Domain Name System (DNS)
Hierarchical and decentralized naming system for computers, services, or other resources
connected to a network
https://en.wikipedia.org/wiki/Domain_Name_System 22
DNS Record Types
A PTR
SOA TXT
Host address IPv4 Pointer
Start of Authority Descriptive text
(host to address) (address to host)
AAAA
NS MX CNAME
Host address IPv6
Name Server Mail Exchange Canonical name
(Host to address)
23
Berkley Internet Name Domain (BIND)
24
Network Services 102
Directory Services
Lightweight Directory Services
Common attribute names are organization (o), organizational unit (ou), common name (cn), domain
component (dc), etc.
https://ldap.com/ 26
OpenLDAP
https://www.openldap.org/ 27
389 Directory Server
Alternative to
OpenLDAP with
Active Directory users Graphical console for
better Multi-master
and groups users, groups, and
documentation, replication
synchronization server management
support and active
development
http://www.port389.org/docs/389ds/documentation.html 28
Kerberos
https://web.mit.edu/kerberos/ 29
System Security Services Daemon (Sssd)
Provides
Supports
authentication,
Available for both authentication both Service: sssd
account mapping,
Linux and FreeBSD through LDAP and Config file: sssd.conf
credentials caching,
Kerberos
etc.
https://docs.pagure.org/SSSD.sssd/ 30
Network Services 102
FreeIPA
FreeIPA
Identity Policy
Authentication
(machine, user, (host-based access
(or Audit)*
groups, …) control)
389 Directory Server, Kerberos, NTP, DNS, and Dogtag + Both Web and
CLI tools
https://www.freeipa.org/page/Main_Page 32
Practice: Network Services 102
Network Services 103
Mail Services
Mail Components
(Enhanced) Simple
Internet Message
Mail Transfer Post Office Protocol
Access Protocol Sendmail
Protocol or (E)SMTP version 3 or POP3(S)
version 4 or IMAP(S) Exim
Postfix
25 or 587/tcp, 110/tcp, 995/tcp
143/tcp, 993/tcp
465/tcp
Mail Message
35
Mail Components
Sender Receiver
Mail User Mail Mail Mail
Agent Transport Transport Delivery
(MUA) Agent Agent Agent
(MTA) (MTA) (MDA)
Mail Access
Mail User Message Agent
Submission
Agent Store (AA)
Agent
(MUA)
(MSA)
Mail User
Agent
(MUA)
36
Postfix
postalias
pickup postcat
master sendmail
Watches for new postconf
Supervisor mailq
messages in the postfix
process newaliases
spool smtp postmap
lmtp postsuper
local
virtual
qmgr /etc/postfix/master.cf
cleanup pipe
Receives /etc/postfix/main.cf
& /var/spool/postfix/
messages and
trivial-rewrite /var/spool/mail/
sends them
/var/log/maillog | mail.log
http://www.postfix.org/documentation.html 37
Dovecot
Supports both
Secure and Supports both Supports both
mbox and
scalable IMAP and POP3 Postfix and Exim
Maildir formats
https://doc.dovecot.org/ 38
Practice: Network Services 103
Questions?
© SoftUni – https://about.softuni.bg. Copyrighted document. Unauthorized copy, reproduction or use is not permitted.
SoftUni Diamond Partners
Educational Partners
42
License
43
Trainings @ Software University (SoftUni)
Software University – High-Quality Education,
Profession and Job for Software Developers
softuni.bg, about.softuni.bg
Software University Foundation
softuni.foundation
Software University @ Facebook
facebook.com/SoftwareUniversity
Software University Forums
forum.softuni.bg
4