stunnel / Ocserv-install-script-for-CentOS-RHEL-7

Ocserv(AnyConnect Server) install script for CentOS/RHEL 7
283 stars 164 forks source link

能够建立连接却不能访问,无防火墙无 route #30

Open 7nights opened 8 years ago

7nights commented 8 years ago

只能够建立连接却无法访问,删掉 route 规则后无法打开任何网站。 detail 里显示没有从服务器收到任何包。 服务器防火墙全部关闭。 能够从什么地方看到更详细的信息吗?

ghost commented 8 years ago

我在 Linode VPS 上也遇到了相同的情况 ...

travislee89 commented 8 years ago

防火墙必须开启,因为需要防火墙转发数据包。 如果你使用iptables,看下 /etc/sysconfig/iptables ,如果有这一行,删掉重启iptables试试 -A FORWARD -j REJECT —reject-with icmp-host-prohibited On Mar 21, 2016 20:50, "B1ur3" notifications@github.com wrote:

我在 Linode VPS 上也遇到了相同的情况 ...

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/travislee8964/Ocserv-install-script-for-CentOS-RHEL-7/issues/30#issuecomment-199257705

yanzi1225627 commented 8 years ago

是的,必须启动防火墙。

#-A INPUT -j REJECT --reject-with icml-host-prohibited
#-A FORWARD -j REJECT --reject-with icmp-host-prohibited

这两句最好都删除。