突然,我的 bubbleupnpserver 无法连接到 http 端口 58050 和 https 端口 58051。昨天还可以,服务器没有任何变化,今天就不行了。也许是 fail2ban?错误:
HTTP: ERROR: Cannot connect. Check that the public host name is valid and that port 58050 is opened on your router
HTTPS: ERROR: Cannot connect. Check that the public host name is valid and that port 58051 is opened on your router
这是 iptables 的输出:
sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere ns375259.ip-5-196-88.eu tcp dpt:58051
ACCEPT tcp -- anywhere ns375259.ip-5-196-88.eu tcp dpt:58050
f2b-sshd tcp -- anywhere anywhere multiport dports s sh
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain f2b-sshd (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
根据建议,在 netstat -tulpn 上我发现了 2 个带有此端口的条目,它看起来像这样:
tcp 0 0 0.0.0.0:58050 0.0.0.0:* LISTEN 1455/java
tcp 0 0 0.0.0.0:58051 0.0.0.0:* LISTEN 1455/java