Cannot Add Physical Machine via Direct Connect

Product version: 10.11

Last modified: 16 July 2024

Problem

The transporter is installed on the physical machine with Direct Connect enabled and using the public IP address.

When attempting to add the physical machine to NAKIVO Backup & Replication by assigning this transporter with the 'Use direct connect' option and providing the LAN IP address, the following error message is displayed:

Cannot add the machine

No response was received from “X”. Make sure the provided information is correct and the connection is not blocked.

Solution

To work around the problem, configure the physical machine as follows:

For Windows:

  1. Add [IP 1] as a "Loopback" address:

    netsh int ip add address "Loopback" [IP 1]

  2. Use portproxy to map the port:

    netsh interface portproxy add v4tov4 listenaddress=[IP 1] listenport=[Port 1] connectaddress==[IP 2] connectport=[Port 2]

Example

netsh int ip add address "Loopback" 27.65.203.171

netsh interface portproxy add v4tov4 listenaddress=27.65.203.171 listenport=10066 connectaddress=10.10.17.69 connectport=9446

For Ubuntu:

  1. iptables -t nat -A OUTPUT -d [IP 1] -p tcp --dport [Port 1] -j DNAT --to-destination [IP 2]:[Port 2]

  2. iptables -t nat -A OUTPUT -d [IP 1] -p tcp --dport [DataPortStart2]:[DataPortEnd2] -j DNAT --to-destination [IP 2]:[DataPortStart2]:[DataPortEnd2]

Example

IP 1: 27.65.203.171 (public IP)

Port 1: 10057

IP 2: 10.10.18.1 (local IP)

Port 2: 9446

DataPortStart 2: 9448

DataPortEnd 2: 9450

iptables -t nat -A OUTPUT -d 27.65.203.171 -p tcp --dport 10057 -j DNAT --to-destination 10.10.18.11:9446

iptables -t nat -A OUTPUT -d 27.65.203.171 -p tcp --dport 9448:9500 -j DNAT --to-destination 10.10.18.11:9448-9500