r/linuxadmin • • Sep 20 '25

sar-journal

Thumbnail reddit.com
0 Upvotes

r/linuxadmin • • Sep 19 '25

What you are using as WAF?

15 Upvotes

I'm kind new to sysadmin, transitioning from 25 years of development to cloud web application management, so I'd like to know what you're using as a WAF

On my servers, 60% (sometimes more) of hits are from bots and malicious crawlers, and this sometimes causes high resource consumption

Currently, I'm using the free version of CloudFlare because I don't find the paid version effective enough to limit the rate of malicious connections and bots

I also tested BunkerWeb, but I didn't see much of a difference compared to the paid version of CloudFlare, with many false positives, which causes my team to waste a lot of time analyzing and unblocking them

Well, my main problem today isn't security itself, I think my solutions are working well, but these nasty attacks are hurting me...

some log from yesterday and half of today https://imgur.com/a/3HHng6h

ps: this is my first post here, sorry if wrong place and bad english


r/linuxadmin • • Sep 20 '25

Closed 1,200 brute force attempts/day with cPanel Security Advisor hardening

0 Upvotes

Had a client's VPS with cPanel/WHM where the logs showed ~1,200 failed SSH attempts over 3 days.

Here’s what I did:

  • Applied UFW rules + installed Fail2Ban
  • Disabled direct root login via SSH (PermitRootLogin no)
  • Kernel mismatch & updated libraries → rebooted to the latest kernel
  • Verified Security Advisor in WHM (Security Center → Security Advisor)

    • Fixed warnings: root SSH login disabled, SSH password auth disabled
    • Confirmed up-to-date OpenSSH version and restricted outbound SMTP
    • Ensured “nobody” user can’t send mail
  • Clean security report: ✅ no outdated binaries, ✅ suEXEC handled by mod_ruid2

Result: logs dropped to <5 SSH attempts/day, much cleaner baseline.

👉 For anyone running cPanel/WHM, Security Advisor is a solid first stop. It automatically highlights kernel issues, SSH configurations, and mail restrictions.

What other quick wins do you all use for a 10-minute VPS hardening?


r/linuxadmin • • Sep 19 '25

The Linux Distro That Won Me Over!

Thumbnail reddit.com
0 Upvotes

r/linuxadmin • • Sep 17 '25

34 years ago: Linus Torvalds published the source code for the first version of the Linux kernel

202 Upvotes

On September 17, 1991, Linus Torvalds publicly released the first version of the Linux kernel, version 0.01. This version was made available on an FTP server and announced in the comp.os.minix newsgroup.

Happy birthday! 🎉


r/linuxadmin • • Sep 17 '25

How to live view raw data in binary/hex coming in from a serial port?

4 Upvotes

We've got some specialized hardware in house which has a serial port that emits data over RS232. I do have specifications about the connection settings and the 31 bytes it "emits" every other time frame.

Now. I know how to connect to a console with screen /dev/ttyS0 but I haven't connected to a device that emits data in binary format. If I'd connect, I'd see garbled text at best I think because the terminal would like to interpret the bytes as ASCII if my assumption is correct.

Can I somehow live view the bytes it is receiving with eg screen or watch? Ideally the output would look more less like this.

00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

I'd like to take this first step so that I know I've got the connection setup properly and valid data is coming in.

Also perhaps socat could possibly help here? But I haven't used it before so I don't know how my command would more less look like.

Once I can display the binary data properly, as a next step, I want to use telegraf with the socket_listener (or other more suitable plugin) to connect to the serial port (if that's possible at all) and spit out the data to influxdb.

Reading on a bit I found this link about Serial programming. I'd like to avoid that if possible. My C skillz are rusty at best (auch).

so yeah, how would you go about this?


r/linuxadmin • • Sep 17 '25

Querying time server with ntpq and ntpd, polling single server never works

4 Upvotes

Hello, I have been stumped at this issue for a long while.
If I ever want to go and test a single ntp server with ntpq, I always get "timed out"
The command I'm using is
ntpq -p x.x.x.x
ntpq -c rv x.x.x.x

Is it completely impossible to test just one server with ntpq?
Should I rely on ntpdate with an IP or ntpq -p without specifying a host or IP address?

ntpd is alive and well though and ntpd -gq works fine

Edit: This is what I'm concluding, and what the man pages mostly imply

when you specify a IP in the ntpq command its running commands on the remote IP and /etc/ntp.conf likely restricts that to localhost and 127.0.0.1 connections

So the remote server has to "allow" that

If you want to test ntp best bet is to stop the ntpd service and run ntpd -gq

And it should receive and update the time

And check the peers with ntpq -p or ntpq -c rv

without an IP specified or specify 127.0.0.1


r/linuxadmin • • Sep 16 '25

Linux Server as repo of other servers for updates

16 Upvotes

Hey all,

I have an airgapped network with 3 serverz that I update regularly via a USB SSD without issue. The problem is that the servers are distant from one a other and I was wondering is I could put that USB SSD in the main server and have the others point to this one to get their updates.

I guess the main question is... how do I make the main server in the cluster the repo of the other 2 and possibly othe linux boxes?

What how woukd I write it in their sources.list files?


r/linuxadmin • • Sep 17 '25

Can't join Directory Server with ldaps

1 Upvotes

I have a Synology Directory Server running as a domain server. And I joined an Ubuntu 24.04.3 client to this domain using this guide here. However almost at the end I fail to join the domain with ldaps.

matth@xtc02:~$ sudo adcli join --use-ldaps domain.org -U matthias.karl --verbose --ldap-passwd
[sudo] password for matth:
* Using domain name: DOMAIN.ORG
* Calculated computer account name from fqdn: XTC02
* Calculated domain realm from name: DOMAIN.ORG
* Discovering domain controllers: _ldap._tcp.DOMAIN.ORG
* Sending NetLogon ping to domain controller: dc.domain.org
* Received NetLogon info from: dc.domain.org
* Using LDAPS to connect to dc.domain.org
* Wrote out krb5.conf snippet to /tmp/adcli-krb5-gcOWYF/krb5.d/adcli-krb5-conf-GDq9Sg
Password for user.name@DOMAIN.ORG:
* Authenticated as user: user.name@DOMAIN.ORG
* Using GSSAPI for SASL bind
! Couldn't authenticate to active directory: SASL:[GSSAPI]: Sign or Seal are required.
adcli: couldn't connect to DOMAIN.ORG domain: Couldn't authenticate to active directory: SASL:[GSSAPI]: Sign or Seal are required.

If I omit the --use-ldaps it does connect without an error. I searched far and wide, but I couldn't really find anything relevant to this error and how to fix it.

Besides, even though I did join the domain without ldaps, I still can't login on the client using a domain user. Is this really so difficult?


r/linuxadmin • • Sep 16 '25

I built linux.recipes - bite-sized Linux command “recipes” for everyday tasks

Thumbnail reddit.com
7 Upvotes

r/linuxadmin • • Sep 15 '25

Automatically mount NFS home directory on Linux in mixed AD - FreeIPA environment

6 Upvotes

Hi everyone. I'm trying to configure a series of Linux machines (AlmaLinux 10) to be able to authenticate via FreeIPA and mount the home directory of the user from a NFS share hosted on TrueNAS.

The environment in question is a mixed one, we have Windows machines and Linux machines. Windows machines authenticate against Active Directory (samba-tool on Debian) while the Linux machines are authenticated via FreeIPA (on Alma 10). FreeIPA and Active Directory are on a two way trust relationship and the users are on the AD domain.

Windows machines authenticate just fine and have no problem crating the user directories on a Samba share hosted on the TrueNAS server.

As of now the only Linux machine that I joined to the domain can authenticate with FreeIPA but GNOME doesn't load (the login happens but the graphical shell does not start). I'm trying to configure the systems to use the NFS share (that is the same storage as the Samba one) for the home directory.

Now, I have little to no experience with FreeIPA and AD and the setup in question is pretty complicated but we are at a good point.

My question is: what do I have to configure to have the Linux systems to use the NFS share for the home dir? What configuration do I have to apply to the FreeIPA server and what configuration do I have to apply to the hosts joined to the domain? We want to use the same directory we would mount on Windows to have access to the same files independently from what system you are on (meaning Windows or Linux).

Any help will be appreciated.


r/linuxadmin • • Sep 15 '25

Simulating Real RHCSA Exam Conditions at Home – Helpful Guide

11 Upvotes

I know a lot of people here are working toward the RHCSA (EX200), and one of the biggest challenges is figuring out how to actually prepare under “real exam conditions.” Practicing commands is one thing, but simulating the pressure and environment is another.

I came across a guide that explains how to set up a realistic home practice environment - including VM setup, timing strategies, and recreating the exam-style tasks. Thought it might help anyone who’s looking to get closer to the “real thing” while studying:

👉 How to Simulate Real RHCSA Exam Conditions at Home?

For those who’ve already taken the RHCSA - did practicing under exam-like conditions make a big difference for you?


r/linuxadmin • • Sep 15 '25

One Year Selfhosting my own Podcast

Thumbnail reddit.com
2 Upvotes