User guide
Filters and Network Address Translation
166 BLACK BOX ® Advanced Console Server
send the packet to the machine itself (locally-generated packets are mapped to the 127.0.0.1
address). It takes one option:
Parameters Involved and Passed Values
The file with the iptables rules is /etc/network/firewall. The fwset script saves the iptables
rules in the file /etc/network/firewall (command iptales-save > /etc/network/firewall) and
then save the file in the flash memory. The fwset restore restores the iptables rules previously
saved in /etc/network/firewall file (command iptables-restore </etc/network/firewall). This
command is executed at boot to invoke the last configuration saved.
Configuration for CAS, TS, and Dial-in Access
vi method
Step 1: Execute fwset restore.
This script will restore the IP Tables chains and rules configured in the /etc/network/
firewall file. This script can be called in the process, whenever the user wants to
restore the original configuration.
Step 2: Add the chains and rules using the command line.
See details of the iptables syntax earlier in this chapter.
Step 3: Execute iptables-save > /etc/network/firewall.
This program will save all the rules and chains of all the tables in the /etc/network/
firewall file.
Step 4: Execute updatefiles /etc/network/firewall.
This program will save the configuration to the flash memory.
Browser method
Step 1: Point the browser to the Console Server.
In the Address or Location field of your browser type the IP Address or the alias of
your console server.
Step 2: Log in.
Log in as root, and type the password configured for the root user. This will take you
to the Configuration and Administration page.