instack-undercloud/elements/undercloud-stack-config/os-refresh-config/post-configure.d/80-seedstack-masquerade
James Slagle f3987beb30 Save iptables rule changes to /etc/sysconfig/iptables
Save the metadata iptables redirect rule to /etc/sysconfig/iptables so
that it gets applied whenever the iptables service is restarted, such as
on reboot.

Also do the same for the masquerade rules.

Change-Id: Ic4a48015f0754f5635f741c54118b9d5d6cf268b
2015-04-13 20:01:58 -04:00

9 lines
130 B
Bash
Executable File

#!/bin/bash
set -eux
RULES_SCRIPT=/var/opt/undercloud-stack/masquerade
. $RULES_SCRIPT
iptables-save > /etc/sysconfig/iptables