Chapter 8. Configure your network

Table of Contents

interfaces file (/etc/network/interfaces)
network options file (/etc/network/options)
hosts IP addresses (/etc/hosts)
hostname (/etc/hostname)
resolv.conf (/etc/resolv.conf)
Super server daemon configuration (/etc/inetd.conf)
hosts.allow (/etc/hosts.allow)
hosts.deny (/etc/hosts.deny)
network (/etc/network)

You are now going to declare your network configuration through the Network configuration menu.

Important

If you want to permanently change any of the following parameters, do not forget to backup etc.lrp !

Through the LEAF configuration menu type 1 to access to the Network configuration menu:


                        Network configuration menu

        1) interfaces file                   (/etc/network/interfaces)
        2) network options file              (/etc/network/options)
        3) hosts IP addresses                (/etc/hosts)
        4) hostname                          (/etc/hostname)
        5) resolv.conf                       (/etc/resolv.conf)
        6) super server daemon configuration (/etc/inetd.conf)
        7) hosts.allow                       (/etc/hosts.allow)
        8) hosts.deny                        (/etc/hosts.deny)
        9) networks                          (/etc/networks)

  q) quit
  ----------------------------------------------------------------------------
        Selection:

interfaces file (/etc/network/interfaces)

By default, the LEAF Bering-uClibc firewall uses eth0 as the external interface with a dynamic IP provided by dhcpcd.lrp and eth1 as the internal interface at address 192.168.1.254.

Edit 1) interfaces to modify those settings.

Typical LEAF configurations are provided in the interfaces file, simply uncomment what you need and comment (#) what you will not need!

Check the interfaces man pages for /etc/network/interfaces.

The network configuration is activated in the /etc/init.d/networking script through the ifupdown functions.

Once your interfaces are configured, remember to save and backup the etc.lrp package !

Important

Be sure that any interface change is reflected in your firewall configuration (step 6 below). Adjust Shorewall params file accordingly !