Save iptables after flushing during cloud-init
The iptables rules should be saved after being flushed as part of the cloud-init process. If the reboot plugin is used, the default CentOS rules are loaded on boot because we are not saving the cleared set of rules. This can cause some network configurations to break. Ubuntu is not impacted as they do not have any 'default' rules. Change-Id: I49842cd833a736f318dd237f07be2267dbfb27ab Closes-Bug: 1459733
This commit is contained in:
parent
8693edb138
commit
e7ffd040eb
@ -44,6 +44,7 @@ runcmd:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- iptables -t filter -F INPUT
|
- iptables -t filter -F INPUT
|
||||||
- iptables -t filter -F FORWARD
|
- iptables -t filter -F FORWARD
|
||||||
|
- service iptables save
|
||||||
|
|
||||||
# that module's missing in 0.6.3, but existent for >= 0.7.3
|
# that module's missing in 0.6.3, but existent for >= 0.7.3
|
||||||
write_files:
|
write_files:
|
||||||
|
Loading…
Reference in New Issue
Block a user