[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: amanda backup

Hash: SHA1

On Tuesday 17 December 2002 10:49, Torbjorn Pettersson wrote:

>  I haven't looked into how well it is implemented, so I can't
> really say anything about it, but it is possible to compile it
> to use kerberos authentication.

I don't think authentication is THE problem. 

Here is a quote:
Running an Amanda server from behind a firewall, to clients outside it, can 
be a bit tricky.

Amanda uses quite a few ports for communications. The general sequence is:

1) The server makes a start backup request on port 10080 to the client.
2) The client forks an amandad process, which then attempts to contact the 
server on a random udp port.
3) The server opens 2 or 3 random TCP sockets back to the client per dumper 
process. (one for data, one for messages and one for index, if indexing is 
4) data starts shuffling.

The problem with a firewall is step 2. Since most firewalls are set up to 
allow any outgoing traffic, the others steps usually have no problems. But 
that random UDP port back in to the server is usually blocked. This causes a 
symptom of "timeout waiting ack" in /tmp/amanda/amandad.debug on the client.

The solution is to use two of the configure directives. configure 
- --with-portrange=xxx,yyy will restrict your tcp ports to the given range. 
This is standard functionality as of 2.4.1.

However this will NOT restrict that UDP port at all. you need to d/l the 
2.4.2beta from the snapshots site (as of this writing 2.4.2 is still beta 
test) configure 2.4.2 with the new --with-udpportrange=xxx,yyy directive.

You must pick ports under 1024 or amanda will complain of "insecure ports 
used" those ports should of course not conflict with other services listed in 
/etc/services. ( I suggest 850-854 or 859)

Ypu must also open your firewall up to both UDP and TCP ports, in the range 
you specified, from your clients to your server.

Hope this helps!

- -- 
"We should not be trying to use technical solutions
to solve a social problem."  
[Thomas R. Stephenson ("about SPAM" - Pegasus list 16.12.1999)]
Version: GnuPG v1.0.7 (GNU/Linux)


Reply to: