D-Link DFL-1660 User Manual page 38

Network security firewall
Hide thumbs Also See for DFL-1660:
Table of Contents

Advertisement

2.1.4. The CLI
add IPRule Na
If the tab key is now pressed, the letters Na will not be completed to be Name= because Name is
optional and all the mandatory parameters must be entered before tab completion works for optional
parameters.
For example, if the following command is typed:
add IPRule SourceInterface=if12 SourceNetwork=all-nets
DestinationInterface=if2 DestinationNetwork=all-nets
Action=Allow Service=all_services Na
If the tab key is now pressed, the letters Na will now be completed to be Name= because all the
mandatory parameters have already been entered.
Specifying the Default Value
The period "." character before a tab can be used to automatically fill in the default value for an
object property. For example:
add LogReceiver LogReceiverSyslog log_example
Will fill in the default value for LogSeverity:
add LogReceiverSyslog example Address=example_ip
LogSeverity=Emergency,Alert,Critical,Error,Warning,Notice,Info
This severity list can then be edited with the back arrow and backspace keys. A default value is not
always available. For example, the Action of an IP rule has no default.
Appending Property Values
Another usage of the period character before a tab is to automatically fill in the current value of an
object property in a command line. This is very useful when there is a need to append a new value to
a list of pre-existing values.
For example, the following unfinished command may have been typed:
set Address IPAddress If1_ip Address=
If a period "." followed by a tab is now entered, NetDefendOS displays the current value for
Address. If that value were the IPv4 list 10.6.58.10,192.168.2.1 then the unfinished command line
will automatically become:
set Address IPAddress If1_ip Address=10.6.58.10,192.168.2.1
The displayed values can then be added to or changed with the backspace and back arrow keys
before completing the command.
Object Categories
Note: Rule names are recommended
Even when it is optional, it is recommended that a Name value is assigned to a rule.
This makes examining and understanding the configuration easier.
Address=example_ip LogSeverity=. (tab)
Chapter 2. Management and Maintenance
38

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dfl-2560Dfl-2560gDfl-260eDfl-860e

Table of Contents