Greenbone Security Assistant is running and listening only on the local interface.解决

本文介绍如何修改GSAD服务配置文件,将监听地址从127.0.0.1更改为0.0.0.0,从而使服务对外提供访问。通过重启服务并使用netstat命令验证更改生效。

vi /etc/sysconfig/gsad

把127.0.0.1修改为0.0.0.0

重启

service gsad restart


检查

netstat -A inet -ntlp


发现如下行

tcp        0      0 0.0.0.0:9392                0.0.0.0:*                   LISTEN      10120/gsad   


可以在浏览器输入该虚拟机IP

可以打开网页了

sudo gvm-start [sudo] zrdice 的密码: [>] Please wait for the GVM services to start. [>] [>] You might need to refresh your browser once it opens. [>] [>] Web UI (Greenbone Security Assistant): https://127.0.0.1:9392 ● gsad.service - Greenbone Security Assistant daemon (gsad) Loaded: loaded (/usr/lib/systemd/system/gsad.service; disabled; preset: disabled) Active: active (running) since Thu 2025-05-22 17:48:05 CST; 23ms ago Invocation: 9183ad0ba55a456391f430bbdd5362a8 Docs: man:gsad(8) https://www.greenbone.net Main PID: 32903 (gsad) Tasks: 1 (limit: 9334) Memory: 1.6M (peak: 2.1M) CPU: 35ms CGroup: /system.slice/gsad.service └─32903 /usr/sbin/gsad --foreground --listen 127.0.0.1 --port 9392 5月 22 17:48:05 ZRDice systemd[1]: Starting gsad.service - Greenbone Security Assistant dae 5月 22 17:48:05 ZRDice systemd[1]: Started gsad.service - Greenbone Security Assistant daem 5月 22 17:48:05 ZRDice systemd[1]: gsad.service: Main process exited, code=killed, status=1 5月 22 17:48:05 ZRDice systemd[1]: gsad.service: Failed with result 'signal'. ● gvmd.service - Greenbone Vulnerability Manager daemon (gvmd) Loaded: loaded (/usr/lib/systemd/system/gvmd.service; disabled; preset: disabled) Active: active (running) since Thu 2025-05-22 17:20:51 CST; 27min ago Invocation: e84a8b90aed24d808415921facca5e57 Docs: man:gvmd(8) Process: 18371 ExecStart=/usr/sbin/gvmd --osp-vt-update=/run/ospd/ospd.sock --listen-gr Main PID: 18373 (gvmd) Tasks: 1 (limit: 9334) Memory: 249.8M (peak: 412.4M) CPU: 12.053s CGroup: /system.slice/gvmd.service └─18373 "gvmd: Waiting " --osp-vt-update=/run/ospd/ospd.sock --listen-group=_g 5月 22 17:20:40 ZRDice systemd[1]: Starting gvmd.service - Greenbone Vulnerability Manager 5月 22 17:20:40 ZRDice systemd[1]: gvmd.service: Can't open PID file '/run/gvmd/gvmd.pid' ( 5月 22 17:20:51 ZRDice systemd[1]: Started gvmd.service - Greenbone Vulnerability Manager d ● ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas) Loaded: loaded (/usr/lib/systemd/system/ospd-openvas.service; disabled; preset: disabl Active: active (running) since Thu 2025-05-22 17:20:40 CST; 27min ago Invocation: 39d44ace1f32470686da5566db1f38b4 Docs: man:ospd-openvas(8) man:openvas(8) Process: 18347 ExecStart=/usr/bin/ospd-openvas --config /etc/gvm/ospd-openvas.conf --lous=0/SUCCESS) Main PID: 18359 (ospd-openvas) Tasks: 5 (limit: 9334) Memory: 213.6M (peak: 492.8M) CPU: 2min 49.230s CGroup: /system.slice/ospd-openvas.service ├─18359 /usr/bin/python3 /usr/bin/ospd-openvas --config /etc/gvm/ospd-openvas. └─18361 /usr/bin/python3 /usr/bin/ospd-openvas --config /etc/gvm/ospd-openvas. 5月 22 17:20:39 ZRDice systemd[1]: Starting ospd-openvas.service - OSPd Wrapper for the Ope 5月 22 17:20:40 ZRDice systemd[1]: Started ospd-openvas.service - OSPd Wrapper for the Open [>] Opening Web UI (https://127.0.0.1:9392) in: 5... 4... 3... 2... 1... ┌──(zrdice㉿ZRDice)-[~] └─$
05-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值