我有没有 firewalld 但安装了 iptables 的 CentOS 7 服务器。
WildFly 10 正在运行,并将 http 端口更改8080为80in 的套接字绑定standalone.xml。
我会使用以下命令在 iptables 中打开 80 端口:
# iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
# iptables -A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT
Run Code Online (Sandbox Code Playgroud)
但是在我停止 iptables 之前服务器仍然无法访问。
如何解决?
更新:
#iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j …Run Code Online (Sandbox Code Playgroud)