我想监视包含使用zabbix安装的VPN(strongswan)的服务器。
无法从我的Zabbix服务器访问我的VPN服务器中安装的zabbix客户端。他们有什么办法打开zabbix默认端口10050吗?
sudo ufw status verbose
命令输出显示:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
10050/tcp ALLOW IN Anywhere
10050 ALLOW IN Anywhere
22/tcp ALLOW IN Anywhere
10050/tcp (v6) ALLOW IN Anywhere (v6)
10050 (v6) ALLOW IN Anywhere (v6)
22/tcp (v6) ALLOW IN Anywhere (v6)
答案 0 :(得分:3)
我认为最好使用Iptables规则,下面的命令将允许zabbix服务器ip处于tcp模式。
iptables -I INPUT -p tcp -s <zabbix server ip> --dport 10050 -j ACCEPT