Skip to content

Auto configuration for common firewalls for linux newbies

Notifications You must be signed in to change notification settings

cfunkz/linux-firewall-autoconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Firewall Management Script

image image image

This script is designed to help configure and manage firewalls on a Linux system, using two firewall management tools: firewalld(Firewall-CMD) and UFW(Uncomplicated Firewall). It allows you to open and close ports, enable or disable the firewall, list active rules, and show the status of the firewalls.

Additionally, this script offers the functionality to specify interfaces (e.g., eth0, enp1s0) when enabling or disabling ports, allowing more control over the firewall rules especially if you're a newbie.

What this does

  • firewalld and UFW:
    • Enable or disable ports with interface restrictions.
    • List active firewall rules.
    • Enable or disable firewall.
    • Show the status of firewall.

What need

  • firewalld or UFW installed and configured on your system.
  • sudo privileges to modify firewall settings.

What do

  1. Download the script using curl:
    curl -sSL https://github.com/cfunkz/linux-firewall-autoconfig/raw/main/firewall_config.sh -o firewall_config.sh
    chmod +x firewall_config.sh
    ./firewall_config.sh

Releases

No releases published

Packages

No packages published

Languages