Standalone backup agents for Linux, Mac, AIX & Solaris workloads on-premises or in the public cloud
Post Reply
emilec
Service Provider
Posts: 37
Liked: 21 times
Joined: May 11, 2014 5:03 pm
Contact:

Request: Linux Agent backup to remote B&R behind NAT FW

Post by emilec » 1 person likes this post

I have an open case with support: #02079118. They have suggested I post here as a feature request

Essentially what I'd like to do is use the Agent for Linux to backup to a remote B&R server that sits behind a firewall. I have setup all the correct port forwarding but for some reason after the initial setup of the job the actual backup attempts to talk to the internal IP of the B&R server. This can be seen in the logs as follows:

Code: Select all

[23.02.2017 08:12:15] <140268905989888> lpbcore|   Starting backup client for agent with UID [{0ac9a604-240f-4a31-901a-526c86796e24}]. Client id: [1ee5]
[23.02.2017 08:12:15] <140268905989888> lpbcore|     IP endpoints: [10.2.1.11:2502].
[23.02.2017 08:12:15] <140268905989888>        |     Trying to connect to the endpoint [10.2.1.11:2502]
[23.02.2017 08:13:18] <140268905989888>        |   Connection status: system:110 ( Connection timed out ).
[23.02.2017 08:13:18] <140268905989888> lpbcore|   Starting backup client for agent with UID [{0ac9a604-240f-4a31-901a-526c86796e24}]. Client id: [1ee5] Failed.
[23.02.2017 08:13:20] <140268905989888> lpbcore| BackupJobPerformer: Creating backup. Failed.
[23.02.2017 08:13:21] <140268905994080> lpbcore| LpbManSession: Processing commands. ok.
[23.02.2017 08:13:21] <140268905989888> lpbcore| ERR |Job has failed.
[23.02.2017 08:13:21] <140268905989888> lpbcore| >>  |Failed to connect to the port [10.2.1.11:2502].
[23.02.2017 08:13:21] <140268905989888> lpbcore| >>  |--tr:Failed to connect to target endpoint.
[23.02.2017 08:13:21] <140268905989888> lpbcore| >>  |--tr:Unable to connect to agent endpoint.
[23.02.2017 08:13:21] <140268905989888> lpbcore| >>  |Backup job has failed.
[23.02.2017 08:13:21] <140268905989888> lpbcore| >>  |An exception was thrown from thread [140268905989888].
 
In simplistic terms the infrastructure is as follows:
CentOS Server with Agent -> FW (NAT) -> internet -> FW (NAT) -> B&R 9.5U1 (Server and Repo on one box)

This setup works for B&R to remote B&R, so would be nice to be able to do the same with the Agent.
emilec
Service Provider
Posts: 37
Liked: 21 times
Joined: May 11, 2014 5:03 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behing NAT FW

Post by emilec »

Would a mod please fix my typo. I don't appear to have rights to edit my post.

Edit: I now suddenly have edit rights :D
Mike Resseler
Product Manager
Posts: 8191
Liked: 1322 times
Joined: Feb 08, 2013 3:08 pm
Full Name: Mike Resseler
Location: Belgium
Contact:

Re: Request: Linux Agent backup to remote B&R behing NAT FW

Post by Mike Resseler »

Hi,

What do you want to change? I am overlooking it (I need more coffee :-)). Don't worry too much about a typo by the way :-D

For your feature request. I will leave this to Pavel who can look into it
emilec
Service Provider
Posts: 37
Liked: 21 times
Joined: May 11, 2014 5:03 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behing NAT FW

Post by emilec »

For some reason the agent ignores the external IP (in this case a hostname) used in the backup job creation, during the backup process. Instead when the job starts it wants to connect to the internal IP of the B&R server. This indicates there must be some sort of communication taking place because how else would it know what the internal IP is?

Edit: Maybe I need more coffee? Are you commenting on the feature I want to change or the typo?
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by PTide »

Hi,

Just one question - do you have your repo on the same server where VBR resides at? Also did you specify an IP, or hostname on the VBR configuration step in VAL?

Please also check this post for a workaround.

Thanks
SFalk
Novice
Posts: 3
Liked: never
Joined: Oct 21, 2013 12:32 pm

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by SFalk »

Hi there,

the missing NAT-support is the last showstopper for us to use the agent on our remote hosts (and finally remove the other crappy backup-products).
Would it be possible to add it as feature-request?

Thanks
emilec
Service Provider
Posts: 37
Liked: 21 times
Joined: May 11, 2014 5:03 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by emilec »

PTide wrote:Hi,

Just one question - do you have your repo on the same server where VBR resides at? Also did you specify an IP, or hostname on the VBR configuration step in VAL?
Repo and VBR are on the same box. I used a hostname. The hostname resolves correctly to the external IP. You suggesting I rather just try the external IP? I didn't try that actually.
PTide wrote: Please also check this post for a workaround.
Nice hack, but not for me thanks.
emilec
Service Provider
Posts: 37
Liked: 21 times
Joined: May 11, 2014 5:03 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by emilec »

Using the external IP rather than the hostname results in the same problem. VAL wants to talk to the internal IP.
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by PTide » 1 person likes this post

Would it be possible to add it as feature-request?
Sure, feature request has been noted. :)

@emilec

If got it right, your vbr server has an external IP (the one that you've specified in VAL) and an internal IP (the one that VAL is attempting to contact). Is that's the case?
tsightler
VP, Product Management
Posts: 6035
Liked: 2860 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by tsightler »

As a very hackish workaround you can follow my instructions here which will allow this:

https://drive.google.com/file/d/0B8s_Em ... hKNVk/view

This involves adding a secondary IP for the repo that matches your public IP address, then adding the repo, by that IP, to the VBR server. This effectively fools the VBR server into thinking that the public IP is the address of the repo and that's the address it sends to the client to connect.
emilec
Service Provider
Posts: 37
Liked: 21 times
Joined: May 11, 2014 5:03 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by emilec »

PTide wrote:If got it right, your vbr server has an external IP (the one that you've specified in VAL) and an internal IP (the one that VAL is attempting to contact). Is that's the case?
Yes.

In simplistic terms the infrastructure is as follows:
CentOS Server with Agent -> FW (NAT) -> internet -> FW (NAT) -> B&R 9.5U1 (Server and Repo on one box)
emilec
Service Provider
Posts: 37
Liked: 21 times
Joined: May 11, 2014 5:03 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by emilec »

tsightler wrote:As a very hackish workaround you can follow my instructions here which will allow this:

https://drive.google.com/file/d/0B8s_Em ... hKNVk/view

This involves adding a secondary IP for the repo that matches your public IP address, then adding the repo, by that IP, to the VBR server. This effectively fools the VBR server into thinking that the public IP is the address of the repo and that's the address it sends to the client to connect.
Thanks. I did see that, but I'm not changing a working production service to accommodate:
1) My VAL testing
2) A missing feature / bug (IMHO)
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by PTide »

I recollect that there is a very similar issue with Endpoint. I guess that if a secondary IP is added then VBR will return two IPs resulting in the same behaviour.
emilec
Service Provider
Posts: 37
Liked: 21 times
Joined: May 11, 2014 5:03 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by emilec »

PTide wrote:I recollect that there is a very similar issue with Endpoint. I guess that if a secondary IP is added then VBR will return two IPs resulting in the same behaviour.
In my case the host only has one IP, which is the internal one.
SFalk
Novice
Posts: 3
Liked: never
Joined: Oct 21, 2013 12:32 pm

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by SFalk »

Sorry for digging up this old thread, but is there any update on the NAT/FW-issue?
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Request: Linux Agent backup to remote B&R behind NAT FW

Post by PTide »

Hi,

No, there are none. However, new Agent is able to backup to Cloud Connect directly, so you don't have to expose the whole range of ports on the backup site.

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests