Skip to content

Iptables Firewall Script with start, stop, restart, status functunality

Notifications You must be signed in to change notification settings

sayajin101/iptables-firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

iptables-firewall

Iptables Firewall Script with start, stop, restart, status functunality

Setup

  • Add firewall.sh content to /etc/sysconfig/firewall.sh

  • Change firewall.sh permissions

    • chmod 755 /etc/sysconfig/firewall.sh
  • Add firewall.service content to /etc/systemd/system/firewall.service

  • Install iptables

    • yum install iptables-services
  • Remove default iptable firewall rules

    • rm /etc/sysconfig/iptables
  • Stop & Disable firewalld

    • systemctl stop firewalld
    • systemctl disable firewalld
    • systemctl mask firewalld
  • Start & enable firewall service

    • systemctl enable firewall
    • systemctl start firewall

About

Iptables Firewall Script with start, stop, restart, status functunality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages