ADD BAREOS CLIENT

open bareos console and use configure add client (server side)

192.168.0.2 = client remote ip

bconsole
configure add client name=clientname-fd address=192.168.0.2 password=SOME_PASSWORD

After that copy the fresh "exported conf" generated at the screen to /etc/bareos/bareos-fd.d/director/bareos-dir.conf (client side)

restart bareos-fd (client side)
systemct restart bareos-fd
if client under firewall (like iptable/ufw), make a rule to allow server access to bareos-fd (client side)

192.168.0.1 = server remote ip

ufw allow from 192.168.0.1 to any port 9102
if server under firewall (like iptable/ufw), make a rule to allow client access to bareos-fd (server side)
ufw allow from 192.168.0.2 to any port 9103
reload bareos (server side)
echo "reload" | bconsole