Skip to content
/ RALF Public

Reflex Active Linux Firewall populates IP sets from log file contents for an automated dynamic firewall (ADF)

Notifications You must be signed in to change notification settings

NOYB/RALF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

RALF

Reflex Active Linux Firewall

What it is

A dynamic firewall automation tool.

What it Does

Automates the populating of IP sets from log file contents for an automated dynamic firewall (ADF).

Operation

Monitors specified log files for status messages typically attributed to nefarious activity to glean the IP addresses and add them to an IP set used for filtering by the firewall (e.g. iptables).

Once a log file version is rotated beyond the number of log file versions specified to be parsed, the IP addresses previously gleaned from that log file version are removed from the IP set when the script is next run.

Benefits

Utilizing dynamically generated IP sets with the firewall capabilities to automate the blocking of detected nefarious activity at the network firewall rather than at the application can:

  1. Reduce system and network resource usage for processing nefarious activity.
  2. Reduce log file size and clutter (log spam) so the logs are more manageable and efficient for gathering legitimate information.
  3. Aid in fending off certain nefarious activities and attacks.

Additionall details

See /src/usr/local/libexec/ADF/Manual/

Development System

CentOS 7.6.1810
Kernel: Linux 3.10.0-957.5.1.el7.centos.plus.x86_64
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
IP Set v6.38
IP Tables v1.4.21
Postfix 2.10.1
BIND 9.9.4

BASH Commands Used

Built-in: declare/typeset/local, echo, exit, printf, unset
External: awk, case, cat, date, mkdir, sort, uniq

About

Reflex Active Linux Firewall populates IP sets from log file contents for an automated dynamic firewall (ADF)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages