OpenShift 主机添加防火墙规则

OpenShift使用iptables转发,默认是允许ssh 22端口的,但是我们生产环境的服务器一般不会使用22端口,所以openshift运行后会导致非22的ssh端口不能连接。需要添加如下iptables规则。
iptables -I INPUT 8 -p tcp -mstate --state NEW -m tcp --dport 56722 -j ACCEPT

猜你喜欢

转载自blog.csdn.net/qq_31977125/article/details/89004218