How To Install shorewall-lite on CentOS 7

In this tutorial we learn how to install shorewall-lite on CentOS 7. shorewall-lite is Shorewall firewall for compiled rulesets

Introduction

In this tutorial we learn how to install shorewall-lite on CentOS 7.

What is shorewall-lite

Shorewall Lite is a companion product to Shorewall that allows network administrators to centralize the configuration of Shorewall-based firewalls. Shorewall Lite runs a firewall script generated by a machine with a Shorewall rule compiler. A machine running Shorewall Lite does not need to have a Shorewall rule compiler installed.

We can use yum or dnf to install shorewall-lite on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install shorewall-lite.

Install shorewall-lite on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install shorewall-lite using yum by running the following command:

sudo yum -y install shorewall-lite

Install shorewall-lite on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install shorewall-lite using dnf by running the following command:

sudo dnf -y install shorewall-lite

How To Uninstall shorewall-lite on CentOS 7

To uninstall only the shorewall-lite package we can use the following command:

sudo dnf remove shorewall-lite

References

Summary

In this tutorial we learn how to install shorewall-lite on CentOS 7 using yum and dnf.