config modifications and such
[CBFWR.git] / doco / configs.txt
1 there are 3 areas in shared memory reserved for configuration.
2
3 0 - fs configuration
4 1 - boot hardware config
5 2 - running config (deltas from 0)
6 3 - web config (contains only deltas from 0).
7
8 web config writes directly to 3 and messages cbrwrd about stuff.
9
10 config layout is like this:
11 [status] = conf|noconf|nodir|changelevel
12 [hostname] = hostname
13 [domainname] = domainname
14 [login][username] = sha1password
15 [zone][<zonename>][name]=1
16 [interface][<interfacename>][desciption] = desc
17                             [name] = name
18                             [address4] = address
19                             [address6] = address
20                             [zone] = zone
21                             [mtu] = mtu
22                             [speed] = speed
23                             [duplex] = duplex
24                             
25 [lag][<lagname>][<x>] = interface
26                 [description] = desc
27                 
28 [bridge][<bridgename>][<x>] = interface
29                       [description]
30                       
31 [route4][default|<network>][address] = gateway
32                            [device] = device
33                            [description]
34
35 [route6][default|<network>][address] = gateway
36                            [device] = device
37                            [description]
38                            
39 [dns][server][<x>][address] = address
40
41 [ntp][server][<x>][address] = adddress
42
43 [hardware][netdev][<itnerface>][name] = realname
44                                [driver] = driver
45                                [mtu] = mtu
46                                [hwaddress] = mac address