Next Previous Contents

4. Configuration Reference

This section contains general information about how to configure the Sentry Firewall CD, including information on which files to edit and how to setup specific daemons and services on a running system.

More information about configuring specific daemons or services can be found in the HOWTO.

4.1 Init script configuration

This section covers specifically the configuration of the system via the various init scripts kept in /etc/rc.d/(Slackware) or /etc/init.d/(Debian).

rc.inet1 and rc.inet1.conf

NOTE: This section applies to the SENTRYCD and SENTRYCD-DEVEL(Slackware-based) branches.

Versions of the Sentry Firewall CD before 1.5.0-rc7 utilized a perl-based rc.inet1 script to add and configure interfaces. The syntax of this file was similiar to the syntax used in the sentry.conf file for network configuration support -

   $interface(1..10) = "<IF>:<IP ADDRESS[/NETMASK]>|<DHCP>"

## Examples:
   $interface1 = "eth0:";        ## Set up eth0 with ip and
                                               ## netmask
   $interface2 = "eth0:";        ## Bind second IP to eth0.
   $interface3 = "eth1:dhcp";                  ## Use DHCP to set up eth1.

As you can see, the syntax is fairly simple. You can configure an interface or add an IP address by adding a "$interface#" variable.

As of version 1.5.0-rc7, the Sentry Firewall CD utilizes a modified version of the rc.inet1 and rc.inet1.conf init files that appeared in Slackware 9.1. Once again, you alter the network setup by altering a bunch of variables, except this time you edit /etc/rc.d/rc.inet1.conf instead of rc.inet1 itself. By default, this file supports the setup of up to four ethernet devices. A basic entry to set up eth0 looks something like the following:

   ETH0_ALIAS[0]=""        ## For multiple IPs on interface.
   ETH0_ALIAS[1]=""        ## Ditto.


To use DHCP instead of static IP addresses, set the "USE_DHCP[0]" directive to "yes". You may also add any number of additional "alias" IP addresses to each interface with the "ETHx_ALIAS[#]" variable.

NOTE: Keep in mind that if neither of these rc files suit your needs you may simply replace the rc.inet1 file at boot time with your own script by using the 'rc.inet1' directive in your sentry.conf file.

4.2 Further Reading

If there is something you wish to add to this list or to the documentation in general, please feel free to email

Next Previous Contents