-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
201 lines (147 loc) · 5.95 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
Sauron v.0.7.4 - DNS/DHCP Management System
==============
This is a development branch release (current stable branch is v0.6.x).
However, based on reports from users current development branch releases
should be more stable than the current "stable" branch :)
DBI (DBD::Pg) is now the default database access method, but Pg can still
be used by specifying --with-Pg option to configure script.
UPGRADE
See README.upgrade if upgradig from a previous version.
REQUIREMENTS
- BIND v8 or later [9.2.x or newer recommended]
- ISC dhcpd v2 or later [3.x or newer recommended] (optional)
- Perl 5 or better [at least 5.6 recommended]
- CGI module
- DBD::Pg (and DBI) module (or Pg module)
- Net::DNS module
- Net::IP module
- Net::Netmask module
- Digest::MD5 module
- Digest::HMAC module
- Digest::SHA1 module
- MIME::Base64
- Crypt::RC5
- PostgresSQL [7.4 or newer (may work fine with earlier 7.x versions)]
(or add support to your favorite db yourself :)
- www-server (Apache or any other www-server with CGI support)
SOURCE
http://sourceforge.net/p/sauron-dns/code/
DOWNLOAD
Sauron and related files are available from:
WWW: http://sauron.jyu.fi/
or
http://sourceforge.net/projects/sauron-dns/files/
FTP: ftp://ftp.jyu.fi/pub/sauron/
TESTED PLATFORMS
Sauron is currently developed using Red Hat Linux,GNU/Debian Linux,
and Solaris but it should work pretty much on any Unix variant
(if required programs are available).
INSTALLATION
See User Guide for complete installation instruction. This section
is only a quick overview of the installation process:
1) Build and install the program (SKIP this if you're installing the RPM):
./configure
make
make docs (optional)
make install
2) Create database for Sauron to use in PostgreSQL
(use createdb command to create the database, see PostgreSQL
documentation for more help)
3) Edit configuration files: config and config-browser
(these are usually in /usr/local/etc/sauron or /etc/sauron)
at minimum you need to check paths and setup database
connection string (DB_CONNECT)
4) Create tables in the newly created database:
<change to installation directory (/usr/local/sauron)>
./createtables
./status (check that everything worked)
5) Populate OUI (Ethernet card manufacturer) table (optional):
./import-ethers contrib/Ethernet.txt
./import-ethers --force contrib/additional-ether-codes.txt
(NOTE! you may want to download IEEE's public list
of OUIs from: http://standards.ieee.org/regauth/oui/index.shtml
and import it as well)
6) Populate global root servers table:
./import-roots default contrib/named.root
(NOTE! you should download latest version of this file
from: ftp://ftp.rs.internic.net/domain/ and use it)
7) Create administrator account:
./adduser (remember to set superuser flag)
8) Setup www interface
You need to make sauron.cgi and browser.cgi available through
your www server. One way to do this is to make symbolic links
for sauron.cgi and browser.cgi in your cgi-bin directory.
Copy images under icons/ directory to sauron/icons/ directory
under your web server root directory (or just make a symbolic link)
9) now you can use the web interface to create a server and zones, or
you can import existing named/dhcpd configurations using
import/iport-dhcp utilities. Or you can try out the demo database
that can be found under test/ directory in source tree.
COMMANDS
addgroup
Creates user groups. It's recommended to assign
users to groups and assign privileges to groups and not
directly to users.
addhosts
Utility for adding hosts to a existing zone from given
file. Input file format is same as in normal zone files.
adduser
Creates new user accounts. Use --help option for more help.
check-pending
Program to be run from crontab that check for pending
changes in database and sends notification of pending changes
to address defined in configuration.
delgroup
Removes user group from the system.
deluser
Removes users accounts from the system. (accounts can also be locked
with moduser command).
expire-hosts
Utility for expiring unused (no DHCP activity within given time-frame)
host entries.
export-networks
Generates Unix /etc/networks format file of networks defined for
given server.
generatehosts
Utility for generating number of host entries into database.
import
Reads complete named (BIND) configuration file set and generates
new server and related zones into Sauron.
import-dhcp
Utility for updating existing server using dhcpd configuration;
adds Ethernet addressess for hosts and to builds network map for
the server.
import-ethers
Utility for adding OUI (Ethernet card manufacturer) information
into global table. This table enable Sauron to recognize and display
NIC manufacturer information for hosts.
import-roots
Utility for importing root server hints into Sauron. Sauron has
global table and option for server specific root server lists.
keygen
Utility for generating TSIG keys and master key for protecting key for
Sauron database.
last
Unix 'last' command style utility for listing lastlog information
about Sauron www-interface users.
modgroup
Modifies privileges associated with groups.
modhosts
Simple utility for modifying several hosts at a time in the database.
moduser
Modifies user account privileges and attributes.
runsql
Utility for running SQL code from file into Sauron database.
sauron
Program to for generating named/dhcpd configuration files from Sauron
database for given server.
status
Utility for listing database connection and www-interface status.
Also displays currently logged in users.
update-dhcp-info
Program to be run from crontab that parses dhcpd logs and updates
'last seen by dhcp server' fields for hosts.
SUGGESTED READING
RFC: 952,953,974,1032,1034,1035,1123,1912
--
Timo <[email protected]>