Bacula-users

Re: [Bacula-users] Internet Tolerant

2014-02-28 09:27:30
Subject: Re: [Bacula-users] Internet Tolerant
From: Josh Fisher <jfisher AT pvct DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 28 Feb 2014 09:22:28 -0500
On 2/26/2014 10:53 AM, Dimitri Maziuk wrote:
> On 2/26/2014 8:59 AM, Dan Langille wrote:
>
>> There are options for retrying the job. Look for 'Reschedule On
>> Error'.
> That might be useful for very small jobs and transient errors, but in
> general automatically retrying something that doesn't work is not a very
> smart idea.

Yes. Using OpenVPN is probably the best solution. OpenVPN basically 
tunnels virtual interfaces (TUN or TAP) over a UDP connection and 
encrypting the encapsulated packets. The advantage is that Bacula, on 
both ends of the tunnel, is opening sockets on the virtual interface, 
not the physical interface. OpenVPN leaves the virtual interface up all 
of the time. The UDP connection over the physical interface can go up 
and down independently of the virtual interface. This is even done on 
purpose for idle connections. If the UDP tunnel connection is down when 
a packet comes into the virtual interface (on either end of the tunnel) 
the UDP tunnel connection over the physical interface is automatically 
re-established.

By default, OpenVPN restarts the virtual interface whenever the UDP 
tunnel connection is re-established by closing it  and immediately 
re-opening it. This will not work with Bacula, as it will kill the 
socket it has open on the virtual interface. To make OpenVPN work with 
Bacula it is necessary to specify the 'persist-tun' flag in the OpenVPN 
config. This flag prevents the virtual interface from restarting every 
time the UDP tunnel comes back up. Since the virtual interface stays up, 
Bacula never knows the physical Internet connection ever went down. Of 
course if the Internet connection itself is down long enough, the job 
will still fail. But this prevents the failed jobs due to intermittent 
issues, like power management powering down the physical interface 
because it is "inactive".


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>