65
6620-3201
4.28 Confi gure > Firewall
All models in the Westermo range incorporate a comprehensive “fi rewall” facility. A fi rewall is a
security system that is used to restrict the type of traffi c that the router will transmit or receive,
based on a combination of IP address, service type, protocol type, IP fl ags, etc. Firewalls are used
to minimise the risk of unauthorised access to your local network resources by external users or to
restrict the range of external resources to which local users have access. A more detailed description
of how fi rewalls operate on Westermo routers is given in the “Firewall Scripts” section. If you intend to
implement a fi rewall you should refer to that section fi rst.
The rules governing the operation of the fi rewall are contained in a pseudo-fi le called “FW.TXT”. This
fi le can be created either by using the controls on the
Confi gure > Firewall web page, or by using a
text editor on your PC and then loading the resulting fi le into the unit (using FTP or XMODEM).
Using the Web Page(s)
If you have not yet created a fi le called “FW.TXT” on the unit, the Confi gure > Firewall page will
initially contain a blank script with a button labelled
Insert to the right. If you have created the fi le it will
be displayed in the top section of the screen with line numbers at the left and a series of buttons at
the right that allow you to delete, edit or insert lines.
At the bottom of the screen are three more buttons labelled
Reset, Save and Restore.
To create a new rule directly on the web page click on the
Insert button at the right of the screen. If
there are already one or more lines in the fi le, there will be two
Insert buttons, one next to the line
(which inserts a new line above the current line) and one on the line below (which inserts a new line
below the current line).
In either case a new text box will be created into which you can type the new rule. When you have
fi nished typing the rule press the
OK button to add it to the fi le or Cancel to abandon the changes.
The unit will validate the rule and if it is valid it will add it to the fi le. If errors are detected it will display
a warning message with an indication of the error and you may then choose to edit the line or delete
it.
To edit an existing rule click on the
Edit button to the right of the rule and then on OK or Cancel when
you have completed the changes.
To delete an existing line press the delete button to the right of it.
When you have completed your editing session, click on the
Save button at the bottom of the screen
to copy it back to the “FW.TXT” pseudo-fi le. If you do not save the fi le any changes you have made
will be lost when the power is removed or the unit is rebooted.
If you wish to cancel all changes you have made during an editing session and you have not yet
saved them, you may click on the
Restore button. This will copy the “FW.TXT” fi le to the screen.
The third button at the bottom of the screen labelled
Reset Hit Counters allows you to zero the rule
hit counters shown at the left of each rule.
Current Interface Firewall Status:
This section of the page provides a list of interfaces on which the fi rewall may be enabled and an
indication of whether the fi rewall is currently “On” or “Off” for each interface. By clicking on the name
of the interface you can jump to the appropriate confi guration page to change the setting if necessary.