Chapter 5. Web Interface

Table of Contents
Servers Menu
Zones Menu
Hosts Menu
Templates Menu
Groups Menu
Nets Menu
Login Menu

Web based user interface for Sauron is implemented as a single CGI script (sauron.cgi). To use this script WWW server software that supports CGI programs is needed. Currently this interface is developed and tested using Apache, but it should work with any WWW server software, as long as it has support for CGIs.

It is recommended to setup your WWW server to use HTTPS and only allow access to the sauron.cgi CGI script using encrypted HTTPS connection. If your WWW server supports both unencrypted (HTTP) and encrypted (HTTPS) connections, it is recommended to setup a separate "cgi-bin" directory for HTTPS connections and place sauron.cgi (or symbolic link to it) only in that directory.

Although sauron.cgi has it's own access control mechanism, it is recommended to further improve security by restricting access to the web interface for only the hosts that need access to the Sauron using the WWW server configuration and/or a firewall.

Sauron's web interface doesn't use JavaScript, only standard HTML is used. Goal is to keep the web interface lightweight and usable by all browsers (graphical as well as text-based).

For session tracking sauron.cgi uses cookies. Each generated cookie contains only a MD5 hash of user's session identifier and has maximum life of a week. Normally the cookie is deleted when user logs out. Cookies are only sent back to the issuing server. Sauron supports the use of "secure cookies" via configuration file setting SAURON_SECURE_COOKIES (this is not enabled by default since some buggy browsers don't handle secure cookies correctly).

Servers Menu

Servers menu provides commands for creating and modifying servers for administrator. For normal user it only provides server selection command for selecting the active server.

Edit

Edit command is used to edit existing server. This option is available only for administrator. See Table 5-2 for descriptions of the fields used in the command dialog.

Table 5-2. Edit Server Dialog

FieldDescriptionExample
Server NameShort name of the server (this handle can contain only letters, numbers, and hyphens)ns1
HostnameDomainname of the server (FQDN)ns1.middle.earth.
IP addressIP address of the server192.168.1.1
Output modeOption for selecting wheter to generate full named.conf or named.zones file that contains only zones (to be included in your static named.conf)."Generate full named.conf"
CommentsOptional field reserved for comments 
HostmasterDefault hostmaster email address for all zones in the server (replace "@" in the email address with ".")hostmaster.middle.earth.
RefreshZone SOA record default "refresh" value43200
RetryZone SOA record default "retry" value3600
ExpireZone SOA record default "expire" value2419200
Minimum (negative caching TTL)Zone SOA record default "minimum" value86400
Default TTLDefault TTL for records in zones for this server86400
Default zone TXTTXT records that get automatically included for each zone in this server 
Configuration directoryBase directory for BIND configuration files/var/named
Primary zone-file pathPathname relative to configuration directory for storing master zone files 
Slave zone-file pathPathname relative to configuration directory for storing slave zone filesNS2/
Root-server filefilename for root server (zone) file.named.ca
pid-file pathpathname for pid-file (BIND option) 
dump-file pathpathname for dump-file (BIND option) 
statistics-file pathpathname for statistics-file (BIND option) 
memstatistics-file pathpathname for memstatistics-file (BIND option) 
named-xfer pathpathname for named-xfer (BIND option) 
Forward (mode)BIND forward setting; default, only, firstdefault
ForwardersBIND forwarders setting (list of server IPs to forward queries to) 
Transfer source IPSource IP address for zone transfers (for multi-homed hosts) 
Query source IPSource IP address for DNS queries sent by server (for multi-homed hosts) 
Query source portSource port for DNS queries sent by server 
Listen on portPort that the server listens for DNS queries (allows setting non-standard port) 
Listen-onBIND listen-on setting; list of IPs (interfaces) server should listen for queries 
Allow-transferBIND allow-transfer setting; list of CIDRs from where to allow zone transfers. 
Allow-queryBIND allow-query setting; list of CIDRs from where to allow DNS queries. 
Allow-recursionBIND allow-recursion setting; list of CIDRs from where to allow recusive DNS queries (causes recursion to be disabled from anywhere else). 
BlackholeBIND blackhole setting; list of CIDRs from where any requests are to be ignored by the server. 
Do not generate HINFO recordsControls whether to omit HINFO records from the generated zone files or not.No
Do not generate WKS recordsControls whether to omit WKS records from the generated zone files or not.No
NotifyBIND notify setting; default, yes, noDefault
Auth-nxdomainBIND auth-nxdomain setting; default, yes, noDefault
RecursionBIND recursion setting; default, yes, noDefault
Dialup modeBIND dialup setting; default, yes, noDefault
Allow multiple CNAMEsBIND multiple_cnames setting; default, yes, noDefault
RFC2308 Type 1 modeBIND rfc2308_type1 setting; default, yes, noDefault
Check-names (Masters)BIND check-names master setting; default, fail, ignore, failDefault
Check-names (Slaves)BIND check-names slave setting; default, fail, ignore, failDefault
Check-names (Responses)BIND check-names response setting; default, fail, ignore, failDefault
Version stringIf this is set then this string is that BIND will report as it's version (instead of the real version) 
Logging optionsList of BIND logging options (these are placed inside "logging" section in named.conf) 
auto-domainnamesControls wheter to automatically generate correct "domain-name" option for each host in dhcpd.conf.No
Global DHCP SettingsList of global DHCP settings. These lines are include in the global scope of dhcpd.conf. Any valid global DHCP option can be used here (lines should not end with ";"). 
Enable failover protocolControls wheter DHCP failover protocol is enabled.No
Port numberPort to be used by DHCP failover protocol519
Max Response DelayMax Response Delay for DHCP failover protocol60
Max Unacked UpdatesMax Unacked Updates for DHCP failover protocol10
MCLTMaximum Client Lead Time (MCLT) for DHCP failover protocol3600
SplitSplit for DHCP failover protocol128
Load balance maxLoad balance max (seconds) for DHCP failover protocol3