The firewall scripts files

Securing and Optimizing Linux: RedHat Edition -A Hands on Guide
Prev |  | Next

# Chapter 11. The firewall scripts files

The tool `ipchains` allows you to set up firewalls, IP masquerading, etc. `Ipchains` talks to the kernel and tells it what packets to filter. Therefore all your firewall setups are stored in the kernel, and thus will be lost on reboot. To avoid this, we recommend using the System `V` init scripts to make your rules permanent. To do this, create a firewall script file like shown over the next three sections in your `/etc/rc.d/init.d/` directory for each servers you have. Of course, each server has different services to offer and needs a different firewall setup. For this reason, we provide you three different firewall settings, which you can play with, and examine to fit your needs. Also I assume that you have a minimum knowledge on how filtering firewalls and firewall rules works.

Prev | Home | Next
Source Address Filtering | Up | Config `/etc/rc.d/init.d/firewall` script file -Web Server