1 Installation and Configuration of Netatalk 1.5
2 Lance Levsen, l.levsen@printwest.com
9 1. Libtool (only needed by developers)
10 Libtool encapsulates the platform specific dependencies for the
11 creation of libraries. It determines if the local platform can support
12 shared libraries or if it only supports static libraries.
14 Documentation: http://www.gnu.org/software/libtool/
15 Program: (see the GNU mirrors) /gnu/libtool/libtool-1.3.5.tar.gz
17 2. GNU m4 (only needed by developers)
18 GNU m4 is an implementation of the Unix macro processor. It reads
19 stdin and copies to stdout expanding defined macros as it processes
22 Documentation: http://www.gnu.org/software/m4/
23 Program: (see the GNU mirrors) /gnu/m4/m4-1.4.tar.gz
26 Autoconf is a package of m4 macros that produce shell scripts to
27 configure source code packages.
29 Documentation: http://www.gnu.org/software/autoconf/
30 Program: (see the GNU mirrors) /gnu/autoconf/autoconf-2.13.tar.gz
33 Automake is a tool that generates 'Makefile.in' files.
35 Documentation: http://www.gnu.org/software/automake/
36 Program: (see the GNU mirrors) /gnu/automake/automake-1.4.tar.gz
41 The OpenSSL Project is a collaborative effort to develop a robust,
42 commercial-grade, full-featured, and Open Source toolkit implementing
43 the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS
44 v1) protocols as well as a full-strength general purpose cryptography
46 This is required to enable DHX login support.
48 Get everything at http://www.openssl.org/
51 Wietse Venema's network logger, also known as TCPD or LOG_TCP. These
52 programs log the client host name of incoming telnet, ftp, rsh,
53 rlogin, finger etc. requests. Security options are: access control per
54 host, domain and/or service; detection of host name spoofing or host
55 address spoofing; booby traps to implement an early-warning system.
57 TCP Wrappers can be gotten at ftp://ftp.porcupine.org/pub/security/
59 7. PAM (Pluggable Authentication Modules for Linux)
60 Linux-PAM provides a flexible mechanism for authenticating
61 users. PAM was invented by SUN Microsystems.
63 Author: Andrew Morgan <morgan@linux.kernel.org>
65 Linux-PAM is a suite of shared libraries that enable the local system
66 administrator to choose how applications authenticate users.
68 You can get the Linux PAM documentation and sources from
69 http://www.kernel.org/pub/linux/libs/pam/
75 1. Read the configure options.
78 This prints a listing of the command line options for configure to
81 --disable-admin-group: disable admin group (default on),
83 --disable-ddp: disable DDP support,
85 --enable-dropkludge: enable the experimental dropbox fix (INSECURE!)
87 --with-pam: enable password authentication modules support,
89 --with-shadow: enable shadow password support,
91 --with-tcp-wrappers: enable TCP wrappers support
93 --with-ssl-dirs=[PATH]: specify path to OpenSSL installation.
94 NOTE: This is dependent on the same directory layout as the source
95 distribution of Openssl. That is: ./include/ and ./lib/ to be on the
96 same level. Many .rpm formats do not have their files laid out in this
99 --enable-lastdid: Recreate version 37b behaviour where directory id's
100 are incrementally calculated versus the new hash method. Unfortunately
101 for machines that have a lot of devices, and/or a lot of inodes the
102 hash can fail with multiple directories resolving to the same DID.
104 Enable/Disable the desired options like this:
105 $>./configure --option1 --option2 ....
107 2. Assuming ./configure worked well,
108 $> make (as root or sudo)
110 3. Assuming the program compiled without errors,
111 $> make install (as root or sudo)
113 Assuming you haven't changed the install directories, this will
114 install the configutation files in /etc/atalk. The uams in
115 /etc/atalk/uams. The binaries will be in /usr/sbin/.
117 4. Configure Netatalk (See below 'Configuring Netatalk')
118 The default location for the configuration files is /etc/atalk/.
120 5. Setup your rc script so that Netatalk is started on boot.
121 You can find sample initscripts in ./distrib/initscripts/ from the
124 6. If you enabled PAM, then copy the ./config/netatalk PAM file to
125 /etc/pam.d/ or where ever your system puts the PAM configuration
132 Netatalk supplies two different types of Appletalk servers and both
133 can run at the same time. Classic Appletalk requires afpd and
134 atalkd. Appletalk over IP only requires afpd. Classic Appletalk on
135 GNU/LInux requires that CONFIG_ATALK is compiled into the kernel or as
136 a kernel module. To check to see if the kernel has Appletalk
139 $> dmesg | grep Apple
140 This just parses the boot messages for any line containing
143 To see all the loaded modules (as root):
146 If you don't find it, you may have to compile a kernel and turn on
147 Appletalk in Networking options -> Appletalk DDP. You have an option
148 to install as a module or directly into the kernel.
150 Some default distribution kernels have already compiled Appletalk DDP
151 as a module, you may have to edit your /etc/modules.conf to include:
152 "alias net-pf-5 appletalk ".
154 Note: check your distribution documentation about editing
157 For more complete information about the Linux kernel see the
159 http://www.linuxdoc.org/HOWTO/Kernel-HOWTO.html
162 1. /etc/atalk/afpd.conf
163 Edit /etc/atalk/afpd.conf as required. Some options:
166 - [options] to specify options for the default server
168 "Server name" [options] to specify an additional server
170 The following options are available:
173 -[no]tcp Make AFP-over-TCP [not] available
174 -[no]ddp Make AFP over AppleTalk [not] available. if you have
175 -proxy specified, specify -uamlist "" to prevent ddp
176 connections from working.
177 -transall Make both available (default)
181 Specifies the IP address the server should
182 respond to (default is the first IP address of the system). This
183 option also allows one machine to advertise TCP/IP for another machine.
184 -server_quantum <number>
185 Specifies the DSI server quantum. The minimum
186 value is 1MB. The max value is 0xFFFFFFFF. If you specify a value that
187 is out of range, you'll get the default value (currently the
189 -admingroup <groupname>
190 Specifies the group of administrators who should all
191 be seen as the superuser when they log in. Default
193 -ddpaddr x.y Specifies the DDP address of the server. the default
194 is to auto-assign an address (0.0). this is only
195 useful if you're running on a multihomed host.
196 -port <number> Specifies the TCP port the server should
197 respond to (default is 548)
198 -fqdn <name:port> Specify a fully-qualified domain name
199 (+optional port). this gets discarded if the
200 server can't resolve it. this is not honored
201 by appleshare clients <= 3.8.3 (default: none)
202 -proxy Run an AppleTalk proxy server for specified AFP/TCP
203 server (if address/port aren't given, then first IP
204 address of the system/548 will be used). if you don't
205 want the proxy server to act as a ddp server as well,
206 set -uamlist to an empty string.
208 Authentication Methods:
209 -uampath <path> Use this path to look for User Authentication
210 Modules. (default: /etc/atalk/uams)
211 -uamlist <a,b,c> Comma-separated list of UAMs. (default:
212 uams_guest.so,uams_clrtxt.so,uams_dhx.so)
215 uams_guest.so: Allow guest logins
217 uams_clrtxt.so: (uams_pam.so or uams_passwd.so)
218 Allow logins with passwords transmitted in the clear.
220 uams_randnum.so: Allow Random Number and Two-Way Random Number
221 exchange for authentication.
223 uams_dhx.so: (uams_dhx_pam.so or uams_dhx_passwd.so)
224 Allow Diffie-Hellman eXchange (DHX) for authentication.
227 -[no]savepassword [Don't] Allow clients to save password locally
228 -passwdfile <path> Use this path to store Randnum
229 passwords. (default: ~/.passwd. the only other
230 useful value is /etc/atalk/afppasswd.)
231 -passwdminlen <#> Minimum password length. may be ignored.
232 -[no]setpassword [Don't] Allow clients to change their passwords.
233 -loginmaxfail <#> Maximum number of failed logins. this may be
234 ignored if the uam can't handle it.
237 -defaultvol <path> Specifies path to AppleVolumes.default file
238 (default /etc/atalk/AppleVolumes.default, same
239 as -f on command line)
240 -systemvol <path> Specifies path to AppleVolumes.system file
241 (default /etc/atalk/AppleVolumes.system, same
242 as -s on command line)
243 -[no]uservolfirst [Don't] read the user's ~/AppleVolumes or
244 ~/.AppleVolumes before reading
245 /etc/atalk/AppleVolumes.default (same as -u on
247 -[no]uservol [Don't] Read the user's volume file
249 -nlspath <path> Prepend this path to each code page filename in volume
250 options (default: /etc/atalk/nls).
253 -guestname "user" Specifies the user name for the guest login
254 (default "nobody", same as -g on command line)
255 -loginmesg "Message" Client will display "Message" upon logging in
256 (no default, same as -l "Message" on
258 -nodebug Switch off debugging
259 -tickleval <number> Specify the tickle timeout interval (in seconds)
260 -icon Use the platform-specific icon.
263 "Lance" -transall -uamlist uams_dhx.so -nosavepassword -setpassword
264 "Lance" is the server name, I enable both TCP and DDP,
265 all logins via DHX (requires AppleShare 3.8.6), the users cannot save
266 the password with keychains and it allows the users to set their
269 With no afpd.conf the default is:
271 - -transall -uamlist uams_guest.so,uams_clrtxt.so,uams_dhx.so
274 No server name, allow afp over tcp and afp over AppleTalk , allow
275 guest access, logins in clear text and DHX, don't allow the user to
278 2. /etc/atalk/atalkd.conf
280 Classic Appletalk is configured in atalkd.conf. For detailed
281 information please reference
283 http://www.neon.com/atalk_routing.html and
284 http://www-commeng.cso.uiuc.edu/docs/appletalk/
286 The whole point of seting up atalkd is to allow appletalk routing to
287 the localhost as a file and print server. The atalkd.conf file sets up
288 the appletalk routing by assigning Appletalk zone (or zones)
289 information to the networks it is attached to.
291 Within appletalk there are three different types of routers: seed,
292 nonseed and soft seed.
294 Seed publishes the network and zone information to the network. In the
295 case of a conflict, this router takes precedence. Nonseed acts as a
296 forwarder in that all network and zone information for it's network
297 segment is pulled from an upstream router. A soft seed router is
298 configured like a seed router, but will defer and use upstream seeded
299 zone information if there is a conflict.
301 Netatalk has the option to behave like a nonseed router or a soft seed
302 router. Netatalk will defer to an upstream seed if there is a
303 conflict. Any missing configurations will be filled from the network.
305 Appletalk phases are of two types. The unused, unsupported, obsolete
306 phase 1, or the new useful phase 2.
308 Phase 1 was Apples original protocol for Appletalk over Ethernet. It
309 treated an entire network segment as one appletalk network capable of
310 holding 254 nodes. Don't use this.
312 Phase 2 is the new version. It allows a configurable network range
313 between the numbers 1 and 65279, each network capable of hosting 253
314 nodes for a total of 16,515,587 Appletalk interfaces. That's a lot
317 Within an Appletalk network addressing is a Network:Node:Socket
318 triplet. The socket number is general dropped because nothing uses the
321 Using ethernet and phase 2 the network number can be singular, '1' or
322 a range, '1-20'. Node assignment is the responsibility of the clients so
323 you don't have to worry about it. The range of 65280-65534 is called
324 the startup range and is used by the Mac when it is on a network
325 without any routers, you probably shouldn't publish a network withing
326 this range. If you're publishing to a LocalTalk network segment
327 (Hello? Welcome to Y2K. :) your maximum network range is _one_
330 Zone's must be less then 32 characters long.
332 Format of lines in this file:
333 interface [ -seed ] [ -router | -dontroute ]
334 [ -phase { 1 | 2 } ] [ -addr net.node ]
335 [ -net first[-last] ] [ -zone ZoneName ] ...
337 interface: the interface that is publishing the appletalk server. eth0
339 -seed - requires two interfaces. The router is acting as a
340 bridge between the two networks. A soft seed router.
342 -router - only requires one interface.
344 -dontroute - don't publish routing information
346 -addr this machines network.node address.
351 - Appletalk network is off eth0, no routing information
352 published, get it all off the network.
354 eth0 -router -phase 2 -addr 100.10 -net 100-110 -zone "Upstairs"
355 - Appletalk network is off eth0, this server is not a bridge, it
356 publishes zone information for Networks 100-110. The servers appletalk
357 node address is node 10 of network 100. This zone is called Upstairs.
360 eth1 -seed -phase 2 -addr 100.10 -net 100-110 -zone "Upstairs"
361 - This allows routing between the appletalk networks on eth0 and eth1,
362 for eth1 this server acts as a soft seed router of a phase 2 network
363 segment of 100-110 where this machine is 100.10
365 3. /etc/atalk/papd.conf
367 To be written by someone who actully uses the print server. :)
369 4. /etc/atalk/netatalk.conf