Shorewall
Want to set up a Linux system as a firewall for a small network? Shorewall helps us to configure an enterprise-level firewall via standard Shorewall tools. Shorewall is actually built on Iptables, but it makes it easier to configure things.
Getting ready
A Linux system with two network cards installed and working is needed for configuring Shorewall. One card will be used as an external network interface and the second will be used as an internal network interface. In our example, we are using eth0
as external and eth1
as internal. Configure both cards as per the network configuration. Make sure that you are able to ping another system on the local network and also something on the external network, the internet. On this system, we will be installing the Shorewall package and then configuring it as per our requirements.
How to do it...
- We begin with installing Shorewall on our system using the
apt-get
command:
- Once the installation is complete, try to start Shorewall. You will get an...