Latest / CyberSecurity Summary / CentOS 6 Linux Server Cookbook: A Practical Guide to Installing, Configuring, and Administering the Centos Community-based Enterprise Server
Transcript
- 0:00Speaker 1: Welcome to the Deep Dive. We're the show where we
- 0:04Speaker 1: tackle a big pile of source material.
- 0:06Speaker 2: And we boil it all down for you, pulling out
- 0:08Speaker 2: the key insights you need to.
- 0:10Speaker 1: Know, basically saving you the reading time but giving you
- 0:12Speaker 1: the knowledge exactly. And today we are diving into something
- 0:16Speaker 1: pretty hands on excerpts from the Sendos six Linux Server cookbook.
- 0:23Speaker 1: Think of it like a set of technical recipes.
- 0:25Speaker 2: Right for getting a Linux server, specifically Cento six running
- 0:28Speaker 2: and managed properly.
- 0:30Speaker 1: So our mission, our goal for this deep dive is
- 0:32Speaker 1: to unpack the core tasks, the fundamental knowledge from these excerpts.
- 0:37Speaker 2: We want to pull out those key recipes that solve
- 0:40Speaker 2: the common problems you'd face administering a CentOS six box.
- 0:44Speaker 2: See what makes this guide useful and you spot the
- 0:47Speaker 2: really interesting bits.
- 0:48Speaker 1: It's like getting the chef's notes for building and running
- 0:51Speaker 1: a server. Now. It is technical, no doubt about it,
- 0:54Speaker 1: but we're going to translate the important stuff, highlight the
- 0:56Speaker 1: core steps. Whether you're just curious about servers, or maybe
- 1:00Speaker 1: you need to get up to speed quickly for work.
- 1:01Speaker 2: Or you just want to understand those basic build of blocks.
- 1:04Speaker 1: Right, let's dive in.
- 1:06Speaker 2: Okay, so where better to start than the beginning installation.
- 1:10Speaker 1: The source kicks off right there, and even before the
- 1:12Speaker 1: actual install, it highlights something simple but easy to forget.
- 1:17Speaker 1: Checking your installation media.
- 1:19Speaker 2: Yeah, verifying the integrity using the MT five some tool.
- 1:22Speaker 2: It mentions, it's like you wouldn't start cooking with ingredients
- 1:25Speaker 2: you weren't sure we're good.
- 1:26Speaker 1: Yeah, good point. Okay, so you've verified the download during
- 1:30Speaker 1: the install itself. What are the key checkpoints?
- 1:33Speaker 2: Well, the source stress is setting a proper host name.
- 1:36Speaker 2: Don't leave it as localhost dot local domain.
- 1:39Speaker 1: Oh yeah, that default is pretty useless on a network.
- 1:41Speaker 2: Totally give it a real name early. Also, confirming your
- 1:44Speaker 2: hard disk partitioning storage setup is fundamental.
- 1:48Speaker 1: Get that wrong and you're in for a headache later.
- 1:50Speaker 2: Definitely. And it touches on Grub the bootloader. Now, messing
- 1:54Speaker 2: deeply with Grub can be tricky even for experienced people.
- 1:57Speaker 2: Yeah right, but the book points out you can password
- 2:00Speaker 2: protect Grub during installation. That's a nice little security win.
- 2:04Speaker 1: Right at the start, the source seems to really push
- 2:07Speaker 1: for a minimal install Why go minimal when there are
- 2:10Speaker 1: those package groups you can just select?
- 2:12Speaker 2: Ah, that's a core philosophy here It boils down to
- 2:15Speaker 2: efficiency and really security security. How a minimal install gives
- 2:20Speaker 2: you only the absolute bear essentials. The idea is it's
- 2:23Speaker 2: much safer to add only what you need later, configuring
- 2:27Speaker 2: it carefully as you go, instead.
- 2:29Speaker 1: Of starting with a bunch of stuff you might not need,
- 2:31Speaker 1: which could have vulnerabilities.
- 2:32Speaker 2: Exactly, you reduce the initial attack surface. Fewer running services
- 2:36Speaker 2: means fewer potential ways in for an attacker, makes sense.
- 2:40Speaker 1: Less is more security wise? Okay, Minimal installed done? What
- 2:44Speaker 1: are the first basic config steps.
- 2:46Speaker 2: Post install essentials? The book hits things like changing the
- 2:50Speaker 2: time zone use the subtle it command, then make it
- 2:53Speaker 2: stick in your profile files like dot bash profile.
- 2:55Speaker 1: You can use location names or the post six format
- 2:58Speaker 1: like GMT five YEP.
- 2:59Speaker 2: Both options are covered and related to time. Synchronizing the
- 3:03Speaker 2: system clock with NTP, the Network Time Protocol.
- 3:06Speaker 1: Crucial for logs security, lots of things rely on accurate
- 3:09Speaker 1: time totally.
- 3:10Speaker 2: You'd use the NTPD service, configure it in EXITCNTP dot
- 3:13Speaker 2: com and you can check sync status with NTPPP.
- 3:17Speaker 1: But NTP isn't there by default on a minimal install.
- 3:19Speaker 2: Good point. The source notes that you'll need to yum
- 3:22Speaker 2: install NTP.
- 3:23Speaker 1: First, all right, networking the absolute backbone, setting a static
- 3:27Speaker 1: IP address versus just letting DHP assign one.
- 3:31Speaker 2: This is a key recipe for any server. The book
- 3:34Speaker 2: shows editing the interface can fig like if cfg eth zero. Oh.
- 3:40Speaker 2: The crucial bit is telling network manager to keep its
- 3:42Speaker 2: hands off by setting NM controlled no.
- 3:45Speaker 1: Ah. Okay, so you explicitly take control, right.
- 3:48Speaker 2: Then you set boot proto none and manually put in
- 3:50Speaker 2: your IPADR netmask and your gateway and epsconfit network predictable
- 3:55Speaker 2: fixed address essential for a server.
- 3:57Speaker 1: Got it? And then there's this thing called channel bonding
- 3:59Speaker 1: Ethernet bonding.
- 4:00Speaker 2: Yeah, that's about combining multiple network interfaces like two Ethernet
- 4:03Speaker 2: ports into one logical interface.
- 4:05Speaker 1: Why would you do that?
- 4:06Speaker 2: Two main reasons redundancy If one cable or port fails,
- 4:10Speaker 2: the other keeps working, or increased throughput, potentially doubling your bandwidth.
- 4:13Speaker 1: Okay, And the source gives the setup steps.
- 4:15Speaker 2: It gives the basics for creating the bond interface config
- 4:19Speaker 2: ifcfg bond zero and loading the bonding kernel module. It
- 4:23Speaker 2: sets remodprobe dot de bonding dot com. It mentions master
- 4:27Speaker 2: and slave interfaces and that you might need to experiment
- 4:30Speaker 2: with different bonding modes depending on your network switch and
- 4:33Speaker 2: what you need.
- 4:34Speaker 1: Sounds like something you need to test carefully. It also
- 4:36Speaker 1: covers setting the fully qualified domain name FQDN yeah.
- 4:40Speaker 2: Your server's full name on the network host name plus
- 4:43Speaker 2: domain name. The book shows you edicisconfin network and echosts,
- 4:48Speaker 2: and it throws in a reminder about valid characters and
- 4:50Speaker 2: length for host names. Easy details to miss.
- 4:53Speaker 1: Cylenex comes up next. Security Enhanced Linux big topic.
- 4:56Speaker 2: It is very powerful mandatory access control system. The source
- 5:00Speaker 2: introduces its purpose and shows how you can change its
- 5:03Speaker 2: mode enforcing, permissive or disabled by editing.
- 5:06Speaker 1: It sesses stanicfig but it also mentions reasons why you
- 5:09Speaker 1: might disable it seems counterintuitive for security.
- 5:12Speaker 2: Well, it acknowledges reality. Sometimes certain applications or say web
- 5:16Speaker 2: hosting control panels, just don't work properly with the Linux
- 5:19Speaker 2: enforcing rules. So while disabling it is a definite security hit,
- 5:23Speaker 2: the book lists as an option if compatibility is a
- 5:26Speaker 2: major roadblock, it's a tradeoff.
- 5:28Speaker 1: Another potential tradeoff mentioned is disabling IPv six.
- 5:32Speaker 2: Why IPv six is the future designed to fix IPv
- 5:36Speaker 2: four running out of addresses, But as the source notes,
- 5:39Speaker 2: maybe your network doesn't use it yet, or some services
- 5:41Speaker 2: aren't fully compatible.
- 5:43Speaker 1: So disabling it could simplify.
- 5:44Speaker 2: Things potentially, yeah, maybe slightly. Less admin overhead removes one
- 5:48Speaker 2: theoretical attack vector if it's unused. The book shows the
- 5:52Speaker 2: configure edits IPv six il mit no IPv six io
- 5:56Speaker 2: connecto no, but it clearly warns don't do this if
- 5:59Speaker 2: you might need IP. Turning it back on isn't always straightforward.
- 6:02Speaker 1: Right, another careful decision. Okay, that covers the initial install
- 6:05Speaker 1: on basic setup. What about the day to day running
- 6:07Speaker 1: of the server, users, packages, logs, that sort of thing.
- 6:11Speaker 2: User management is first, and the big rule the source emphasizes,
- 6:14Speaker 2: don't operate as the route user all the time, standard.
- 6:17Speaker 1: Security practice, right, Create a regular admin.
- 6:19Speaker 2: User exactly, use user AD and password. Then the book
- 6:23Speaker 2: clarifies the difference between Sue and Pseudo. Very important distinction.
- 6:26Speaker 1: Yes, Sue lets you become another user, including root if
- 6:29Speaker 1: you know their password, full power.
- 6:31Speaker 2: Right, whereas Pseudo leads a permitted user run specific commands
- 6:34Speaker 2: with root privileges using their own password.
- 6:37Speaker 1: And crucially, Pseudo logs everything.
- 6:39Speaker 2: Audit trail precisely. Pseudo is much more granular and safer
- 6:43Speaker 2: the source shows how you can restrict SUE access just
- 6:46Speaker 2: to members of the wheel group by editing at setsepam
- 6:50Speaker 2: dot DSU, and it points out that Pseudo isn't configured
- 6:53Speaker 2: by default on Cento as six, so you actually have
- 6:56Speaker 2: to set it up.
- 6:56Speaker 1: Which you do using the pseudo to safely edit itt
- 6:59Speaker 1: setus suitors an. These specific pseudo security tips highlighted.
- 7:02Speaker 2: Yeah, it mentioned setting a timestamp come out so your
- 7:04Speaker 2: pseudo authentication expires after a while, and setting required you
- 7:08Speaker 2: which forces pseudo commands to be run from a proper terminal.
- 7:11Speaker 1: Session ah, so not easily run from automated scripts or
- 7:14Speaker 1: weird context exactly.
- 7:15Speaker 2: Good protection. And it shows how to send all pseudologs
- 7:18Speaker 2: to a dedicated file like varlog pseudo dot log for
- 7:21Speaker 2: easier auditing.
- 7:22Speaker 1: Makes sense. Then package management YUM the definitive package manager
- 7:28Speaker 1: for CentOS six, the book.
- 7:30Speaker 2: Says, and the beauty of Yum, which the source highlights
- 7:32Speaker 2: is dependency resolution. You say YUM install something, and it
- 7:36Speaker 2: figures out everything else that something needs and installs it
- 7:39Speaker 2: all automatically.
- 7:40Speaker 1: Takes a lot of the headache out of managing software,
- 7:42Speaker 1: so updates are just YUM update.
- 7:44Speaker 2: YEP and The source notes you usually don't need a
- 7:46Speaker 2: full reboot after updates, though maybe restart specific services.
- 7:51Speaker 1: Practical tip and cleaning the package cash with YUM clean
- 7:54Speaker 1: all right.
- 7:55Speaker 2: And automating updates using yumcron you can figure it, schedule
- 7:59Speaker 2: at this confidgium cron, set it and forget it.
- 8:02Speaker 1: Mostly automating maintenance is key. What about removing packages with
- 8:06Speaker 1: yum remove any warnings there?
- 8:08Speaker 2: Big warning? Always always read the list of packages Yum
- 8:11Speaker 2: says it's going to remove, along with the one you
- 8:13Speaker 2: asked for. Check those dependencies.
- 8:15Speaker 1: You could acidentally rip out something critical.
- 8:17Speaker 2: Easily, so pay attention to that summary before you hit
- 8:19Speaker 2: you Good.
- 8:20Speaker 1: Advice Finding packages uses yem search or yum list. What
- 8:23Speaker 1: about yem.
- 8:24Speaker 2: Provide ah Yum provides a super handy If you need
- 8:27Speaker 2: a specific file or command, say easer bint pass would,
- 8:31Speaker 2: but don't know which package it belongs to, you can
- 8:34Speaker 2: do Yum provides us a spin pess wood and yum
- 8:36Speaker 2: will tell you which package to install.
- 8:38Speaker 1: Nice trick. The source also talks about adding extra repositories
- 8:41Speaker 1: like epel or remy.
- 8:43Speaker 2: Why do that because the defaults intos repositories are stable
- 8:46Speaker 2: but sometimes conservative These third party repos like EPEL extra
- 8:50Speaker 2: packages for enterprise Linux offer a much wider selection of software,
- 8:54Speaker 2: often newer versions.
- 8:55Speaker 1: But there's a catch. Conflicts.
- 8:58Speaker 2: Yeah, potential conflicts. Two different repos might offer the same package,
- 9:02Speaker 2: maybe different versions or built differently. This can cause problems.
- 9:05Speaker 1: And the solution is that YUM plug in priorities package.
- 9:08Speaker 2: That's the recommended way. You install that plug in. Then
- 9:10Speaker 2: you edit the dot repo files in SCM dot repos
- 9:13Speaker 2: dot D. For each repo you add a priority n line.
- 9:17Speaker 2: Lower number means higher priority, so.
- 9:19Speaker 1: You tell YUM check CentOS official first priority one, then
- 9:22Speaker 1: EPEL Priority ten, then maybe remy priority twenty exactly.
- 9:26Speaker 2: It helps YUM make sensible choices when there's overlap. You
- 9:30Speaker 2: can also enable or disable repos entirely in those files
- 9:33Speaker 2: with enabled one or zero.
- 9:35Speaker 1: Okay. Moving to logs dot log Rotate essential The sources
- 9:39Speaker 1: absolutely essential.
- 9:40Speaker 2: Log files grow and grow Without rotation, they'd fill your
- 9:44Speaker 2: disk and become useless. Log Rotate automates managing them.
- 9:47Speaker 1: How does it work?
- 9:48Speaker 2: It usually runs daily via cron. It checks its main
- 9:51Speaker 2: config at a clog rotate dot com half and more importantly,
- 9:55Speaker 2: the specific canfig files for different services in a cloak
- 9:59Speaker 2: rotate dot D based on the rules in those.
- 10:01Speaker 1: Files like how many old logs to keep?
- 10:03Speaker 2: Yeah, things like rotate in keep in old logs, compress,
- 10:06Speaker 2: zip up old logs size x, rotator if it hits
- 10:08Speaker 2: size x. Note of empty, don't rotate a empty create
- 10:11Speaker 2: make a new empty log file after moving the old one.
- 10:14Speaker 2: And poster tate lets you run a command like telling
- 10:16Speaker 2: a service to reopen its log file.
- 10:18Speaker 1: Being able to rotate based on size not just time
- 10:20Speaker 1: sounds useful for noisy service.
- 10:22Speaker 2: Very practical, yes.
- 10:23Speaker 1: Lastpit on core operations, dot memory checking usage and clear
- 10:27Speaker 1: in the cash.
- 10:28Speaker 2: Right free, MRM and TOP are your go two tools.
- 10:31Speaker 2: The book explains the free output, pointing out that the
- 10:34Speaker 2: line showing plus buffers cash gives you a better idea
- 10:37Speaker 2: of memory actually available.
- 10:39Speaker 1: To applications because Linux uses free RAM for disc cacheing.
- 10:42Speaker 2: Exactly, which is good for performance. But sometimes you might
- 10:46Speaker 2: want to see that cash cleared. The source gives the
- 10:49Speaker 2: command sink first then echo three proxis VM drop caches?
- 10:53Speaker 1: Is that risky?
- 10:54Speaker 2: The book says it's generally safe, but it's not something
- 10:57Speaker 2: to do Routinely. Clearing the cash means the system might
- 11:00Speaker 2: have to reread stuff from disc immediately after, which can
- 11:04Speaker 2: spike IO and CPU temporarily. Use it if you have
- 11:07Speaker 2: a specific reason.
- 11:08Speaker 1: And like updates. You can automate this cash clearing with
- 11:11Speaker 1: crime yep.
- 11:12Speaker 2: Put those commands in a script, schedule it with corontab e.
- 11:15Speaker 2: Another maintenance recipe.
- 11:16Speaker 1: Okay, solid foundation. Now security hardening before we even think
- 11:20Speaker 1: about web servers or databases absolutely critical.
- 11:23Speaker 2: The source spends good time here starting with SSH secure shell.
- 11:27Speaker 2: The main way in remotely.
- 11:28Speaker 1: Needs locking down. First step recommended.
- 11:30Speaker 2: Deny root log in directly, set permit root log in
- 11:33Speaker 2: no and ed centris config force logins as a normal user.
- 11:37Speaker 2: Then use Pseudo much safer makes sense.
- 11:40Speaker 1: Changing the default port away from twenty two.
- 11:42Speaker 2: Also recommended change the port xxx line. It won't stop
- 11:46Speaker 2: a determined attacker, but it cuts down hugely on automated bots.
- 11:49Speaker 2: Hammering port twenty.
- 11:50Speaker 1: Two easy win. What else for us is H.
- 11:53Speaker 2: Limit who can log in, use allow users or allow groups,
- 11:57Speaker 2: and should config to specify exactly which users are groups
- 12:00Speaker 2: are allowed SSH access, restrict the entry points right and
- 12:03Speaker 2: maybe add a warning banner using banner et ceter mud
- 12:05Speaker 2: and show the last log in time with print last
- 12:07Speaker 2: log yes, remind users document access and always service first
- 12:12Speaker 2: restart after changes.
- 12:13Speaker 1: Okay beyond SSH the firewall ip.
- 12:15Speaker 2: Tables installed by default on CentOS six powerful chain base filtering.
- 12:19Speaker 2: The book guides through setting.
- 12:21Speaker 1: Up rules, starting with allowing in central traffic yeah like.
- 12:23Speaker 2: Loop back traffic for the server to talk to itself,
- 12:26Speaker 2: I aload, maybe traffic from specific trusted ips manas for source,
- 12:29Speaker 2: oilers D for destination, and crucially allowing established connections m
- 12:34Speaker 2: state's late establish related so ongoing traffic works.
- 12:37Speaker 1: And then opening specific ports for your services TCB twenty
- 12:40Speaker 1: two for SSH, eight ERROOHO four four.
- 12:43Speaker 2: Three for web exactly you poke holes only for what
- 12:46Speaker 2: you need, TCP port fifty three, UDP fifty three for DNS,
- 12:49Speaker 2: TCP twenty five for SMTP mail, UDP one twenty three
- 12:53Speaker 2: for MTP and so.
- 12:54Speaker 1: On, and the most important principle.
- 12:55Speaker 2: Set the default policy to drop iptable's dash P input,
- 12:59Speaker 2: drop fiptible dash P fourward drop, deny everything unless explicitly allowed,
- 13:03Speaker 2: the secure default and save the rules.
- 13:05Speaker 1: The service syptables save makes them permanent across reboots. Service
- 13:08Speaker 1: Emptable's restart applies changes now. The book also shows simple
- 13:12Speaker 1: rules to specifically allow or block certain IP addresses.
- 13:15Speaker 2: What about automating defense against attacks? Fail to ban into
- 13:18Speaker 2: my hosts great tools?
- 13:19Speaker 1: Fail to ban is really versatile. It watches log files,
- 13:22Speaker 1: not just SSH but others too, for patterns like repeated
- 13:24Speaker 1: failed logins and then what when it sees too many
- 13:27Speaker 1: failures from one IP, automatically adds an IP tables rule
- 13:30Speaker 1: to block that IP for a while.
- 13:31Speaker 2: Wow active defense.
- 13:32Speaker 1: Yeah, you can figure it in jail dot com set
- 13:34Speaker 1: things like ban time, how long the block lasts, and
- 13:37Speaker 1: max freetree how many failures trigger the ban. Can also
- 13:40Speaker 1: send email alerts. SSH is usually covered by default, and
- 13:43Speaker 1: deny hosts is.
- 13:44Speaker 2: It similar similar, but specifically focused on SSH dictionary attacks.
- 13:49Speaker 2: It also watches logs, blocks ips. The source says it's simpler,
- 13:52Speaker 2: smaller footprint. Can figure it in deny hosts dot cfg.
- 13:56Speaker 2: Mainly just setting your email, but it warns be careful
- 14:00Speaker 2: not to block your own IP.
- 14:02Speaker 1: Huh yeah, that would be. Lastly, on security, anti virus
- 14:07Speaker 1: clam av right.
- 14:08Speaker 2: Linux servers aren't immune to hosting or passing on malware,
- 14:12Speaker 2: even if they don't run typical Windows viruses, so scanning
- 14:15Speaker 2: is wise. Clam scan is the.
- 14:17Speaker 1: Command and the source gives a script to automate scanning
- 14:19Speaker 1: certain directories.
- 14:20Speaker 2: Yep, clamaf dotsh example, log the results and you'd schedule
- 14:23Speaker 2: that script with Karan automating security checks.
- 14:26Speaker 1: Okay, foundations laid, system hardened. Now let's look at setting
- 14:29Speaker 1: up the actual server roles databases. First, my squall and Postgres.
- 14:33Speaker 2: Scool common requirements for my squel. The source covers the
- 14:36Speaker 2: install YUMP install my skull server, making sure it starts
- 14:39Speaker 2: on boot and can fig my squold on and starting
- 14:41Speaker 2: it serves my squoiled start. Then a critical next step my.
- 14:44Speaker 1: School secure installation.
- 14:45Speaker 2: Absolutely, don't skip the script, the book explains. It walks
- 14:48Speaker 2: you through setting the root password, removing anonymous users, blocking
- 14:52Speaker 2: remote root log in, removing test databases, essential hardening, and.
- 14:56Speaker 1: Then creating databases and users from the mychocal command line.
- 14:59Speaker 2: Yes, it's show the sequel. Create database dB name, create
- 15:02Speaker 2: user at host identified by password, and grant privileges on
- 15:06Speaker 2: dB name to user at host.
- 15:09Speaker 1: Granting specific permissions, not just giving everyone full.
- 15:12Speaker 2: Access exactly, and importantly, run flush privileges to apply those
- 15:16Speaker 2: grants without restarting my school.
- 15:18Speaker 1: What about postgres School? Similar process?
- 15:20Speaker 2: Pretty similar? Start install the packages POSTGRESCOO server Postgres school contrib,
- 15:25Speaker 2: initialize the database cluster service Postgres school in and at BB,
- 15:28Speaker 2: enable and start the service. Then use preachers and created
- 15:31Speaker 2: bataka commands and interact with PCL.
- 15:35Speaker 1: How does remote access work for Postgres School's different from
- 15:38Speaker 1: my squel's user grants? Right?
- 15:40Speaker 2: Yes, it uses a host based authentication system. You can
- 15:43Speaker 2: figure it in the PGHPA dot com file. The book
- 15:46Speaker 2: shows how to edit this file to allow connections from
- 15:49Speaker 2: certain IP addresses or networks postlines and specify the authentication
- 15:54Speaker 2: method often MD five for password encryption.
- 15:57Speaker 1: Got it okay? Switching to email post Fix and DOFCOT.
- 16:01Speaker 2: The standard combo Postfix is the MTA, the Mail Transport Agent.
- 16:05Speaker 2: It handles the sending and receiving between servers.
- 16:08Speaker 1: Configure it in main dot CF to handle mail for
- 16:10Speaker 1: your domain.
- 16:11Speaker 2: Right, set interior faces all to listen on all network interfaces.
- 16:14Speaker 2: Define your domains in my destination and.
- 16:17Speaker 1: The book has that cool talent trick for testing SMTP.
- 16:19Speaker 2: Yeah, connect to port twenty five using telnet and manually
- 16:22Speaker 2: type SMTT commands like all mail from dot RCPT two
- 16:27Speaker 2: dot data. Great way to check if postfix is alive
- 16:29Speaker 2: and responding correctly.
- 16:31Speaker 1: Okay, so Postfix moves the mail Dovecot lets users access
- 16:34Speaker 1: it exactly.
- 16:34Speaker 2: Dovecot provides the IMP and pop three services that email
- 16:38Speaker 2: clients connect to install it. You installed dovecot enable it.
- 16:41Speaker 2: Configuration is in dovecot dot CF and its confaft dot.
- 16:44Speaker 1: D directory key Dovecot settings mentioned.
- 16:47Speaker 2: Enabling protocols, protocols, map pop three, setting the mail location,
- 16:51Speaker 2: mail location, mail dear, and interestingly for basic local user setups,
- 16:55Speaker 2: allowing plaintext authentication disable plaintextos as you.
- 16:59Speaker 1: Know, plan text passwords.
- 17:00Speaker 2: Isn't that bad over the open Internet? Yes, absolutely, but
- 17:03Speaker 2: the context here seems to imply for local clients or
- 17:06Speaker 2: scenarios where maybe TLS is enforced. Elsewhere, It's another one
- 17:10Speaker 2: of those configuration choices with security implications depending on.
- 17:13Speaker 1: Your setup, and Postfix needs to use dovecot to check
- 17:16Speaker 1: passwords when users try to send mail SMTPAUA.
- 17:19Speaker 2: Correct you set up SASL authentication in postfixes main dot CF,
- 17:23Speaker 2: telling it to use dovecot via settings like SMTPD, sysyl type, SMTP,
- 17:27Speaker 2: saslpath SMTPD and solventable.
- 17:29Speaker 1: The book also touches on basic spam filtering in Postfix yes.
- 17:33Speaker 2: Using header checks and body checks to define rules that
- 17:35Speaker 2: match patterns and email headers or content to block or
- 17:38Speaker 2: flag spam.
- 17:39Speaker 1: Very practical. What about handling multiple domains on one server
- 17:42Speaker 1: virtual domains?
- 17:43Speaker 2: This is a really common need. The source shows how
- 17:46Speaker 2: to set this up efficiently. You list your extra domains
- 17:49Speaker 2: in virtualace domains in main dot CF. Then you create
- 17:52Speaker 2: a mapping file, usually et cetera, a postfix virtual.
- 17:55Speaker 1: And in that file you list email addresses and the
- 17:57Speaker 1: system user they map too, like sales at otherdomain dot
- 17:59Speaker 1: com on real user one exactly.
- 18:02Speaker 2: Then you run postmap etc postfix virtual to create a
- 18:05Speaker 2: database file. Postfix can read quickly, and you tell postfix
- 18:08Speaker 2: where that map is using virtual as maps equals hash
- 18:11Speaker 2: dot ECC postfix virtual. The book notes you can handle
- 18:14Speaker 2: tons of domains this way.
- 18:16Speaker 1: Can you even set up catch all addresses.
- 18:17Speaker 2: Yep at domain dot com catchallser simple aliases for system
- 18:21Speaker 2: users go in achiliuses, then run nualliuses.
- 18:24Speaker 1: And tools for sending mail from the command line mail.
- 18:27Speaker 2: X or MUTT standard tools. MUD is mentioned for handling
- 18:30Speaker 2: attachments and forwarding roots mail using a rude dot forward file.
- 18:34Speaker 2: All essential mail admin tasks.
- 18:36Speaker 1: Okay onto the web server a patchegtpd, the.
- 18:38Speaker 2: Classic install HTTPD, maybe mod Perl, definitely the PHP package
- 18:42Speaker 2: for Php support. Configure the basics in httpd dot com.
- 18:46Speaker 1: How do you make sure a patchee serves Php files.
- 18:48Speaker 2: Add index dot php to the directory index directive in
- 18:52Speaker 2: hgtpd dot com. That tells a patchy to look for
- 18:54Speaker 2: index dot php as a default page in a directory.
- 18:58Speaker 2: And the book suggests creating a quick phpinfo dot php
- 19:01Speaker 2: file in your web root forw optimilo just to test
- 19:05Speaker 2: PHP is working.
- 19:06Speaker 1: Securities paramount for web SSL https absolutely.
- 19:10Speaker 2: The source shows how to create a self signed certificate
- 19:12Speaker 2: using OpenSSL. You install modsel first.
- 19:15Speaker 1: This is it for public sites, right, browsers won't trust it.
- 19:17Speaker 2: Correct, you'd get a cert from a proper certificate authority
- 19:20Speaker 2: for a public site. But this recipe shows the process
- 19:23Speaker 2: of generating the private key and the certificate file opensell rec.
- 19:27Speaker 1: Asking for country Org and the crucial common name your
- 19:30Speaker 1: server's domain or IP exactly.
- 19:32Speaker 2: Then you can figure apaches ssl dot com file, telling
- 19:35Speaker 2: it where the certificate SSL certificate file and private key
- 19:39Speaker 2: SSL certificate keyfile are, and a vital step crab mod
- 19:42Speaker 2: four hundred on those keysert files. So only root can
- 19:44Speaker 2: read them protect that private key.
- 19:46Speaker 1: What about user directories that username url style.
- 19:49Speaker 2: Yeah, modu thirdter comment on shirt hosting, you uncommon this
- 19:53Speaker 2: line and httpd dot com to include conf dot do
- 19:56Speaker 2: ser dot com, then potentially edit that file. The book
- 19:59Speaker 2: even includes a troubleshooting tip about suxx sometimes causing issues
- 20:03Speaker 2: and how to find and maybe temporarily disable it if needed.
- 20:07Speaker 2: Very practical detail.
- 20:08Speaker 1: And the big one for hosting multiple sites. Name based
- 20:12Speaker 1: virtual hosts fundamental.
- 20:14Speaker 2: Let's want a patche server on one IP address handle
- 20:17Speaker 2: many different websites. You tell apatche and httpd dot com
- 20:20Speaker 2: to include config files from say, httpdv hosts dot.
- 20:24Speaker 1: E, and then create a dot com file in there
- 20:26Speaker 1: for each website.
- 20:27Speaker 2: Right inside each file's virtual host block, you set things
- 20:29Speaker 2: like server admin, email, server name, the main domain server
- 20:33Speaker 2: alias like www dot domain dot com, document root where
- 20:36Speaker 2: the site's files live, and separate airlog and custom log
- 20:39Speaker 2: files for that specific site. It's the blueprint for multi
- 20:41Speaker 2: site hosting.
- 20:42Speaker 1: Just need to put an index dot html or index
- 20:44Speaker 1: php in that document root exactly. Last server role FTP
- 20:48Speaker 1: with vs FTP.
- 20:49Speaker 2: Very secure FTP dayman. The source praises it as fast
- 20:52Speaker 2: light and secure install ym install, VSFTPD enable start.
- 20:56Speaker 1: Basic config and VSFTPD dot com key settings.
- 21:00Speaker 2: Turn off anonymous access a non emositable no, allow local
- 21:04Speaker 2: system users, local YenS, allow uploads, writenable yes, and maybe
- 21:09Speaker 2: enable ask moode for text file transfers.
- 21:11Speaker 1: Security is always a worry with FTP.
- 21:13Speaker 2: Crew essential set cruit local looser Yes. This locks users
- 21:17Speaker 2: into their home directory so they can't wander around the
- 21:19Speaker 2: server file system.
- 21:20Speaker 1: Can you make exceptions.
- 21:21Speaker 2: Yes, use crute listenable yess and define a fove cruitless
- 21:25Speaker 2: file atcvs ftpdcruit list listing users who shouldn't be cruited.
- 21:30Speaker 1: Managing logins uses ftpsers denied users and user list denied
- 21:34Speaker 1: or allowed depending on user lists deny and you can
- 21:37Speaker 1: customize the log in banner message standard stuff.
- 21:40Speaker 2: Secure connections via ssltls are also covered.
- 21:42Speaker 1: Similar to a patchy enable it point to this. Certain
- 21:45Speaker 1: key files.
- 21:46Speaker 2: YEP sleainable, YZS, VARSUS cert file, RSITE private key file
- 21:50Speaker 2: encrypts the login and data transfer much safer than plain FTP.
- 21:54Speaker 1: What about virtual users users not tied to system accounts?
- 21:57Speaker 2: Very useful feature. The book shows the recipe set up
- 22:00Speaker 2: a pamcnfig file for VSFTPD create a sex file with
- 22:03Speaker 2: usernames and passwords logins dot txd hash it into a
- 22:06Speaker 2: database dpload dot logins dot dB then tell VSFTPD in
- 22:11Speaker 2: its config to use this database. Guestable wise map guests
- 22:15Speaker 2: to a system. User guests user name of Peter point
- 22:18Speaker 2: to the database user BPAs flever way.
- 22:20Speaker 1: To manage lots of FTP only accounts. Other VSFTP tips.
- 22:24Speaker 2: Hiding user group IDs, hides ye ss, allowing anonymous uploads
- 22:28Speaker 2: securely by changing ownership chowne uploads, yuss chry to use
- 22:31Speaker 2: her name, disabling recursive listings, also recursible to save resources
- 22:36Speaker 2: and setting idle timeouts, Lots of practical config options.
- 22:40Speaker 1: Okay. That covers the main technical recipes. The source also
- 22:42Speaker 1: briefly mentions the book's reviewers.
- 22:44Speaker 2: Yeah, just to give context, people from e commerce, government, IT, universities,
- 22:47Speaker 2: tech QA folks like Ugo, Belevance, bin Wa, Benedetti, Frank
- 22:50Speaker 2: Lemon real world experience behind these recipes, and.
- 22:53Speaker 1: They apparently share an appreciation for open source fitting for.
- 22:56Speaker 2: Sentas definitely and it mentions packed publishings focus on specific tech,
- 23:00Speaker 2: their online library and an open source royalty scheme. Tying
- 23:04Speaker 2: it back to that open source ethos, so quite.
- 23:06Speaker 1: A detailed journey through send US six server admin.
- 23:09Speaker 2: Via these excerpts, we really covered the life cycle, didn't
- 23:12Speaker 2: we From install and basic config.
- 23:14Speaker 1: Through daily ops, users, packages, logs, memory.
- 23:17Speaker 2: Critical security, hardening, sship tables, fail.
- 23:21Speaker 1: To ban, and then setting up the workhorses databases, mail,
- 23:25Speaker 1: web FTP.
- 23:27Speaker 2: This deep dive really pulled out those practical step by
- 23:30Speaker 2: step guides the recipes you'd need for common Center six tasks.
- 23:34Speaker 2: It's a good shortcut to understanding these components, and hopefully for.
- 23:36Speaker 1: You listening, understanding these commanding and fig files gives you
- 23:40Speaker 1: a sense of power, the ability to build secure many
- 23:43Speaker 1: of these environments, or just understand them better.
- 23:45Speaker 2: It demystifies a lot of it.
- 23:46Speaker 1: Okay, here's a final thought to leave you with. We
- 23:48Speaker 1: saw repeatedly with things like root log in, Selenix choices,
- 23:52Speaker 1: plaintext off for local mail, disabling IPv six many recipes
- 23:56Speaker 1: involved explicit trade offs convenience versus security.
- 23:59Speaker 2: Usually HM that came up a lot.
- 24:01Speaker 1: What does this constant need to make? These balancing acts
- 24:05Speaker 1: tell us about the fundamental challenge of server administration keeping
- 24:09Speaker 1: things working smoothly while also keeping them safe. It seems
- 24:12Speaker 1: like a perpetual tightrope walk.
- 24:14Speaker 2: Definitely something to chew on as you deal with servers
- 24:17Speaker 2: in the real world.
- 24:18Speaker 1: Thanks for joining us with a deep dive. Hope this
- 24:20Speaker 1: was useful for you