DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
VGSources
Blog

How to Set Up an Intrusion Detection System on a Linux VPS

A practical, layered Linux VPS IDS guide for game servers: install Wazuh, collect auditd events, add Suricata network inspection, and verify alerts in Threat Hunting.
Length11 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For most Linux game servers, the practical IDS design is layered: run a Wazuh agent on the VPS, collect Linux Audit events with auditd, and add Suricata only when you need inspection of network traffic. The agent sends endpoint telemetry to a Wazuh manager, while Suricata’s JSON events are read from /var/log/suricata/eve.json. This combination can show SSH abuse, unexpected privilege changes, suspicious command execution, file tampering and selected network threats without requiring an agent inside every game process.

Keep the manager separate from a production game VPS when possible. A small deployment can use one Wazuh host, but the manager still needs enough CPU, memory and disk for its alert and vulnerability data. Build the installation in layers, validate each data source in Wazuh Threat Hunting, and tune rules before enabling every possible network signature.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What an IDS does on a Linux game-server VPS

An intrusion detection system observes activity and raises alerts; it does not automatically make an attacker disappear. On a VPS hosting a game server, useful evidence comes from several places:

  • Endpoint telemetry: processes, files, configuration changes and other host events collected by the Wazuh agent.
  • Linux Audit telemetry: system calls and privileged actions recorded by auditd according to rules you define.
  • Network inspection: packets examined by Suricata when the VPS interface and traffic path allow it.

This layered model matters because a game service can be compromised without producing a distinctive network signature, while a scan or exploit attempt may be visible on the wire but leave little useful information in an application log. No single component provides universal coverage, and the official documentation does not establish a universal detection rate or false-positive rate. Treat alerts as evidence for investigation, not as proof that an incident did or did not occur.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

What the layers can and cannot see

Layer Best at showing Important limitation
Wazuh agent Host state and endpoint events from the VPS Needs a reachable Wazuh manager and local configuration that selects useful data
auditd System-call, file and privileged-action activity Rules must be deliberately scoped; collecting everything can create noise and storage pressure
Suricata Network traffic and signature-based events on the monitored interface It cannot inspect traffic the VPS never receives, and it fails if configured with the wrong interface

Choose a topology and size the Wazuh manager

The Wazuh agent is lightweight software that can run on servers, cloud instances, containers and virtual machines. It communicates with a Wazuh manager through an encrypted and authenticated channel and sends data in near real time. The manager is the central analysis point, so place it where it can receive the agent’s traffic reliably and where its disks are protected from the game server’s workload.

Single-host or distributed installation

For a small deployment, a single Wazuh host is the simplest topology. You can monitor one game VPS or several endpoints with one manager. Larger installations can distribute the central components for resilience and capacity, but distribution adds services, network paths and maintenance. Decide based on the number of endpoints, expected alert rate, retention period and how much downtime the monitoring system can tolerate.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Supported manager operating systems and minimum sizing

Wazuh’s current server guide lists Ubuntu 16.04, 18.04, 20.04, 22.04 and 24.04; Amazon Linux 2 and 2023; CentOS Stream 10; and RHEL 7 through 10 among supported systems. Check the current guide before selecting an image, because support changes independently of your game server software.

Manager profile CPU and memory How to interpret it
Minimum documented sizing 2 CPU cores and 2 GB RAM Wazuh’s stated minimum; leave headroom for the operating system and workload
Recommended documented sizing 8 CPU cores and 4 GB RAM Wazuh’s current recommendation for a more comfortable deployment

Wazuh documents an estimate of 0.25 alerts per second and 0.1 GB for 90 days per server endpoint. That is a planning figure from Wazuh’s table, not a promise for your rules or traffic. The vulnerability database is about 11 GB after unpacking, and Wazuh recommends at least 20 GB free on the volume during first start. Disk alerts, Suricata event volume and longer retention can require substantially more space.

Place the manager deliberately

  • Use a separate VPS if losing the game server should not also destroy the monitoring system.
  • Restrict manager and agent ports with your cloud firewall or host firewall to the addresses that need them.
  • Use an encrypted, authenticated agent channel and keep the manager’s operating system patched.
  • Record the manager address before installing the agent; the installation command needs it.

Install and enroll the Wazuh agent

Install the agent on the VPS that runs the game server. The manager can be self-hosted for direct control over components and sizing, or you can use Wazuh Cloud as an optional hosted path. The hosted option changes who operates the central service; it does not remove the need to configure the endpoint and validate its events.

1. Add the signed Wazuh repository

On Debian or Ubuntu, add Wazuh’s signed package repository by following the current Wazuh agent installation instructions for your release. Do not replace the signing-key and repository details with an unrelated mirror. The exact repository commands vary by distribution and release.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

2. Install the agent with the manager address

After the repository is configured, install the package and pass the manager’s address. This example uses the private address 10.0.0.2; replace it with the address reachable from the monitored VPS:

WAZUH_MANAGER="10.0.0.2" apt-get install wazuh-agent

Use the package manager syntax appropriate to your distribution if the VPS is not Debian or Ubuntu. Verify that the package installation completes without a repository, key or dependency error.

3. Enable and start the service

systemctl enable wazuh-agent
systemctl start wazuh-agent

Check the service status and the agent log on the VPS. On the manager, confirm that the endpoint appears as enrolled and is sending data. An agent that is installed but cannot authenticate or reach the manager is not monitoring the host.

4. Start with host events relevant to a game server

Prioritize the directories and services that matter to your server: the game-server executable and scripts, configuration files, plugin or mod directories, startup units, SSH configuration and administrative accounts. Add only the locations you can investigate. Monitoring every transient file can bury a real change in routine package and log activity.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Enable Linux Audit with auditd

Linux Audit records low-level activity that ordinary application logs may omit. It can provide evidence about file access, command execution and privilege changes, but it is not useful until you define rules for the actions you care about.

1. Install auditd

On Debian or Ubuntu:

apt install -y auditd

Use the documented yum or dnf equivalent on distributions that use those package managers. Enable and start the service according to your distribution’s service-management conventions, then confirm that /var/log/audit/audit.log is being written.

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

2. Tell the Wazuh agent to read the audit log

Edit the agent configuration at /var/ossec/etc/ossec.conf and ensure the audit log is declared with the audit format:

<localfile>
  <location>/var/log/audit/audit.log</location>
  <log_format>audit</log_format>
</localfile>

Keep the existing configuration structure intact; add the block in the appropriate <ossec_config> section. Restart the agent after saving the file:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
systemctl restart wazuh-agent

3. Define focused Audit rules

Create rules with auditctl for immediate testing or in the distribution’s persistent audit-rules file for rules that must survive a reboot. Useful categories for a game VPS include:

  • Changes to SSH configuration, authorized keys and service-unit files.
  • Execution of administrative tools by accounts that normally run only the game service.
  • Use of sudo, set-user-ID programs and other privilege transitions.
  • Writes to the game-server binary, startup scripts, plugin or mod directories and sensitive configuration files.
  • Changes to user, group and authentication databases.

Choose paths and identities that match your server. A rule for a file that does not exist, or a broad rule covering every process, adds little investigative value while increasing event volume. After loading rules, perform a controlled action—such as changing a test file or using an authorized administrative command—and confirm that an Audit event arrives in Wazuh Threat Hunting.

Add Suricata when network inspection is required

Suricata complements host telemetry by examining traffic on the VPS. It is most useful when you need visibility into scans, protocol anomalies or signatures associated with known threats. It does not replace auditd: encrypted application traffic, local-only activity and events outside the monitored interface still require host evidence.

1. Install Suricata and a ruleset

Wazuh’s Ubuntu example installs Suricata from the Open Information Security Foundation’s stable PPA and installs an Emerging Threats ruleset. Follow the current package instructions for the exact Ubuntu release and ruleset command rather than copying a repository line intended for another release.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

2. Set the network variables

In Suricata’s configuration, set HOME_NET to the VPS address or addresses that represent the protected host and set EXTERNAL_NET to any, as in Wazuh’s example, unless your network design requires a narrower definition. Under the af-packet section, replace the example interface with the VPS’s actual interface name.

Cloud images commonly use names such as eth0, ens3 or a provider-specific name; do not assume one. Identify the interface with your operating system’s network tools, then use that exact name in both Suricata settings where required.

3. Start Suricata and handle an interface error

Restart Suricata after changing its configuration. If its log reports Unable to find iface, the configured interface does not exist or is misspelled. Check the actual interface name, update /etc/default/suricata and /etc/suricata/suricata.yaml, then restart the service and inspect its log again.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

4. Forward eve.json to Wazuh

Suricata writes structured events to /var/log/suricata/eve.json. Add a JSON localfile entry to the Wazuh agent’s /var/ossec/etc/ossec.conf:

<localfile>
  <location>/var/log/suricata/eve.json</location>
  <log_format>json</log_format>
</localfile>

Restart the agent after saving the configuration:

systemctl restart wazuh-agent

Wazuh automatically parses eve.json and generates related dashboard alerts when ingestion is working.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Validate that alerts are actually arriving

Do not consider the IDS complete because services show “active.” Validate the entire path: event generation, local log writing, agent reading, network delivery, manager parsing and dashboard display.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
  1. Check the source log locally. Confirm that /var/log/audit/audit.log contains a controlled Audit event and that /var/log/suricata/eve.json changes when Suricata observes traffic.
  2. Check the agent. Review the Wazuh agent service status and logs for configuration, permission, connection or authentication errors after each restart.
  3. Check the manager enrollment. Confirm that the endpoint is connected and that its last-seen time advances.
  4. Use Threat Hunting. Filter Suricata events with rule.groups:suricata. Linux Audit alerts should also appear in Threat Hunting.
  5. Perform safe test actions. Change a monitored test file or execute an authorized administrative action that matches one of your Audit rules. Avoid generating attack traffic against systems you do not own.
  6. Record the expected result. Note the event time, rule name and source so you can distinguish delayed ingestion from a rule that never matched.

If a local log changes but Threat Hunting stays empty, investigate the agent’s localfile block, file permissions, service restart and manager connectivity in that order. If no local log changes, troubleshoot audit rules or Suricata before changing Wazuh.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose host-only or host-plus-network coverage

Implementation Use it when Trade-off
Wazuh agent plus auditd You need process, file, privilege and authentication evidence on one or more game VPSs Requires careful Audit-rule design and does not inspect packets directly
Wazuh agent plus Suricata You need network signatures and protocol visibility in addition to endpoint events Adds CPU, configuration and event-volume overhead; interface selection is critical
Wazuh agent, auditd and Suricata You want the broadest practical host-and-network view for a high-value server More components to patch, tune, store and investigate

For a small community game server, begin with the agent and focused Audit rules. Add Suricata after you have a clear question—such as whether scans and suspicious inbound traffic are reaching the VPS—and enough capacity to retain the resulting events.

Control alert noise, storage and game-server impact

Tune by investigation value

Every rule should answer a question you can act on. If a file changes during every game update, either exclude the expected update path or schedule and label maintenance so investigators can recognize it. Keep alerts for unexpected owners, permissions, execution contexts and times rather than treating every legitimate deployment as an intrusion.

Separate routine administration from incidents

Use named administrative accounts and document approved maintenance windows. When a plugin, mod or server binary changes, record who made the change and why. This context helps you distinguish a planned update from an unauthorized write when an Audit alert appears.

Watch the VPS budget

Suricata signatures and verbose Audit rules consume CPU, memory, disk and manager capacity. Retention is a design choice: Wazuh’s 0.1 GB for 90 days per server endpoint is the documented table estimate, not a guarantee for a combined Audit-and-Suricata workload. Monitor disk free space, manager load and the game service’s latency after enabling each layer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshooting branches

The agent is installed but offline

  • Verify the manager address supplied in the installation command.
  • Check that the VPS firewall and cloud security rules allow the required agent-to-manager connection.
  • Review agent logs for authentication, certificate, DNS or time-related errors.
  • Confirm the manager is running and has capacity for another endpoint.

Audit alerts never appear

  • Confirm auditd is running and /var/log/audit/audit.log is changing.
  • Check that the Wazuh <localfile> block uses <log_format>audit</log_format>.
  • Verify that the action you tested matches a loaded Audit rule.
  • Restart the agent after editing /var/ossec/etc/ossec.conf and check for XML or permission errors.

Suricata reports “Unable to find iface”

Find the VPS’s real interface name and update both /etc/default/suricata and /etc/suricata/suricata.yaml. Restart Suricata, then verify that eve.json is being written. A correct ruleset cannot produce events if Suricata is attached to a nonexistent interface.

Suricata writes events but Wazuh shows none

  • Confirm the agent’s JSON localfile points exactly to /var/log/suricata/eve.json.
  • Confirm the format is json, the agent was restarted and its service account can read the file.
  • Use Threat Hunting’s rule.groups:suricata filter only after checking the local file and agent logs.

Operational checklist for a production game VPS

  • Manager operating system and Wazuh version are supported by current documentation.
  • Manager has at least the documented 2 CPU cores and 2 GB RAM minimum, with 4 GB RAM and 8 CPU cores as the documented recommendation where capacity allows.
  • At least 20 GB of free manager volume space is available during first start, with additional capacity planned for retention.
  • Agent is enrolled, connected and sending telemetry over its encrypted, authenticated channel.
  • auditd is installed, its log is being written and rules cover the files, commands and privilege actions that matter.
  • Suricata is installed only where network inspection is needed, uses the actual VPS interface and writes eve.json.
  • Wazuh reads both Audit and Suricata logs with the correct formats.
  • Controlled test events are visible in Threat Hunting, including rule.groups:suricata for Suricata data.
  • Alert volume, disk use and game-server performance are reviewed after tuning.
  • Someone is assigned to investigate alerts; an IDS without a response process is only a growing log.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.