Hello,

17.10.2007 19:47,, Mateus Interciso wrote::
> Hello, I have this set up(simplified)
> [External server]---->Firewall/Nat----->Internet-->Firewall/NAT-->Bacula
> Let's say the external server I want to back up has a public ip of 
> 222.222.222.222, and the Firewall/NAT that lies on the internal network 
> of Bacula has the ip 200.200.200.200, and bacula has the internal ip 
> 10.100.0.4, by bacula I mean the director, storage daemon, and a file 
> daemon as well.

The problem is clear already :-)

The DIR tells the FD which SD to contact, so the SD must be reachable 
by the clients.

With an SD addressed by an RFC1918 address, and outbound connections 
firewalled, that can't work.

There are several possible solutions:
- Wait for client-initiated backups in Bacula. This will take quite a 
while :-)
- place an SD with a valid IP address outside your firewall.
- Use an address for the SD that is reachable from the internet.

The latter is the most reasonable thing IMO.

You can do this even if the SD is inside your firewall, you'll need 
port forwarding or a proxy on the firewall then. With separate DNS 
zones inside and outside, resolving the SD hostname either as the 
internal or the external IP, this can be seamlessly integrated with 
your internal Bacula setup.

Arno



> Now, I've configured this storage on the bacula-dir.conf of the Bacula 
> server:
> Storage {
>   Name = PublicTest
>   Address = 200.200.200.200
>   SDPort = 9103
>   Password = "rHdomafNas1GeiHAYqsHAr1axgMthcKtTh3elwpDEBRw"
>   Device = Weekly
>   Media Type = File
> }
> 
> As well as this one:
> 
> Storage {
>   Name = FileWeekly
>   Address = 10.100.0.4                
>   SDPort = 9103
>   Password = "rHdomafNas1GeiHAYqsHAr1axgMthcKtTh3elwpDEBRw"
>   Device = Weekly
>   Media Type = File
> }
> 
> Now, since I can go into the bacula console, and connect to the client, 
> show it's status, and make an estimate of the backup I'll make normally, 
> I think that the job and pool are configured correctly, as well as (at 
> least part of) the firewall.
> If I run, the backup job, with the PublicTest, or FileWeekly storage, I 
> allways get this connection timeout error:
> 
> 17-Oct 15:53 behemot-dir JobId 153: Warning: bsock.c:123 Could not 
> connect to Storage daemon on 200.200.200.200:9103. ERR=Connection timed 
> out
> 
> Since other jobs do run normally(when they are in the internal network) 
> I'm getting a little confused here. Tcpdump shows this, when I try to use 
> the PublicTest storage:
> 
> [External Server]
> 14:56:35.956696 IP 10.0.10.4.9102 > 200.200.200.200.45190: . ack 677 win 
> 1984 <nop,nop,timestamp 1116655584 107627403>
> 
> [Firewall]
> 15:27:24.892811 IP 10.100.0.4.60741 > 222.222.222.222.9103: S 
> 3206713682:3206713682(0) win 5840 <mss 1460,sackOK,timestamp 107913615 
> 0,nop,wscale 7>
> (keeps repeating the same request, there's no ack returning)
> 
> 10.0.10.4 is the internal IP of the External Server.
> The strange thing, is that it shows just this, for all the connections 
> using PublicTest storage, but if I use the FileWeekly, it shows all the 
> connections, sending requests, connecting, getting the answers back, etc, 
> but when it tryes to connect to the storage...
> 
> [External Server]
> 14:54:11.742070 IP 10.0.10.4.45228 > 10.100.0.4.9103: S 
> 1535168577:1535168577(0) win 5840 <mss 1460,sackOK,timestamp 1116511348 
> 0,nop,wscale 2>
> 
> Which of course would never work, since it's trying to connect to an 
> internal ip that does not exist...
> I'm getting crazy over this, can someone please help me?
> 
> Thanks a lot
> 
> Mateus
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to