此内容没有您所选择的语言版本。
Chapter 16. IPtables
16.1. Overview 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
This topic describes how administrators should work with iptables. openshift-sdn takes care of adding the necessary iptables rules to make it work. Kubernetes and Docker also manage iptables for port forwarding and services.
16.2. Restarting 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Docker doesn’t monitor the iptables rules that it adds for exposing ports from containers and hence if iptables service is restarted, then these rules are lost. So, to safely restart iptables, it is recommended that the rules are saved and restored.
iptables-save > /path/to/iptables.bkp systemctl restart iptables iptables-restore < /path/to/iptables.bkp
$ iptables-save > /path/to/iptables.bkp
$ systemctl restart iptables
$ iptables-restore < /path/to/iptables.bkp