Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed: 修复清除iptables规则时,遇到关闭所有进入端口,无法连接节点 #453

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

PowerDos
Copy link
Contributor

@PowerDos PowerDos commented Feb 9, 2019

fixed: 修复清除iptables规则时,遇到关闭所有进入端口,无法连接节点

@gjmzj
Copy link
Collaborator

gjmzj commented Feb 10, 2019

清除规则时,遇到无法连接节点,能否复现?这块我没有弄得很清楚,能否答疑 :)

@PowerDos
Copy link
Contributor Author

@gjmzj 即在iptables最后加上iptables -P INPUT DROP;时,kubeasz自动化处理清除iptables规则时,没有iptables -P INPUT ACCEPT,导致所有的端口都关闭,连不上子节点

@gjmzj
Copy link
Collaborator

gjmzj commented Feb 11, 2019

在iptables最后加上iptables -P INPUT DROP;时

没有这个默认拒绝策略吧

@PowerDos
Copy link
Contributor Author

没有这个默认的拒绝策略,但是有些不是干净的系统设置过iptables规则的,可能会开放完选定端口后关闭其他端口,这就导致,清除策略后,连接不上节点。这个只是优化下,一般情况下如果系统没设置过是没有这种情况的。

@PowerDos
Copy link
Contributor Author

一般情况下iptables -F前保险的做法是先执行iptables -P INPUT ACCEPT,防止不小心操作后连接不到服务器,不知道你们会不会这样做。

@gjmzj
Copy link
Collaborator

gjmzj commented Feb 11, 2019

好的

@gjmzj gjmzj merged commit 4898ae0 into easzlab:master Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants