NethServer Version: 7.6.1810 Module: -
Hi,
I’m using BareOS to take backup on our servers (Ubuntu and Debian). Now I want to backup Nethserver to. BareOS are using port 9101, 9102 and 9103. How do I allow BareOS to connect to Nethserver?
The nethserver server are not acting as firewall, only AD and file server.
I have tried to add rules in firewall via GUI and tested
config set myservice service status enabled TCPPort 9101,9102,9103 access green
signal-event firewall-adjust
Nothing happens and I don’t know where it is stopped.
How can I open incoming ports? In which log file can I see what is stopped in firewall?
Thank you, that works a little bit more. The backup stopped anyway.
I did open for all traffic in the firewall to and from the backup server and it working even more but it cannot take backups.
The last thing that solved the last piece was in /etc/resolve.conf. I changed the search from:
Nethserver uses a template system.
Changing /etc/resolv.conf is not persistent as it’s templated and will be overwritten.
It should be enough to add a DNS entry on the Nethserver for your bareos server.
We use this port 9001, 9002, 9003 restricted to localhost for rh-php71, rh-php72, rh-php73, does this port are the official one of bareos, what could be the issue to rh-php7X if we open them to the green network ?
Sure it will work but my guess is for vulnerabilities
Sorry for the noise, I was not woke up :D… 9101,9102,9103
relative to bareos, I am in a learning curve, no lessons to give, but a lot to learn
I am currently working to make a rpm, it seems to work well, however I noticed two things to make the backup on a remote nethserver 7
config set bareos-fd service status enabled TCPPort 9102 access green
for client, only the service bareos-fd is needed, it listens on port 9102, the other can be opened but is not needed.
However after the first signal-event runlevel-adjust the service will be down, to make it persistent:
signal-event runlevel-adjust
systemctl status bareos-fd
the second things, maybe due to my development environment tricked…but I needed to put in /etc/hosts the hostname definition of the backup server in the client
in /etc/hosts of the client 192.168.56.12 ns7loc11.nethservertest.org ns7loc11
after this it seems to work.
I am looking now to make the authentication workable with PAM, it could be fun to have the same users between the web ui and nethserver, do you have some experiences with PAM and bareos to share.
Thanks for your replies. The yum install nethserver-bareos-client would probably solve the firewall problem. The other problem is probably some wrong config in BareOS, the server sends its name without domain name (backupserver instead of backupserver.ad.mydomain.com).