11: Using the Command Line Interface
_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW7304 Series User Manual
Issue: 1.9
Page 81 of 336
va_eventd.@forwarding[2].target=MonitorSyslog
va_eventd.@forwarding[3]=forwarding
va_eventd.@forwarding[3].enabled=yes
va_eventd.@forwarding[3].className=ppp
va_eventd.@forwarding[3].target=MonitorSyslog
11.3
Configuration files
The table below lists common package configuration files that can be edited using uci
commands. Other configuration files may also be present depending on the specific
options available on the Virtual Access router.
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
11.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.