25.06.2013 Views

CLI Guide - WatchGuard Technologies

CLI Guide - WatchGuard Technologies

CLI Guide - WatchGuard Technologies

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 1: Using the Command Line Interface<br />

Deleting text in the Command Line Interface<br />

To delete characters to the left of the cursor, press the Backspace<br />

key, or press ^h.<br />

To delete all characters from the current position of the cursor<br />

back to the beginning of the command line, press ^u.<br />

Using the <strong>CLI</strong> to add to or replace existing<br />

settings and policies<br />

Existing settings can be modified using the <strong>WatchGuard</strong><br />

<strong>CLI</strong> in two ways:<br />

1 An existing item can be overwritten/replaced with an<br />

entirely new item<br />

2 Additional entries or qualifications can be appended to<br />

an existing item<br />

Adding entries to an existing item requires use of the<br />

“plus” character (+).<br />

If a setting or entry already exists in this <strong>WatchGuard</strong><br />

appliance, add a “plus” character (+) before additional elements<br />

to edit that setting. In the following example, an<br />

additional host with an IP address of 199.86.77.100 is added<br />

to the address group “VPNnet”<br />

WG(config)#address VPNnet + -host<br />

199.86.77.100<br />

WG(config)#exit<br />

Commit before exit? (Y/N):y<br />

WG#_<br />

The named address group object VPNnet now has an additional<br />

(host) member with an IP address of 199.86.77.100.<br />

Grouping parameters in a command<br />

Groups of parameters may be repeated in a command line<br />

by surrounding the groups with “curly” brackets ({group1<br />

param1 param2} {group2 param1 param2} etc.). In the fol-<br />

10 <strong>WatchGuard</strong> Vclass 5.1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!