45
File Manager
This chapter covers how to use the ZyWALL’s File Manager screens to handle the ZyWALL’s configuration, firmware and shell script files.
45.1 Configuration Files and Shell Scripts Overview
The File Manager screens allow you to store multiple configuration files and shell script files.
When you apply a configuration file, the ZyWALL uses the factory default settings for any features that the configuration file does not include. Shell scripts are files of commands that you can store on the ZyWALL and run when you need them. When you run a shell script, the ZyWALL only applies the commands that it contains. Other settings do not change.
You can edit configuration files or shell scripts in a text editor and upload them to the ZyWALL. Configuration files use a .conf extension and shell scripts use a .zysh extension.
These files have the same syntax, which is also identical to the way you run CLI commands manually. An example is shown below.
Figure 457 Configuration File / Shell Script: Example
#enter configuration mode configure terminal
#change administrator password
username admin password 4321
#configure ge3 interface ge3
ip address 172.23.37.240 255.255.255.0 ip gateway 172.23.37.254 metric 1 exit
#create address objects for remote management /
#use the address group in case we want to open up remote management later
#enable Telnet access (not enabled by default, unlike other services)
ip telnet server
#open
sourceip TW_TEAM service TELNET action allow exit
write
| 615 |
ZyWALL USG 1000 User’s Guide | |
|
|