D-Link DFL-860E [36/552] Note rule names are recommended

D-Link DFL-860E [36/552] Note rule names are recommended
been entered.
For example, when creating an IP rule for a particular IP rule set, the command line might begin:
add IPRule
If the tab key is now pressed, the mandatory parameters are displayed by NetDefendOS:
A value is required for the following properties:
Action DestinationNetwork SourceInterface
DestinationInterface Service SourceNetwork
The Name parameter is not in this list since it is not mandatory because rules can be referenced with
their index number. Similarly, the following might be entered:
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.
Note: Rule names are recommended
Even though it is optional, it is still recommended that a Name value is entered for
rules in order to make examining the configuration easier.
Tab Completion of Parameter Values
Another useful feature with tab completion is the ability to automatically fill in the current values of
data parameters in a command line. This is done by typing a period "." character followed by the tab
key after the "=" character. For example, we may have typed the unfinished command:
set Address IP4Address lan_ip Address=
If we now type "." followed by a tab, NetDefendOS will display the current value for the Address
parameter. If that value is, for example, 10.6.58.10 then the unfinished command line will
automatically become:
set Address IP4Address lan_ip Address=10.6.58.10
NetDefendOS automatically inserts the current value of 10.6.58.10 and this can then be easily
changed with the backspace or back arrow keys before completing the command.
In a similar way, the "<" character before a tab can be used to automatically fill in the default value
for a parameter if no value has yet been set. For example:
add LogReceiverSyslog example Address=example_ip LogSeverity=< (tab)
Will fill in the default value for LogSeverity:
2.1.4. The CLI Chapter 2. Management and Maintenance
36

Содержание

Скачать
Случайные обсуждения