r/redhat • • Sep 19 '26

Move cert discussions to r/redhat_certification

92 Upvotes

Hello r/redhat Redditors!

TL:DR - post Red Hat certification posts in r/redhat_certification

A while back we created r/redhat_certification for Red Hat cert discussions. The sheer volume of certification posts was drowning r/redhat. As a result of some of you moving over there, we’ve seen more general Red Hat posts and engagement, which is the goal of this community, to talk about Red Hat and Red Hat products. Yay! Go us!

But… people still post a lot of certification content here. The mod team is going to be taking more actions to further shift certification posts to r/redhat_certification.

Several of us are also mods in r/redhat_certification, including me who has regular contact with the Red Hat Training and Certification team who writes the training and makes the exams. I was also a member of this team between 2001 and 2019. So your posts will still be moderated and answered in r/redhat_certification.


r/redhat • • 7h ago

Is there a Red Hat Repository issue globally ?

1 Upvotes

I'm trying to Sync our Satellite server with the repositories and it does not sync. Only the Satellite repositories gets Synced. This issue has been for like a week or so. Today I tried with my homeland VMs and RHEL 8, 9, 10 and all three gets "all mirrors were already tried without success".

Are you guys facing the same issue or is it me. Please let me know.


r/redhat • • 1d ago

Question on what scripts you run/ deploy on new server setups

6 Upvotes

Hey all ,

Was wondering whats the process for you when you setup a new server in your own experiences. Once you have it installed, do you ssh to your satellite server to run a script to get it to pull down a script that gets it to join a freeipa domain and other tasks or do you download the script locally and then run it. Go easy, I'm new to Linux admin.


r/redhat • • 1d ago

Linux Networking for Beginners — IP, Gateway, DNS, nmcli, and the DORA Handshake from Into the Terminal Ep. 206

85 Upvotes

Every machine on a network needs three things: an address so others can find it, a way out to the rest of the world, and a phonebook to turn names into numbers. This week's Into the Terminal (episode 206) is the absolute-beginner networking episode — Scott and Nate define IP, netmask, gateway, and DNS by pointing at them on a live RHEL box (not a slide deck), flip an interface from DHCP to a static IP with nmcli, bounce it so the change actually sticks, then whiteboard the whole DHCP "DORA" handshake so the magic stops being magic.

Full video here → https://www.youtube.com/watch?v=yFjDfhb7kwI More hands-on RHEL practice → https://redhat.com/interactive-labs


The Essentials: The Four Things Every Interface Needs

Before tools, they drew the mental model on the whiteboard:

SettingWhat it actually does
IP addressYour host's identity on the network (the house number)
Netmask / CIDRHow big "your" network is — /24 is the classic 255.255.255.0
GatewayThe router on your segment that forwards traffic to everywhere else (often .1 or .254)
DNSTurns names humans remember into numbers machines speak

On the same /24 LAN, two hosts talk directly. Off-segment? Traffic goes to the gateway. DNS does not have to live on your LAN — it just has to be reachable. Search domains exist so rhel3 quietly becomes rhel3.example.com.

Scott's phishing war story: corporate DNS deliberately mis-resolved a known-bad phishing domain so users got a support ticket instead of a stolen password. Same idea as Pi-hole / AdGuard — intentional "wrong" answers as a control.

ip a              # or: ip addr show / ip address show
ip route          # see your default gateway / routes

ip a shows interface name, IPv4 + CIDR, broadcast, IPv6, and state (UP = active). Nobody types the long form. Same energy as nmcli con vs nmcli connection.


Viewing Config with nmcli (Not Just ip a)

ip a tells you what is live. NetworkManager knows why — connections, UUIDs, DHCP options, method, DNS, the whole pile.

CommandWhat it does
nmcli con showList connections, UUID, type, device
nmcli con show "Wired connection 1"Dump everything for that connection (opens a pager)
nmcli -f ipv4 con show "Wired connection 1"Filter to just IPv4 settings
nmcli -f DHCP4 con show "Wired connection 1"Just the DHCP4 block
nmcli device showDevice-centric view of all NICs
nmcli -f IP4.ADDRESS device show enp7s0One field: IPv4 addresses (it's an array — multiple IPs per NIC is fine)

Pro tips from the show:

  • Connection names can have spaces — quote them. They're case-sensitive. Tab completion for names is hit-or-miss depending on bash-completion setup (Scott had it; Nate's RHEL 10 lab box didn't for connection names).
  • -f / --fields beats scrolling a pager when you know what you want. Dot-separated keys nest (ipv4.method, DHCP4.OPTION, …).
  • One interface can hold multiple IPs (VIPs, containers, etc.) — that's why address fields look like arrays.
  • Don't edit network config over the only link you're SSHed in on without a plan. Nate's early-career friend learned that the hard way: five minutes later, "I have to walk to the data center now."

RHEL used to live on classic ifcfg key/value files; NetworkManager + nmcli is the way forward. Ubuntu still leans on text/INI-style configs. Scott will gladly start the holy war: simple files feel simpler until you realize NetworkManager exposes (and scripts) a lot more knobs than those old files ever did. nmcli is also scriptable — better than heredoc'ing a config file and hoping the syntax is right.

Cockpit's network plugin does the same jobs with a GUI warning if you're about to tear down the interface you're connected on.


Advanced: Flip DHCP → Static (Then Bounce It)

Out of the box, new interfaces are usually ipv4.method=auto (DHCP). For a home lab, a fixed server address, or anything that shouldn't wander, set it manual.

Demo from the episode — one shot, all the knobs:

nmcli con mod "Wired connection 1" \
  ipv4.method manual \
  ipv4.address 192.168.122.42/24 \
  ipv4.dns "192.168.122.1,8.8.8.8" \
  ipv4.gateway 192.168.122.1
KeyMeaning
ipv4.method manualYou own addressing (vs auto = DHCP)
ipv4.address …/24Address + netmask in CIDR (preferred over a separate netmask field)
ipv4.dns "a,b"DNS list — use at least two; one dead server means painful timeouts before failover
ipv4.gatewayDefault router on the local segment

Then:

ip a                                          # still shows the OLD address!
nmcli con down "Wired connection 1"
ip a                                          # interface present, no address
nmcli con show                                # connection goes gray / unbound from device
nmcli con up "Wired connection 1"
ip a                                          # 192.168.122.42 is live

Why the bounce? Changing settings does not apply immediately. That's a feature: a typo shouldn't instantly lock you out. Down/up (or reboot, if you're changing networks wholesale) is the last safeguard. Prefer bounce over reboot for normal IP changes. Hostname via reverse DNS is a related gotcha — new IP ≠ automatic hostname refresh.

nmcli con down / up success messages look alarmingly error-like (long path, parentheses, slashes). Read them: "connection successfully deactivated/activated."

Unplugging a cable and plugging it back in? On a desktop applet, maybe it refreshes. On a typical server, NetworkManager often keeps the config in memory through a blip — don't count on physical reconnect as a lease refresh.


Advanced: DHCP — DORA and Friends

When ipv4.method is auto, bring-up runs the classic handshake. Chat remembered the acronym DORA:

StepPacketWhat's happening
DDiscoverClient broadcasts from 0.0.0.0 to 255.255.255.255: "anyone a DHCP server?" (includes MAC)
OOfferServer replies: "I'm here, and I have an IP you could use" (not leased yet)
RRequestClient broadcasts which offer it's taking — so other clients/servers hear it too
AAckServer confirms the lease. Competing claimants get a NACK and restart at Discover

Multiple DHCP servers on a segment without coordinated leases = chaos. First offer the client acts on usually wins.

Also in the protocol (not part of DORA):

ActionWhen
Renew~halfway through the lease (and again later if needed) — stay online, keep the same IP
ReleaseGraceful shutdown / interface down / explicit release — "I don't want this address anymore"

Lease length is policy: short on guest Wi-Fi (hours), long on stable server nets (Scott's lab lease calculated out to August 2029 — chat did the math). If the pool is exhausted, the server walks the range looking for free addresses again; clients that never get a lease may land on a link-local / APIPA-style address from the OS stack.

Static vs DHCP on the same LAN: either leave a reserved range for hand-set statics, or let DHCP own "static" assignments via reservations. Mixing unmanaged statics into the DHCP pool is how you get silent IP conflicts. Servers often still use DHCP — they just always get the same reserved address.

Where does the DHCP server live? Often not on your client VLAN. Switches forward those broadcasts with DHCP relay to an infrastructure segment. Scott's phone outage story: DHCP config was fine; someone had disabled DHCP forwarding on the office switches. Phones shouted Discover into the void. Informed ticket beats "the phones don't work."

Inspect what you were actually handed:

nmcli -f DHCP4 device show <device>

Leases can carry options your client ignores once the OS is already running — and options installers/phones/switches care about a lot:

OptionCommon use
66TFTP / HTTP server for network boot
67Boot file
42NTP
120SIP servers (phones)

PXE install = DHCP Discover + those boot options. Running Linux just pulls IP/netmask/gateway/DNS (and friends) and ignores the rest.


Side Quest: VLANs (Chat Asked)

VLANs are tagged, isolated L2 segments on the same physical gear. Nate showed VLAN-typed NetworkManager connections (IDs 2, 10, 20, …) bridged into friendly names — services, IoT, lab — so smart bulbs aren't sitting next to the banking laptop. Tagging can come from DHCP or be set statically. Beyond day-one sysadmin scope, but worth knowing the word when your network person says it.


Quick Reference Card

# See what's live
ip a
ip route

# Inspect NetworkManager
nmcli con show
nmcli con show "Wired connection 1"
nmcli -f ipv4,DHCP4 con show "Wired connection 1"
nmcli device show
nmcli -f IP4.ADDRESS device show enp7s0

# Static IP (then bounce)
nmcli con mod "Wired connection 1" \
  ipv4.method manual \
  ipv4.address 192.168.122.42/24 \
  ipv4.dns "192.168.122.1,8.8.8.8" \
  ipv4.gateway 192.168.122.1
nmcli con down "Wired connection 1"
nmcli con up "Wired connection 1"

# Back toward DHCP (method auto), then bounce the same way
nmcli con mod "Wired connection 1" ipv4.method auto
nmcli con down "Wired connection 1" && nmcli con up "Wired connection 1"

# What DHCP actually gave you
nmcli -f DHCP4 device show enp7s0

Remember: modify ≠ apply. Down/up (or reboot) makes it real. Don't bounce the only path you're connected on without console/out-of-band access.

Binary netmask math got punted to "one day" — Nate's take: people ask a calculator (or Claude) for "16 addresses, what mask?" Scott still wants you to know why the numbers mean what they mean so it isn't magic.


Links

  • Video: https://www.youtube.com/watch?v=yFjDfhb7kwI
  • RHEL Developer Registration: https://developers.redhat.com/register
  • Interactive Labs: https://redhat.com/interactive-labs
  • Discord: https://red.ht/rhel-discord
  • Nate Lager: https://social.undrground.org/@gangrif
  • Scott McBrien: https://www.linkedin.com/in/scott-mcbrien-349b356

Into the Terminal is a live show from the Red Hat Enterprise Linux team covering practical Linux administration skills — commands, concepts, and war stories — for people who live in a shell. Like, subscribe, and yell war stories about static IPs that locked you out in the comments.


r/redhat • • 1d ago

Red Hat sales in APAC (Australia)

13 Upvotes

Does anyone know if redhat have a local sales team in Australia anymore?

I've called multiple times asking to be assigned a local sales contact to no avail.

My current account manager is based in India, and its been an absolute nightmare to get anything out of them. I ask for quotes that I never see, I'm currently chasing quotes to cover ELS for openjdk8 on RHEL (which goes into ELS at end of this month).

I'm not sure how Redhat is making any money when they cant even give me pricing.


r/redhat • • 2d ago

RedHat IdM integration with Entra

7 Upvotes

Hi all,

I was wondering if anybody is using the redhat idm integration with entra id as a backend ? this basically

https://access.redhat.com/kb/7073948

I have set it up but the token and link when ssh-ing is a bit annoying/tedious for some of our employee, I know you can setup a forest trust to link AD and thus you can just get a password prompt, but that seems overly complicated to setup and manage, it adds an additional hop and possible limitations ? e.g ad users don’t appear in the idm web ui.

Was wondering what does everyone else use in their organisation?

Thx as always


r/redhat • • 2d ago

Automate Lightwell updates with Mend Renovate | Red Hat Developer

Thumbnail
developers.redhat.com
4 Upvotes

Lightwell helps protect the supply chain of open source libraries and provides many vulnerability remediations. Lightwell targets both the Common Vulnerabilities and Exposures (CVEs) that scanners are built to detect and newly discovered, or novel, vulnerabilities that scanners do not yet look for. In its first few months, Lightwell has delivered more than 800 novel vulnerability remediations. Lightwell can reduce your risk exposure and close entire attack vectors that were previously invisible to security teams.

TL;DR
Lightwell delivers novel vulnerability remediations; Mend Renovate automates updates via presets in renovate.json, using artifact mirrors and grouped pull requests. Configuration includes OSV feeds and CI/CD integration, with optional automerge and batching.


r/redhat • • 5d ago

The ultimate guide to analyzing and troubleshooting critical issues on Red Hat Enterprise Linux 8 and 9 | Red Hat Developer

Thumbnail
developers.redhat.com
33 Upvotes

When a critical outage hits a production environment, time is your most crucial resource. Systems going down, unresponsive microservices, kernel panics, or sudden I/O bottlenecks can quickly jeopardize core business operations. For systems administrators, site reliability engineers (SRE), and DevOps teams managing enterprise workloads on Red Hat Enterprise Linux 8 or 9 (RHEL), having a disciplined and reproducible standard operating procedure (SOP) is what separates a blink from a catastrophe.

TL;DR
RHEL 8 and 9 critical outage triage uses severity levels 1–4 with Red Hat Support SLAs. Systematic checks cover identity, CPU, memory, storage, I/O, systemd, network, logs, and SELinux to isolate constraints and preserve evidence.


r/redhat • • 5d ago

4 YOE in IT Support + recently got my RHCSA, struggling to land Linux Admin interviews. Where do I go from here?

22 Upvotes

Hey everyone, looking for some honest advice on my career pivot.

I’ve been working in IT Support for the past 4 years and recently decided to make the jump into Linux Administration and related infrastructure roles. To prove my skills on paper and get past HR filters, I studied for and passed my RHCSA.

I was hoping that combining 4 years of general IT/support experience with a hands-on cert like the RHCSA would at least start getting me shortlisted for Junior/Mid-level Linux Admin roles. Instead, I’m hitting a wall:

  • I’m barely getting any callbacks or interview invites.
  • Pure "Linux Admin" roles seem scarce or strictly ask for 3+ years of dedicated production Linux experience (which I don't have in my official title).
  • Most roles I see want Linux bundled with Cloud (AWS/Azure), Ansible, Docker/Kubernetes, or heavy scripting.

I feel like I’m stuck in that awkward middle ground—overqualified for basic L1 helpdesk, yet underqualified on paper for pure SysAdmin roles because my last 4 years were in Support.

For those of you who successfully made the jump from Support to Linux Admin/Infra/Cloud:

  1. What should my next immediate step be? Should I start learning Ansible/RHCE, AWS, or Docker/K8s to make my profile more attractive, or focus on building a homelab portfolio?
  2. What job titles should I actually be targeting? Are there specific stepping-stone roles (like NOC, Application Support, Linux Support Engineer, Junior DevOps) that bridge this gap better than searching strictly for "Linux Administrator"?
  3. Resume tips: How do I frame 4 years of Support experience so recruiters actually value it rather than dismissing it as "just helpdesk"?

Any reality checks or roadmap suggestions would be hugely appreciated. Thanks!


r/redhat • • 4d ago

ruby version for satellite 6.20

2 Upvotes

Is anyone running the Early Access to satellite 6.20?

Can someone post the Ruby version is that's being bundled with it?


r/redhat • • 5d ago

nginx2root: fixed nginx packages for RHEL 9 (base 1.20 + AppStream 1.22, 1.24, 1.26)

19 Upvotes

Disclosure: I work at Hosted Power, a hosting company. This is free and open source.

Red Hat still lists RHEL 9 nginx (default 1.20 and the 1.22, 1.24 and 1.26 streams) as affected by nginx2root (CVE-2026-123007 and four related CVEs). If you have a subscription, Red Hat support is your first stop. This is for boxes you can't leave exposed in the meantime.

We built the fixes into RHEL's own nginx packages: base 1.20 and AppStream 1.22, 1.24 and 1.26. Same package names, modularity label, config and modules; the installer rejects the wrong vendor or stream. Versions sit just below the next Red Hat update, so a normal dnf update moves you to Red Hat's package when it ships.

https://github.com/HOSTED-POWER/nginx2root-patches

Switching HTTP/2 off only blocks 2 of the 12 vulnerabilities these packages fix, so it isn't a fix on its own.

Update: RHEL 8 (nginx:1.24) and RHEL 10 are covered now too (v1.6.1, v1.7.0). Correction: RHEL 10 does not have Red Hat's fix yet; it still ships 1.26.3-16.el10_3.1 from before nginx2root.


r/redhat • • 6d ago

Grub issue when upgrading rhel 9 to 10 using Leapp

10 Upvotes

Hi all,

I am somewhat new to rhel, I wanted to upgrade my current rhel 9.8 to rhel 10.2 version.

I found this can be done with Leapp tool. I manage to remove all inhibitor errors. And performed the upgrade, now my VM isn't coming up.

Its a VM running on Bare metal server using libvirt. I am not able to access console, nor getting any kind of logs.

I suspect it's due to Grub upgrade, it was mentioned in preupgrade with no actionables.

I wanted to know, did anybody has done such kind of activity or someone faced similar kind of issue, would be a great help if I can get any direction.

-----------

Risk Factor: high

Title: GRUB2 core will be automatically updated during the upgrade

Summary: On legacy (BIOS) systems, GRUB2 core (located in the gap between the MBR and the first partition) cannot be updated during the remaining transaction and Leapp has to initiate the update running "grub2-install" after the transaction. No action needed before the upgrade. After the upgrade, it is recommended to check the GRUB configuration.

----------


r/redhat • • 7d ago

Follow-up: I built the "Linux time travel" tool I asked about here. Looking for people to try it

17 Upvotes

About a month ago I asked here if a tool to see ps, ss or lsof output at a past moment was worth building:

https://www.reddit.com/r/redhat/comments/1wyzyeu/im_thinking_in_building_a_linux_time_travel_tool/

I got some fair pushback (sar, atop, below, Prometheus, zabbix) and a few people who were curious. I looked at all of them. They cover a lot, but none of them could tell me which process had which connections open, or what lsof showed for a process at 02:45 last night. So I built it, mostly to find out if it could be done without hurting the server.

I wanted to name it "command line time travel" but then a though about the consequences of such a name and It's called clifr instead (command line flight recorder) and has two parts:

  • clifrd runs as a service and records processes, process starts and exits (through eBPF, so a process that lives 5 ms still shows up), TCP connections with the process that owns them, files held open, mounts, kernel messages and the usual system counters. It keeps 72 hours in /var/lib/clifr, 2 GB max.
  • clifr rebuilds the output of the normal commands for a past moment or a time range. It doesn't run the command, it rebuilds the output from the recording:

    • clifr --at "02:45" "ps aux"
    • clifr --since "02:00" --until "03:00" "ss -tanp dst10.0.4.21and dport = :5432"
    • clifr --since "1 hour ago" events # starts, exits, OOM kills, mounts
    • clifr diff --at "14:00" --at "14:20" "ss -ltnp"

There are about 40 commands so far: ps, top, pidstat, lsof, ss, netstat, free, vmstat, iostat, mpstat, df, ip, dmesg, systemctl list-units, lsblk, and more and all are 100% accurate.

The first thing people asked last time was the cost, so here are the numbers:

  ┌───────────┬─────────────────────┬─────────────────────────┬─────────────────────────┐
  │           │    Quiet server     │ Mixed load (4-day soak) │ Busy server (benchmark) │
  ├───────────┼─────────────────────┼─────────────────────────┼─────────────────────────┤
  │ CPU       │ 0.35% of one core   │ 0.5-0.6% of one core    │ 1.9% of one core        │
  ├───────────┼─────────────────────┼─────────────────────────┼─────────────────────────┤
  │ RAM       │ ~90 MiB             │ ~80-120 MiB             │ ~290 MiB (335 max)      │
  ├───────────┼─────────────────────┼─────────────────────────┼─────────────────────────┤ 
  │ Disk kept │ ~20 MiB/day         │ ~100 MiB/day            │ ~4 GiB/day              │
  ├───────────┼─────────────────────┼─────────────────────────┼─────────────────────────┤
  │ Network   │ none, no ports open │ none                    │ none                    │
  └───────────┴─────────────────────┴─────────────────────────┴─────────────────────────┘

Disk use depends heavily on how busy the server is.

clifr is not a monitoring tool and has no alerts. It's not a security audit tool either: it doesn't record file reads or writes, and root can stop it. It's for the "what was going on at 02:45" question, after the fact.

Status: it's a prototype, version 0.1.0. It hasn't run on a real production server yet (a friend starts one this week), and all the load has been synthetic. AGPL-3.0, no telemetry, nothing leaves the box.

So if you have a test or dev box (RHEL 8/9, Rocky, Alma), I'd really appreciate it if you tried it and told me what breaks or what looks wrong. The most useful thing for me is comparing what clifr shows with what you know was really happening.

curl -LO https://github.com/jlruedab/clifr/releases/download/v0.1.0/clifrd-0.1.0-1.x86_64.rpm

curl -LO https://github.com/jlruedab/clifr/releases/download/v0.1.0/clifr-0.1.0-1.x86_64.rpm

sudo dnf install ./clifrd-0.1.0-1.x86_64.rpm ./clifr-0.1.0-1.x86_64.rpm

sudo systemctl enable --now clifrd

# wait a few minutes, then:
clifr --at "5 minutes ago" "ps aux"

Repo, with an install guide, a user guide with use cases, and all the benchmark numbers:

https://github.com/jlruedab/clifr

And thanks to everyone who commented on the first post, including the harsh ones. It made this better.


r/redhat • • 7d ago

OCP/RH-Operators on OKD

Thumbnail
reddit.com
2 Upvotes

r/redhat • • 7d ago

RHEL compatibility questions for a stdlib-only health checker

10 Upvotes

I wrote a small read-only health checker for Linux hosts (Python standard

library only, no dependencies, no daemon). It is tested on Debian 13, Ubuntu

26.04.1 and Fedora 45, but not on the RHEL family, and I would rather ask than

guess.

It prints one report for load/memory/swap/temperature, disk and inode usage,

failed systemd units, Docker, md RAID, SMART, backup age, TLS expiry and NTP,

then exits 0/1/2/3 for cron. Nothing is written to the host.

On RHEL-family systems I am unsure about a few things:

- Is systemctl --failed still the right signal, or do you watch something else?

- Do checks around subscription-manager make sense, e.g. pending errata or

unfixed security advisories?

- Is firewalld state useful in a one-command check, or just noise?

- Is there anything SELinux-related a read-only tool should surface?

If you run RHEL, Rocky or Alma, what would you actually want in a one-command

health check? I am not claiming RHEL support yet; I want to know whether it is

worth adding.

I've tested it on Fedora45-Debain13-Ubuntu.26.04.1 LTS

Repo: https://github.com/jacoblockard2007-hub/labcheck (MIT, 0.1.0)


r/redhat • • 7d ago

GAMING ON RHEL

0 Upvotes

So yeah, i will use RHEL for DD(daily drive), is gaming something possible on it?


r/redhat • • 9d ago

Who Else Has Earned the Red Hat? What Year Did You Get Certified?

Thumbnail reddit.com
0 Upvotes

r/redhat • • 10d ago

Epel in environment

26 Upvotes

What is everyone's opinion on epel corporate environment? I was at a place that had it installed and had 0 issues. We had it linked through satellite.


r/redhat • • 11d ago

You're in: Satellite 6.20 limited availability access inside

9 Upvotes

Yay

Received this email once the Microsoft outage was done

"Looking Ahead: The planned launch date for Satellite 6.20 limited availability is November 18th. Please note that while you can activate your subscription, Satellite 6.20’s software and full product documentation will not go live until the official launch date."

The email contains 5 activation keys

I would have appreciated if the doc was also available to prepare but its only a few days away

I also need to get used to RHEL10

Another question, since this is the first time I install one from scratch, I will probably want to ansible the process and restart a few times. Does each attempt will consume 1 key? If so, any way to reset that?


r/redhat • • 12d ago

Absolute minimal LDAP setup for software install

17 Upvotes

Hi! I am trying to install a development instance of Windchill in a Red Hat Virtual Machine version 9.8. This installation is exclusively meant for development purposes and for testing Windchill. It is not meant for any environment beyond the VM that it would run in, save serving HTTP on localhost.

Windchill is quite the picky piece of software. It requires (will give errors without) an Oracle (or Microsoft SQL Server) DB, RHEL 9/10 or Windows Server, and Amazon Corretto, all of which I installed. It also requires an LDAP connection.

I tried to search for setting up an LDAP server, and what I came across was utterly confusing and contradictory. It seems Red Hat removed OpenLDAP in favor of the 389 LDAP server, which I installed (...I think? I installed 389-ds-base). However, LDAP servers also require an Active Directory instance. I figure that I could use Samba for that, but there were really no good resources I found on connecting Samba with LDAP and how both fit into all of this (admittedly I haven't searched exhaustively). I've never set up Samba or an LDAP server before.

Also, most resources are based on the idea that you're actually using Active Directory as it's intended (for file / resource sharing) and talk about user configuration, printing, security, or other topics unrelated to my incredibly narrow use case.

I suppose my question is are there any resources to doing this effectively, or to those that have experience with Active Directory / LDAP configs, is there a way to accomplish my aim of the absolute bare minimum with the least amount of headache possible?


r/redhat • • 13d ago

Does Red Hat care if employees are working from a remote location?

10 Upvotes

I know they encourage remote working but I mean from a location different to your base location.

That would be a huge bonus imo as nearly every company mandates that be present in the location your job is based.


r/redhat • • 13d ago

Red Hat Offline Knowledge Portal: Complete Installation & Setup

Thumbnail
youtu.be
38 Upvotes

Hello

Let's learn today about the RHOKP (Red Hat Offline Knowledge Portal), how to implement it, all the features, and more.

Best

Wally


r/redhat • • 14d ago

Open Source Security Signals | Q3 2026

Thumbnail
redhat.com
0 Upvotes

Vulnerabilities are easy to count. Meaningful risk is harder to measure.

Open source has become the foundation of modern software because it works. Shared innovation, transparent development, global communities, and broad reuse let software advance at a scale no single organization could achieve alone.

Security is part of that model. Open source development makes code available for inspection. Researchers can test it. Communities can improve it. Fixes can benefit everyone who depends on the software.
The scale that makes open source powerful also makes security more complex. Modern applications can rely on hundreds or thousands of components linked through deep dependency trees. Understanding their security requires more than counting vulnerabilities.

TL;DR
Severity scores alone misjudge risk; AI-driven threats and supply chain paths like the Ultralytics incident demand context. Lightwell shows fixes must traverse deep dependencies and older versions. One JAXB fix can yield broad value across Java applications.


r/redhat • • 15d ago

Harden What You Can't Turn Off — mount options, TLS, crypto policies, and MariaDB locking-down from Into the Terminal Ep. 205

25 Upvotes

Episode 204 was about turning off what you don't need. This week's Into the Terminal (episode 205) is the sequel: harden what you can't get rid of. Scott and Nate layer defense in depth on a RHEL box — filesystem mount options that stop planted binaries from becoming root, a live tcpdump of passwords flying across the wire in cleartext (and the same request vanishing under TLS), one-command system-wide crypto policy, and a full MariaDB hardening walkthrough that includes the SELinux denial you shouldn't "fix" with setenforce 0.

Full video here → https://www.youtube.com/watch?v=EDrPZT-TvX4 More hands-on RHEL practice → https://redhat.com/interactive-labs


The Essentials: Filesystem Mount Options Are Security Controls

Compliance frameworks don't just ask for fancy partitioning so your disk layout looks impressive. Separate mounts for things like /tmp, /var, and /home do two jobs:

  1. Contain disk-full disasters — if /var fills up, logging and services get unhappy, but you can still log in and read /etc
  2. Give you different mount options per filesystem — you can't slap noexec on / without breaking sudo, ls, and everything else you need

Scott mounted a tiny demo filesystem on /mnt and dropped three "interesting" files on it: a setuid copy of sudo, a setgid write binary, and a tiny shell script. Colorized ls made the special bits obvious. Running the planted sudo as a normal user escalated to root — because setuid does what it says on the tin, even when the binary is sitting in a weird directory instead of /usr/bin.

Mount optionWhat it does
nosuidIgnores setuid and setgid bits — planted root-setuid binaries can't escalate
noexecNothing on this filesystem can be executed (even if the execute bit is set)
nodevDevice nodes created with mknod aren't honored — kills planted /dev/sda-style tricks
# Live remount for testing (gone on reboot)
mount -o remount,nosuid /mnt
mount -o remount,noexec /mnt
mount -o remount,nosuid,nodev,noexec /mnt

# Make it stick — add the options in /etc/fstab, then:
umount /mnt
mount -a          # re-read fstab and attach everything
mount | grep /mnt # confirm the options stuck

Pro tips from the show:

  • Test with mount -o remount,... first (like firewall rules in memory) — if you brick something, a reboot still saves you. Writing a broken entry straight into /etc/fstab means the next reboot puts you right back in the broken state.
  • After editing fstab, mount -a is how you find out now whether the syntax is good — don't wait for reboot day.
  • You need the more complex partition layout for this to work. One big / filesystem means you can't noexec/nosuid the places users can write without also breaking legitimate system binaries.
  • Nate ran a Summit booth challenge years ago that was literally "why won't my script run?" with /tmp mounted noexec. Plenty of working Linux admins couldn't solve it. Common ≠ known.

(Spaces vs tabs in fstab: Scott lined things up with spaces. Nate called him a heathen. Tab stops entered the chat.)


Harden the Wire: Plaintext vs. Encrypted

Nate's first packet-capture demo still feels like a superpower the first time you see it — and that's the point.

CommandWhat it does
tcpdump -i any -n -A 'tcp port 80'Capture HTTP in cleartext (ASCII payload dump)
curl -d 'user=admin&password=SuperSecret123' http://127.0.0.1/POST "secrets" over plain HTTP
tcpdump -i any -n -A 'tcp port 443'Same capture on HTTPS
curl -k -d 'user=admin&password=SuperSecret123' https://127.0.0.1/Same POST over TLS (-k = accept self-signed)

On port 80, the capture shows the POST body in cleartext — username, password, the whole request. On port 443 with mod_ssl's out-of-the-box self-signed cert, that same payload is just TLS noise. You can't read it.

Takeaways they hammered:

  • A self-signed cert encrypts just as well as a CA-signed one. The CA adds trust (browsers/clients accept the identity without warnings), not stronger crypto. Key length and algorithms determine how hard it is to crack.
  • Protect the private key. Heartbleed (over a decade ago) was scary specifically because it could leak keys from memory — and with the key, you can impersonate the service.
  • Open Wi-Fi (Starbucks "click I agree" portals with no password) is often cleartext between you and the AP. Encrypt your own sessions (TLS, VPN) regardless.
  • Switched wired networks usually only show you your own traffic unless there's a SPAN/mirror port. Wi-Fi on the same AP is a different story.

Advanced: Raise the Crypto Floor System-Wide

Hand-tuning OpenSSH, OpenSSL, GnuTLS, NSS, Kerberos… forever is a losing game. RHEL gives you one knob: system-wide crypto policies.

CommandWhat it does
update-crypto-policies --showPrint the active policy (usually DEFAULT out of the box)
update-crypto-policies --set FUTURERaise the floor — refuse weaker algorithms/key sizes
update-crypto-policies --set DEFAULTBack to the sane modern baseline
update-crypto-policies --set LEGACYLoosen for ancient gear (going the wrong way — last resort)
update-crypto-policies --set DEFAULT:NO-SHA1Surgical subpolicy: keep DEFAULT, kill SHA-1 signatures

Built-in policies worth knowing: DEFAULT, FUTURE, LEGACY, and FIPS (pairs with fips-mode-setup — its own rabbit hole).

What FUTURE actually breaks (live demo)

Scott flipped the box to FUTURE, then systemctl restart httpd — Apache refused to start. The smoking gun in /var/log/httpd/ssl_error_log: the default mod_ssl certificate key was too small. FUTURE wants something stronger than a 2048-bit RSA key (think 3072+ minimum); the stock self-signed cert was 2048.

# Generate a FUTURE-compliant self-signed cert (4096-bit)
openssl req -x509 -nodes -days 365 -newkey rsa:4096 \
  -keyout /etc/pki/tls/private/localhost.key \
  -out /etc/pki/tls/certs/localhost.crt \
  -subj "/CN=$(hostname)"

systemctl restart httpd   # now starts under FUTURE

Caveats from the show:

  • After changing policy, reboot (or at least restart crypto-using services). Already-running processes keep the old policy in memory.
  • Distro packages that use the system crypto libraries honor the policy. Containers, Flatpaks, and third-party apps (Chrome was the example) often ship their own crypto stacks and ignore the host policy entirely.
  • Stronger crypto = more math per connection. Fine for low-volume boxes; measure CPU on high-connection services.
  • Post-quantum: Nate's take — if you're standing up a new box today, enable quantum-safe algorithms from day one. RHEL 10 does this by default; RHEL 9 makes it an option. Older distros often don't have the algorithms at all.

Advanced: Harden a Real Service End-to-End (MariaDB)

Fresh dnf install + enable. No databases, no passwords — stock out of the box. RHEL ships services a bit more locked down than many community distros, but "a little hardened" ≠ "done."

1. See where it's listening

ss -tulnp | grep 3306

Out of the box: 0.0.0.0:3306 and [::]:3306 — every IPv4 and IPv6 interface. Dual-stack is the default on modern RHEL; firewalling only IPv4 and forgetting IPv6 is a classic footgun.

2. Bind to localhost

Edit /etc/my.cnf.d/mariadb-server.cnf, under [mysqld]:

bind-address=127.0.0.1
systemctl restart mariadb
ss -tulnp | grep 3306
# → 127.0.0.1:3306 only (IPv6 listener gone too, because you pinned a v4 address)

Same localhost-binding idea they previewed with Postgres in ep. 204. If the DB only needs local app access, don't put it on the network.

(Why [mysqld] not [mariadbd]? MariaDB forked from MySQL after license drama; config blocks and CLI tools stayed compatible for years so people weren't stranded.)

3. "Just change the port" — and the SELinux lesson

Changing port=3307 and restarting → MariaDB refuses to start. Not a typo — SELinux denied the bind.

sudo ausearch -m avc -ts recent
# look for: avc: denied { name_bind } ... comm="mariadbd" ... src=3307

# Wrong fix: setenforce 0
# Right fix:
sudo semanage port -a -t mysqld_port_t -p tcp 3307
systemctl restart mariadb

Apache often already allows 80/443/8080/8443. MariaDB's allowed port list is tighter. Teach SELinux the new port; don't turn it off.

And this still isn't "security." Nate's Windows SQL Server story: the boss insisted on checking "Hide SQL Server," which just added 1000 to the port (1433 → 2433). Attackers added 2433 to their scan lists. Security by obscurity is at best one thin layer — never the plan.

4. Run mariadb-secure-installation

The bundled wizard walks common hygiene:

StepWhy it matters
Switch root to UNIX socket authRoot DB access tied to the local Linux account / socket — not a network password
Set a root passwordOut-of-box often has none
Remove anonymous usersDefault anonymous accounts are free attack surface
Disallow remote root loginDefense in depth even after socket auth
Remove the test databaseOptional in labs / handoff environments; usually gone before prod
Reload privilege tablesApply now, or defer to a maintenance window

5. More you can still do (discussed, not fully demoed)

Hardening ideaWhy
local-infile=0Disable LOAD DATA LOCAL INFILE — harder for a compromised client/session to slurp files off the server
Password validation pluginEnforce password quality at the DB layer
Scope your GRANTsGRANT ALL … TO user@'%' is the most common real-world sin — grant only what's needed, only from the expected host

Apply the same mindset to SSH, httpd, or anything else you leave running: evaluate the out-of-box defaults against your threat model, then turn off what isn't serving you.


Related episodes


Quick Reference Card

# --- Filesystem hardening ---
mount -o remount,nosuid,nodev,noexec /mnt
# then persist options in /etc/fstab and verify with:
umount /mnt && mount -a && mount | grep /mnt

# --- See cleartext vs TLS ---
tcpdump -i any -n -A 'tcp port 80'
curl -d 'user=admin&password=SuperSecret123' http://127.0.0.1/
tcpdump -i any -n -A 'tcp port 443'
curl -k -d 'user=admin&password=SuperSecret123' https://127.0.0.1/

# --- System-wide crypto policy ---
update-crypto-policies --show
sudo update-crypto-policies --set FUTURE    # then reboot / restart services
sudo update-crypto-policies --set DEFAULT
sudo update-crypto-policies --set DEFAULT:NO-SHA1
tail /var/log/httpd/ssl_error_log           # when httpd refuses after FUTURE
openssl req -x509 -nodes -days 365 -newkey rsa:4096 \
  -keyout /etc/pki/tls/private/localhost.key \
  -out /etc/pki/tls/certs/localhost.crt \
  -subj "/CN=$(hostname)"

# --- MariaDB hardening ---
ss -tulnp | grep 3306
# /etc/my.cnf.d/mariadb-server.cnf  →  bind-address=127.0.0.1
# optional: port=3307  then:
sudo ausearch -m avc -ts recent
sudo semanage port -a -t mysqld_port_t -p tcp 3307
systemctl restart mariadb
mariadb-secure-installation

Links

  • 📺 Watch the full episode: https://www.youtube.com/watch?v=EDrPZT-TvX4
  • 🎓 Get started with RHEL: https://developers.redhat.com/register
  • 🧪 Try it yourself — Interactive Labs: https://redhat.com/interactive-labs
  • 💬 Join the Discord: https://red.ht/rhel-discord
  • Nate Lager: https://social.undrground.org/@gangrif
  • Scott McBrien: https://www.linkedin.com/in/scott-mcbrien-349b356

Into the Terminal is a (mostly) weekly live show where Red Hatters dig into Linux and RHEL administration skills — one terminal command, one bad pun, and one "oops, wrong window" at a time.