Essential Services Flashcards

1
Q

What’s the purpose of a server?

A

The purpose of a server is usually to provide services to clients (“to serve” others).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which two types of clients do you know?

A

Clients and servers can be internal clients (in, e.g., a corporate network) or external (internet).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does IP stand for?

A

Internet Protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are Routers/Gateways used for?

A

Routers/Gateways are used to connect different networks in that they route packets originating from the source network to the destination network based on their destination IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are NAT Routers? What’s special about them?

A

NAT Routers, allow a single external IP address to be used by many private addresses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why are IPv4 addresses still in use?

A

A lot of devices still lack support for IPv6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How are the parts of IPv6 addresses separated?

A

By :

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does DNS stand for?

A

domain name system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the DNS do?

A

As IP addresses, consisting of several numbers, are hard to remember, the domain name system (DNS) has been put in place. Its purpose is the translation of names to IP addresses and back.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does the communication between client and DNS server work?

A

The client queries the DNS server to resolve the name, that is it asks the DNS server for the IP address associated with a given name. The DNS servers responds with an IP address and the client can connect via this IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How many ports are there per IP address?

A

65535 (different doors)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are well-known ports?

A

Standardised ports, whose port number is associated with a known service. (service = server)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What’s the job of the web server?

A

The web server is used, as the name suggests, to serve web pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How are web pages requested and transferred?

A

With the HTTP protocol (hyper text transfer protocol)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Name a popular web server

A

Apache 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does SSL stand for?

A

secure socket layer

17
Q

Name SSL libraries

A

OpenSSL or GnuTLS

18
Q

Why is configuration split across multiple files?

A

For better separation

19
Q

What are the most important configurations?

A
  • ServerAdmin
    Name (and e-mail address) of the server administrator
  • ServerName
    Name of the server, usually fully qualified domain name (FQDN)
  • DocumentRoot
    Where to look for documents to serve
  • SSLEngine
    Enable/disable encryption (SSL)
20
Q

What is a Virtual Host?

A

One Apache server can be configured to serve multiple domains and IP addresses. A Virtual Host is used to serve different domains or subdomains on the same IP address. Apache then decides upon connecting, based on the name, which virtual host has to respond (Name-based Virtual Hosts). Each Virtual Host can have its own set of Apache options defined.

21
Q

How can you extend Apache’s functionality of a basic server?

A

By using modules

22
Q

Name some Modules

A
  • Server Sided Scripts (PHP, WSGI, CGI, …)
  • Encryption Support (SSL)
  • Database Access (MySQL, PostgreSQL, SQLite, …)
  • File Serving Capabilities (WebDAV)
  • Proxy Support
23
Q

What is PHP?

A

A very powerful and common scripting language is PHP, the Hypertext Pre-Processor

24
Q

How and where are PHP scripts executed?

A

All PHP scripts are executed on the server and can run directly within Apache using the PHP interpreter (provided as an Apache Module).

25
Q

How are PHP scripts identified?

A

PHP scripts are identified by their file extension, nowadays most of the time simply .php

26
Q

Which applications are written in PHP?

A

Many modern web applications are written in PHP, examples include Webmail, Content Management Systems, Web Forms, Wiki Systems, etc.

27
Q

What can you find in /etc/php?

A

System-wide configuration for PHP and an Apache-specific configuration file.

28
Q

What’s SSH standard port?

A

22

29
Q

What can you do against SSH attackers?

A

It is good practice to change the port to a higher, unused number. However, this only reduces the amount of attacks, but is in no way a security concept (security by obscurity).

30
Q

How and why can you compare SSH and VPN?

A

SSH provides the ability to tunnel about anything over its encrypted channel. It thus provides nearly the capabilities of a fully-fledged virtual private network (VPN) solution.

31
Q

What is a Secure Shell Daemon?

A

Remote console login services are provided by the Secure Shell Daemon - ssh. It allows the user to remotely connect to a server and gain access to the console via an encrypted channel. Authentication can either be done via password or public key or even a combination thereof.

SSH also provides a secure way to copy files, without capabilities to list directory contents (scp). On the other hand, a secure implementation similar to FTP is availabe (sftp).

32
Q

Where lies the configuration of SSH?

A

The configuration of SSH is split into server and client side configuration files. Both files rely under the /etc/ssh directory and are even named very similarily.

33
Q

What is the SMTP Server?

A

The SMTP Server (Simple Mail Transfer Protocol) is used for sending an E-Mail from one machine to another (for example Postfix).

34
Q

What does IMAP stand for?

A

Internet Message Access Protocol

35
Q

What does POP stand for?

A

Post Office Protocol

36
Q

How does E-Mail communication work?

A

The SMTP Server sends an E-Mail from one machine to another. The E-Mail is then stored by the handling (receiving) SMTP service into the user’s inbox. An IMAP or POP server enable the receiver to check for and retrieve the message.

37
Q

Which ports do you need to run a secure, modern E-Mail system?

A

Ports 25, 143 and 110