I have two containers linux (debian), each with installed nextcloud based on apache2 / MariaDB.
Each container has a private ip, and the only way I can connect remotely to the container is via ssh tunnel: eg.
“Ssh -L 8080 localhost: 80 firstname.lastname@example.org -p xx” and “ssh -L 8888 localhost: 80 email@example.com -p xx”.
I also set the federation settings as official documentation, and specified the two servers in the exceptions file (config / config.php).
to share a file I perform this steps:
select the File -> share -> user@http://x.x.x.x/nextcloud
I need to specify “http” because I haven’t any ssl certificates.
The receiving side receive the notification properly and asking me if I want to receive the file, but when I press “accept” gives me this error:
“Failed to perform action lost connection to the server”
The problem is that in the confirmation notification the sender field has this value:
which I think is wrong, because should there be something like "admin@ip_sender_container/nextcloud.
localhost:8888 is the address I use for ssh tunnel as previously explained.
So in summary, sending side can send the file correctly, while the receiving side receive notification of the new file, but with return address localhost, instead of sending server ip.
How can I configure the two federated server to enable you to share files?
Thank you in advance, greetings.
Edit: with tcpdump listening on port 80 in both hosts, i see the correct ip of the 2 containers:
eg: 10.10.10.1 > 10.10.10.2
10.10.10.1 < 10.10.10.2