LUX5 appliance image is used as the base class for NET appliance.
NET has following volume setup:
- boot volume, 100MB size, mounted as "/", writeable, instantiable.
- usr volume, 130MB size, mounted as "/usr", read-only, common
The volumes contains a basic Linux installation inherited from base LUX5 appliance and the next additional software: NET NET-2.4.5-1.tar
NET appliance NET-build.2.4.5-1.tar.bz2
NET-src-2.4.5-1.tar.bz2
iptables-1.3.5-1.2.1.src.rpm
audit-1.7.13-2.el5.src.rpm
bind-9.3.6-4.P1.el5_4.1.src.rpm
dbus-1.1.2-12.el5_4.1.src.rpm
libselinux-1.33.4-5.5.el5.src.rpm
libsemanage-1.9.1-4.4.el5.src.rpm
libsepol-1.15.2-2.el5.src.rpm
policycoreutils-1.33.12-14.6.el5.src.rpm
net-test-2.4.5-1.tar.bz2 - test scripts
NET is an output gateway that provides outgoing access to a network outside of an application. NET uses iptables to perform packets NAT and firewall functions. Appliance also include bind caching DNS server that enables host name resolving without any external DNS servers.
NET is performed at startup time by the appliance.sh init script. It takes properties defined in appliance boundary and uses them to setup iptables rules by invoking iptables.sh script.
NET appliance contains the following files in the /appliance folder on its boot volume. These files are used to implement the appliance:
| File | Type | Description |
|---|---|---|
appliance.sh | Bash script | Appliance main controlling script - invoked when the appliance is booted. |
appliance_netsetup.sh | Bash script | Invoked early from appliance.sh to setup external network. |
gethost.pl | Perl script | Auxiliary script to resolve host name to ip address |
getifip.pl | Perl script | Auxiliary script to find the IP address of interface |
iptables-bkrules.sh | Bash script | Sets the backup iptables rules set. Executed by iptables.sh when the main rules set fails. |
iptables-fwrules.sh | Bash script | Sets the main iptables rules set. |
iptables.sh | Bash script | Configures iptables rules. Invoked from appliance.sh. |