Hi there,
My setup consist of the following two machines in local network:
- Server: Raspberry Pi 4, Manjaro ARM (aarch64)
- Client: Lenovo Y520, Manjaro (amd64)
The Server installed the package urbackup2-server
from the AUR and the Client installed the package urbackup2-client-no-gui
also from the AUR.
Upon running sudo systemctl start urbackup-server
in the server and sudo systemctl start urbackupclientbackend
in the client, adding a backup folder in the client using urbackupclientctl add-backupdir -d /home/undercover/ze
running urbackupclientctl start -i
returns:
Error starting backup. No backup server found.
The webUI is working as expected.
There’s a small twist in my system, which is probably what’s causing this issue, i’m running Wireguard (interface name wg0
) on both of my machines meaning that each of them have two IP’s:
- Server: 192.168.1.69, 10.1.1.1
- Client: 192.168.1.67, 10.1.1.2
Both of my machines have firewalls setup such that they are to deny all incoming connections from 192.168.1.0/24, but all the machines in my Wireguard network, with assigned IP’s within the subnet 10.1.1.0/24 have no firewalls in between them and all connections incoming or outgoing are allowed.
This means that running netstat
in the Server shell to analyse who’s listening:
sudo netstat -tulpn | grep LISTEN
tcp 0 0 0.0.0.0:55413 0.0.0.0:* LISTEN 557/urbackupsrv
tcp 0 0 0.0.0.0:55414 0.0.0.0:* LISTEN 557/urbackupsrv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 313/sshd: /usr/bin/
tcp6 0 0 :::55413 :::* LISTEN 557/urbackupsrv
tcp6 0 0 :::55414 :::* LISTEN 557/urbackupsrv
tcp6 0 0 :::22 :::* LISTEN 313/sshd: /usr/bin/
And running nmap
from the Client to the Server using the Wireguard connection:
nmap 10.1.1.1 -p 55413
Starting Nmap 7.80 ( https://nmap.org ) at 2020-08-04 19:25 WEST
Nmap scan report for 10.1.1.1
Host is up (0.0024s latency).
PORT STATE SERVICE
55413/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.03 seconds
nmap 10.1.1.1 -p 55414
Starting Nmap 7.80 ( https://nmap.org ) at 2020-08-04 19:32 WEST
Nmap scan report for 10.1.1.1
Host is up (0.0023s latency).
PORT STATE SERVICE
55414/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
I’m not going to change this setup because it allows me to treat both machines as if they were in localhost, even if they have remote connections, which is perfect for what i want. For some reason Urbackup is not being able to find each other, probably because it’s looking for connections in eth0
in the server and they’re in wg0
.
If i could make a suggestion, having a “direct connect” feature, even for local network, would be great because for scenarios like this it could make a Urbackup server and client that are going through a VPN connection act as if they were on local network, which would also avoid the server/client sending messages to discover each other.