我无法从多个 IP 地址访问我的网络服务器。我认为问题可能出在 iptables 中。
我在服务器上安装了 fail2ban,也许这就是原因。
我的网络服务器在 ubuntu 13.10 下运行
IPTABLES -L 给了我下一个:
root@mail:/home/irishman# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-postfix tcp -- anywhere anywhere multiport dports http,https,smtp,submission,pop3,pop3s,imap2,imaps,sieve
fail2ban-dovecot tcp -- anywhere anywhere multiport dports http,https,smtp,submission,pop3,pop3s,imap2,imaps,sieve
fail2ban-roundcube tcp -- anywhere anywhere multiport dports http,https,smtp,submission,pop3,pop3s,imap2,imaps,sieve
fail2ban-ssh tcp -- anywhere anywhere tcp dpt:ssh
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-dovecot (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
Chain fail2ban-postfix (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
Chain fail2ban-roundcube (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
我在那里看不到任何被禁止的地址。
但问题依然存在。我可以通过一个互联网提供商访问我的服务器
并且不能与另一个。
我也安装了calmAV(这可能是原因吗?)
最佳答案
正如您所说,看起来fail2ban 不是您的问题。只是为了检查,尝试暂时停止 fail2ban 服务(service fail2ban stop
),这将删除任何 iptables 限制,看看会发生什么。
接下来要尝试的是从一些无法访问服务器的主机跟踪路由,并查看它们是否存在卡住的常见位置 - 您偶尔会遇到路由问题,特别是如果您的 Web 服务器位于最近分配的IP 地址 block 。
关于ubuntu - Fail2ban 禁止互联网提供商 IP 地址?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23629326/