Saving Network Packet Filter Settings

After configuring the appropriate network packet filters for your situation, save the settings so they get restored after a reboot. For iptables, type the following command:

/sbin/service iptables save

With ipchains, type the following command:

/sbin/service ipchains save

This will save the settings in /etc/sysconfig/iptables or /etc/sysconfig/ipchains so they can be recalled at boot time.

Once this file is written, you will also be able to use the /sbin/service command to start, stop, and check the status (using the status switch) of iptables or ipchains. The /sbin/service will automatically load the appropriate module for you. For an example of how to use the /sbin/service command, see the Section called Starting the Piranha Configuration Tool Service in Chapter 7.

Finally, you will need to be sure the appropriate service is set to activate on the proper runlevels. For more on this, see the Section called Configuring Services on the LVS Routers in Chapter 7.

The next chapter will explain how to use the Piranha Configuration Tool to configure the LVS router and describe the steps necessary to active an LVS cluster.