Table of Contents
/etc/network/interfaces
)/etc/network/options
)/etc/hosts
)/etc/hostname
)/etc/resolv.conf
)/etc/inetd.conf
)/etc/hosts.allow
)/etc/hosts.deny
)/etc/network
)You are now going to declare your network configuration through the Network configuration menu.
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:
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 !
Be sure that any interface change is reflected in your firewall configuration (step 6 below). Adjust Shorewall params file accordingly !