ZyXEL Communications ZyWALL 300 User Manual

Page of 778
ZyWALL USG 300 User’s Guide
615
C
H A P T E R
 
 4 5  
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 user-type admin
# 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 / to-ZyWALL firewall rules
# use the address group in case we want to open up remote management later
address-object TW_SUBNET 172.23.37.0/24
object-group address TW_TEAM
address-object TW_SUBNET
exit
# enable Telnet access (not enabled by default, unlike other services)
ip telnet server
# open WAN-to-ZyWALL firewall for TW_TEAM for remote management
firewall WAN ZyWALL insert 4
sourceip TW_TEAM
service TELNET
action allow
exit
write