Hello, I have 2 TrueNAS installed on a corporate network (connected to Active Directory). One serves as my NAS and a snapshot task is done every 4 hours, followed by replication to my second TrueNAS. Everything works very well. But everything is on the local network and I would like to carry out the replications to a TrueNAS located elsewhere (outsourcing). For the moment I have tested with one which is installed at home (so it is not on the Active Directory obviously).
I configured the root with the same password as those internally (I don't know if it matters or not but oh well).
I configured port redirection on my BOX to send 22 TCP/UDP to my TrueNAS (in Fixed IP), it does not work. I then added ports 20, 21, 443, 465, and even 837 to it with no success either;
When I configure the target by generating a new key (below. Blurred it is my private IP) it systematically times out:
CallError
[EFAULT] Unable to connect to remote system: timed out
contenu :
Erreur: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/keychain.py", line 563, in remote_ssh_semiautomatic_setup
client = Client(os.path.join(re.sub("^http", "ws", data["url"]), "websocket"))
File "/usr/local/lib/python3.9/site-packages/middlewared/client/client.py", line 286, in __init__
self._ws.connect()
File "/usr/local/lib/python3.9/site-packages/middlewared/client/client.py", line 124, in connect
rv = super(WSClient, self).connect()
File "/usr/local/lib/python3.9/site-packages/ws4py/client/__init__.py", line 216, in connect
self.sock.connect(self.bind_addr)
File "/usr/local/lib/python3.9/ssl.py", line 1343, in connect
self._real_connect(addr, False)
File "/usr/local/lib/python3.9/ssl.py", line 1330, in _real_connect
super().connect(addr)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 139, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1247, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1152, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 985, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/keychain.py", line 565, in remote_ssh_semiautomatic_setup
raise CallError(f"Unable to connect to remote system: {e}")
middlewared.service_exception.CallError: [EFAULT] Unable to connect to remote system: timed out
Same when I try to create an SSH connection by hand; it creates an SSH key pair but not the connection with the same timeout error.
So I conclude that it can't reach my Trunas home and that I must therefore have forgotten a port or something of the sort?
Has anyone ever managed to make these kinds of connections? Is there any documentation and/or a tutorial to do this?
Thank you in advance for your help!
I configured the root with the same password as those internally (I don't know if it matters or not but oh well).
I configured port redirection on my BOX to send 22 TCP/UDP to my TrueNAS (in Fixed IP), it does not work. I then added ports 20, 21, 443, 465, and even 837 to it with no success either;
When I configure the target by generating a new key (below. Blurred it is my private IP) it systematically times out:
CallError
[EFAULT] Unable to connect to remote system: timed out
contenu :
Erreur: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/keychain.py", line 563, in remote_ssh_semiautomatic_setup
client = Client(os.path.join(re.sub("^http", "ws", data["url"]), "websocket"))
File "/usr/local/lib/python3.9/site-packages/middlewared/client/client.py", line 286, in __init__
self._ws.connect()
File "/usr/local/lib/python3.9/site-packages/middlewared/client/client.py", line 124, in connect
rv = super(WSClient, self).connect()
File "/usr/local/lib/python3.9/site-packages/ws4py/client/__init__.py", line 216, in connect
self.sock.connect(self.bind_addr)
File "/usr/local/lib/python3.9/ssl.py", line 1343, in connect
self._real_connect(addr, False)
File "/usr/local/lib/python3.9/ssl.py", line 1330, in _real_connect
super().connect(addr)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 139, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1247, in _call
return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1152, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 985, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/keychain.py", line 565, in remote_ssh_semiautomatic_setup
raise CallError(f"Unable to connect to remote system: {e}")
middlewared.service_exception.CallError: [EFAULT] Unable to connect to remote system: timed out
Same when I try to create an SSH connection by hand; it creates an SSH key pair but not the connection with the same timeout error.
So I conclude that it can't reach my Trunas home and that I must therefore have forgotten a port or something of the sort?
Has anyone ever managed to make these kinds of connections? Is there any documentation and/or a tutorial to do this?
Thank you in advance for your help!