无法访问包含已安装VPN的服务器中的zabbix默认端口(10050)

时间:2019-01-12 12:11:59

标签: vpn zabbix ubuntu-18.04 ipsec strongswan

我想监视包含使用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)  

1 个答案:

答案 0 :(得分:3)

我认为最好使用Iptables规则,下面的命令将允许zabbix服务器ip处于tcp模式。

iptables -I INPUT -p tcp -s <zabbix server ip>  --dport 10050 -j ACCEPT