It might be possible that you need to do additional steps before these changes applies.
As this doesn’t look something Greenbone software specific the following suggestion still applies:
It might be possible that you need to do additional steps before these changes applies.
As this doesn’t look something Greenbone software specific the following suggestion still applies:
I tried to put my question in Kali forum but my thread never gets posted…
I come by again on this thread as I might found something and maybe other people have the same issue.
I noticed that if I manually edit (with nano) /lib/systemd/system/greenbone-security-assistant.service, everything works correctly and I am able to access GVM externally.
But, if I use command:
sudo sed -i"" ‘s/127.0.0.1/0.0.0.0/g’ /lib/systemd/system/greenbone-security-assistant.service
which is supposed to do the same thing, then access is impossible.
I dig a bit further and found that by default, file greenbone-security-assistant.service is a symlink to gsad. service. After the “sed” command, this symlink is broken.
Now, the question goes to: Do you know why “sed” is braking the link and is there a way to avoid it (except from editing manually?
Thanks a lot for posting the additional info / the source of this problem.
As the initial question has been solved and the problem has been identified as not being Greenbone software specific i would suggest to:
sed
specific behavior in more detailAfter a google search I found out that command “sed -i” breaks the symlinks because the way it works.
In order to avoid it the flag --follow-symlinks has to be used. So, the complete command is:
sudo sed -i"" --follow-symlinks ‘s/127.0.0.1/0.0.0.0/g’ /lib/systemd/system/greenbone-security-assistant.service