2026-07-20 16:59

Status:


SAIIS - Module 2 - Network and Infrastructure Services

==Intro To IT Infrastructure Services

  • What are IT infrastructure Services:

    • IT infrastructure Services are what allow an organization to function, including things like connecting to the internet, how to set up a network, and how to connect networks as more
    • This module will be about physical things like servers and how to set them up, and a bunch on the network side of things
  • The Role of IT infrastructure Services in SysAdmin:

    • In a smaller company, a single person could be responsible for all of the different services needed to run a company
    • However in larger companies, this may be managed by multiple people
    • This module will also cover IaaS or infrastructure as a service via the cloud
  • Types of IT Infrastructure Services:

    • Pasted image 20260721120330.png

    • If you do not want to be responsible for a lot of the above, you can basically use the cloud to outsource the managing of these systems and hardware for you basically

    • IaaS providers give you preconfigured virtual machines that you can use as if you had a physical server

    • Some popular IaaS providers include Amazon Elastic Compute Cloud (Amazon EC-2), Linode, Windows Azure, and Google Compute Engine

    • An organization’s network is not going to be exactly the same as your home network, you’re going to have multiple computers on different subnets of the network

    • DNS needs to work, etc

    • Instead of just IaaS there is also NaaS which is Networking as a service, it basically makes it easy to set up your own network and not deal with the expensive networking hardware

    • It also means that companies do not need to set up their own WANs, their own security, and so on and so forth either

    • You also might need several other programs and pieces of software in order to perform your job at a company. Instead of just managing the software yourself, you can also then do SaaS or Software as a Service, basically lets you use things like Microsoft office 365 that you purchase and can use inside of a web browser instead of installing it on your machine

    • There is also given things like this for software engineers, they need specific IDEs or web servers, or even dependencies and databases to store all of this information, which you can also outsource to another company

    • PaaS or Platform as a Service this basically allows you to have a whole wide system of things like platform to code, store info in a data base, and host a server all on one platform, outsourced to the cloud

==Physical Infrastructure Services

  • Server Operating Systems:

    • Basically just proxmox and other such hypervisor servers, servers generally run linux as a means of their existence
    • There are several different operating systems specialized for a server and whatever it is that you want that server to do
  • Supplemental Reading for Server Operating Systems:

  • Virtualization:

    • You can run your instances for your servers on either dedicated hardware, or via a virtualized instance on a server
    • You basically virtualize a bunch of different servers or instances of a guest OS on one main hypervisor
    • Each given instance will contain a single service
    • A service running on dedicated hardware will run better than in a virtualized environment
    • However, it can be expensive, and you can generally save a lot of money by putting the most of them on your virtual server, it is also a lot easier to generally maintain your servers as well just by moving them between different machines or something like that
  • Remote Access Revisited:

    • By having virtual servers, you can also remotely access them from anywhere in the world given a proper connection
    • You can remotely access a server via the SSH protocol, as long as you have a way of connecting over to the network that the machine is on, whether by being on the same network, or via VPN tunneling
    • For linux clients you need to have openssh installed on your computer, done via sudo apt-get install openssh
    • Then you can install the SSH server on the server you wish to have, all this does is basically listen for any incoming SSH commands
    • Windows has similar items, review the OS&Y becoming a power user model series for more info
  • Learn About Remote Access and SSH:

==Network Services

  • FTP, SFTP, and TFTP:

    • A common network service used in organizations is a file transfer service

    • It basically makes it pretty easy and fast to copy files between machines over the network as opposed to doing it via things like a USB flash drive

    • Pasted image 20260721145221.png

    • Here are some file transfer protocols

      1. FTP (File Transfer Protocol) - a legacy way of transferring files, it has no encryption however, it basically works very similar to the way SSH does, and both client and server need it installed. it is still used today, mostly for web content
      2. SFTP (Secure File Transfer Protocol) basically very similar to FTP, however this time it actually has the ability to handle encryption, and is much safer for data transfer.
      3. TFTP (Trivial File Transfer Protocol) it is a simple way to to transfer files, with no authentication needed, so basically no signing it. It would be good for hosting installation files that basically anyone would be able to access or download
  • NTP:

    • Network Time Protocol (NTP)- one of the oldest protocols still in use today, and it used to keep the clock synchronized on machines connected to a network

    • Airports utilize synced clock systems in order to keep the correct time basically

    • Machines need to have accurate time over a network in order to work properly. This could be for things like security reasons and otherwise

    • You might want to set up an NTP server for your network as a sysadmin

    • You can either set up your own, or even public ones, which are organized by other people

    • If you have thousands of different machines, it is generally best to set up your own NTP server rather than a public server

  • Network Support Services Revisited:

    • Intranet- an internal network inside a company; accessible if you’re on a company’s network, basically their Local Access Network no?

    • Think of it as basically a website that might only be accessible to people on the local network of the organization, and it can host information on how to do your job on that said website, or news update, or even other such things

    • These are mostly used inside of larger scale companies however

    • Proxy Server- acts as an intermediary between a company’s network and the internet, basically allowing for the filtering of traffic for the company, both as a way of security I am sure, but also then making sure that people don’t go onto the wrong website or something like that

  • DNS:

    • Domain Name System (DNS)- maps human-understandable names to IP addresses

    • Basically, very important because it is what allows for people to access websites by their given names instead of having to type in their IP addresses

    • Whenever you are using a network, and you type in a name for a website, you are generally using whatever DNS server the router / gateway you have is connected to

    • It updates your settings to use that DNS server’s address, and generally it just forwards the stream up to your ISP’s DNS server

    • So why try and set up your own DNS server?

    • First, if you are running a website, you want to be able to tell the internet what IP address to see your website at, basically, you can run your own local DNS server that is the last of the three parts in the DNS process, from the 13 root, into the domain, into the locals

    • You can also add in domain names for your own servers so you can ssh into them much easier, letting you just remember their names instead of needing to remember their ip address

  • DNS for Web Servers:

    • You can store your website content on your web server, who would have been able to guess?

    • If clients want to reach our website though, we need to set up a DNS in order for them to just be able to type in a name and be able to find the server hosting the site

    • First, you need to buy a domain name from a domain name registrar

    • You can then point all of your website files over to this domain name, you can do this via a cloud hosting provider, or do it yourself on your web server

    • Basically though, you need a way to set up your domain name to point over to the IP address of your personal server that is hosting your website files

    • You can do this via the registrar which provides DNS settings and you can pass in the IP Address of where the data is stored

    • However, you can set up your own Authoritative DNS Server for that domain name

  • DNS For Internal Networks:

    • Another reason why you might want to have a DNS server is to map your own network’s servers in order to give them easier names

    • This can be done through several methods on your DNS server, one being using host files that store the static IP addresses of your servers, allowing you to map IP addresses to given names, these files, in linux, are stored under /etc/hosts

    • In order to update this, you would need to change this file for every single computer on your network, which is tedious

    • You can basically make this more scalable by setting up a DNS server that contains a list of all of the network’s computer names mapped to their IP addresses

    • Then you change all of the computers to use your DNS server instead of the ISP’s DNS server

    • This basically allows you to control your DNS, and it lets you pretty much do it manually as well

  • DHCP:

    • When managing a computer on an address, you can either manually give it an IP address, or you can give it one via the Dynamic Host Configuration Protocol
    • If you use the static option, then generally you need to keep track of all of the IP addresses that were used
    • However, you can also then set up DHCP which is a server that would lend them one of the available IP addresses to use, see the BBCN module sets for learning more about the different processes
    • If you want to set up your own DHCP server, you will need to know your subnet mask range for how devices you might have, your already static IP addresses that your other servers might be using so they are not given out
    • Different DHCP configurations have different settings based on whether it wants it to remember the last IP it gave to a connected device, or forget them entirely, or whatever else it might like to do

==Troubleshooting Network Services

  • Unable to Resolve a Hostname or Domain Name:

    • If you are unable to resolve a given host name, then it might have you think that the connection is just the thing that is wrong
    • When in reality it would be just that the DNS for that is wrong
    • A good way to check for this would be to ping the IP address of that server, meaning that you can see that it would be the DNS that is wrong if the ping doesnt work for the server name but it does for the server IP
    • You can use ns-lookup the command, in order to see whether you are connecting over to a given DNS server
    • This will show you the resolving name, as well as then the IP address of where that IP service would be at, if the two do not match with your Ping, then that means you have the www. google. com domain name configured to some other IP address

==Managing System Services

  • What do Services Look Like in Action:

    • These services, things like DHCP or DNS or other such things, run as daemons, or background processes on your server

    • This means that the program doesn’t need to interact with a user through a graphical interface or the command line interface to provide the right service

    • These systems have configuration files, which you as a sysadmin will be able to edit to have them fit your specific needs for how they behave

    • Some services do have GUIs for these service changes, but some do not

    • Services are usually configured to start when the machine boots, so that if there is a power outage or a similar even that causes the machine to reboot, you won’t need a system admin to manually start the service

    • You can change this in the config files of course

  • Managing Services in Linux:

    • Ubuntu Installations have a daemon that runs in the background using NTP in order to synchronize the clock
    • You can use the service ntp status command to see this service
    • Basically a way to see smaller adjustments or more given data about a service that you might be trying to manage as a sys admin
    • Although, keep in mind that I believe in more modern versions of the ubuntu installation is the systemctl command, see General Commands For Command Line Interfaces in the management of processes section
  • Managing Services in Windows:

    • You can basically get the services on a windows machine by going into powershell and typing in Get-Service
    • You can use the cli, but there is also a Services management GUI that lets you see all of the given services running on your machine
  • Configuring Services in Linux:

    • You need to be able to configure your services based on your company’s policies and other given things
    • You can change the configuration files to get these needs
    • The configuration files for your installed services are located inside of the /etc directory
    • You generally have to manually edit this configuration files inside of a given text editor
  • Configuring Services in Windows:

    • You can use the turn services on and off function inside of the windows control panel to be able to configure a service via the GUI (I might low-key be lyin)

    • You can install programs by going to settings, Server Manager->dashboard, for some specific services I would guess

    • Inside of the Service Manager, you can basically configure your services by going over to their respective tabs on the left hand side, and right clicking them to change whatever you’d like

==Configuring Network Services

  • Configuring DNS with Dnsmasq:

    • Dnsmasq- a program that provides DNS, DHCP, TFTP, and PXE services in a simple package
    • It will lets you also do some hands on configuration of these services, though it is not as complex as other services
    • To install it, you do sudo apt install dnsmasq
    • Once enabled, it is immediately running, and has a cache set up for DNS queries, meaning you can request it and it will remember the request
    • You can use the dig command in order to try and see the inner DNS information for this process from your given DNS server
  • Configuring DHCP with Dnsmasq:

    • You can also use dnsmasq in order to use it as a DHCP server
    • Generally, the DHCP server, the thing that stores the information of the IP addresses, and the DHCP client, the one that requests them, and gets the IP address, are two different machines
    • You can do this by basically configuring the files for the dnsmasq, generally this looks really complicated from how he did it
    • You can have more than one Dnsmasq server running at the same time at it’s own interface
    • You can order out the range of addresses that you want to hang out, make sure to do it safely so your static IP addresses are not handed out, and the IP address of the dnsmasq machine is not handed out either
    • You can also change the time duration of how long each IP address is handed out before it has to request another one again, so it could be something like 12 hours or whatever
    • You can also tell Dnsmasq to listen for DHCP queries on a given interface with the configuration you set up
  • dnsmasq:

    • In large organizations, you may require separate solutions to handle all your networking needs. In smaller organizations, you may be better served by using an all in one program to handle DNS requests and DHCP. The following reference guide covers how dnsmasq can be used to enable all of these functions as well as syntax and how to install and configure a Domain Name System (DNS) and Dynamic Host Configuration Protocol server (DHCP) on your local network.

    • dnsmasq Reference Guide

==Glossary

Domain Name System (DNS): A global and highly distributed network service that resolves strings of letters, such as a website name, into an IP address

Intranet: An internal network inside a company, accessible if you are on a company’s network

NTP: Network Time Protocol, keeping clocks synchronized on machines connected to a network

Proxy server: An intermediary between a company’s network and the Internet, receiving network traffic and relaying that information to the company network

Server operating systems: Regular operating systems that are optimized for server functionality


References