Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
yum install -y wget
cd /etc/yum.repos.d/
sudo wget
yum install -y ufw
echo y | systemctl enable ufw
echo y | systemctl start ufw
chkconfig ufw on
ufw enable
ufw status
ufw default deny incoming
ufw default allow outgoing
ufw status

Many Thanks to SuperUser

  • No labels


  1. Anonymous

    New Path!!!

  2. Anonymous

    for using systemctl you must edit the file /usr/lib/systemd/system/ufw.service

    add following

    Copy from Ubuntu Server 16.04

    [Unit] Description=Uncomplicated firewall DefaultDependencies=no

    [Service] Type=oneshot RemainAfterExit=yes ExecStart=/lib/ufw/ufw-init start quiet ExecStop=/lib/ufw/ufw-init stop