f3987beb30
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
9 lines
130 B
Bash
Executable File
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
|