User manual

8: Command Line Interface
_______________________________________________________________________________________________________
8.3 Configuration files
File Description
Management
/etc/config/autoload Boot up Activation behaviour (typically used in factconf)
/etc/config/httpclient Activator addresses and urls
/etc/config/monitor Monitor details
Basic
/etc/config/dropbear SSH server options
/etc/config/dhcp Dnsmasq configuration and DHCP settings
/etc/config/firewall NAT, packet filter, port forwarding, etc.
/etc/config/network Switch, interface, L2TP and route configuration
/etc/config/system
Misc. system settings including syslog
Other
/etc/config/snmpd SNMPd settings
/etc/config/uhttpd Web server options (uHTTPd)
/etc/config/strongswan IPSec settings
8.4 Configuration file syntax
The configuration files usually consist of one or more config statements, so
called sections with one or more option statements defining the actual values.
Below is an example of a simple configuration file:
package 'example'
config 'example' 'test'
option 'string' 'some value'
option 'boolean' '1'
list 'collection' 'first item'
list 'collection' 'second item'
The config 'example' 'test' statement defines the start of a section with the
type example and the name test. There can also be so called anonymous
sections with only a type, but no name identifier. The type is important for the
processing programs to decide how to treat the enclosed options.
The option 'string' 'some value' and option 'boolean' '1' lines define simple
values within the section. Note that there are no syntactical differences between
text- and boolean options. Per convention, boolean options may have one of the
values '0', 'no', 'off' or 'false' to specify a false value or '1' , 'yes', 'on' or 'true' to
specify a true value.
In the lines starting with a list keyword, an option with multiple values is
defined. All list statements that share the same name, collection in our example,
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 37 of 255