The Myra Canyon configuration file is named /etc/myra-canyon.conf
. If this file doesn't exist, then a default file is automatically created on startup from the template /usr/share/myra/myra-canyon.conf-template
.
The configuration file /etc/myra-canyon.conf
is a plain text JSON
file, and can be easily edited with any normal text editor.
The device
section of configuration describes the networking device to be used by Myra Canyon. An alias will be created on this device, and networking will be setup as described. For example:
This tells Myra Canyon to create the alias eth0:myra0
. The alias will use the address 10.0.1.1/255
.255.255.0.
The dhcpd
section of configuration contains information needed to configure the ISC Consortium DHCP Server.
For example, if your LAN is using 192.168.1.0/24
, then you must include an entry in the ignore
section to tell dhcpd to ignore that network. Otherwise, dhcpd will refuse to run.
The dns
section of configuration contains information needed to configure Bind9, the name server.
For example, if Myra Canyon is setup to create a 10.0.1.0/255
.255.255.0 network, then acl_cidr
must include the same network in CIDR format. This ensures that clients on the 10.0.1.0/24
network can make name server requests to the Myra Canyon router.