mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-2161 updated cloud-early-config to copy iptables-* to rules.v4
In iptables-persistent, iptables-restore is loading config from the /etc/iptables/rule.v4 Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
This commit is contained in:
parent
762977d7c6
commit
39f772eee8
|
|
@ -691,7 +691,7 @@ setup_router() {
|
|||
disable_rpfilter_domR
|
||||
enable_fwding 1
|
||||
chkconfig nfs-common off
|
||||
cp /etc/iptables/iptables-router /etc/iptables/rules
|
||||
cp /etc/iptables/iptables-router /etc/iptables/rules.v4
|
||||
setup_sshd $ETH1_IP "eth1"
|
||||
}
|
||||
|
||||
|
|
@ -763,7 +763,7 @@ EOF
|
|||
enable_svc cloud 0
|
||||
disable_rpfilter
|
||||
enable_fwding 1
|
||||
cp /etc/iptables/iptables-vpcrouter /etc/iptables/rules
|
||||
cp /etc/iptables/iptables-vpcrouter /etc/iptables/rules.v4
|
||||
setup_sshd $ETH0_IP "eth0"
|
||||
cp /etc/vpcdnsmasq.conf /etc/dnsmasq.conf
|
||||
cp /etc/cloud-nic.rules /etc/udev/rules.d/cloud-nic.rules
|
||||
|
|
@ -789,7 +789,7 @@ setup_dhcpsrvr() {
|
|||
enable_svc cloud 0
|
||||
enable_fwding 0
|
||||
chkconfig nfs-common off
|
||||
cp /etc/iptables/iptables-router /etc/iptables/rules
|
||||
cp /etc/iptables/iptables-router /etc/iptables/rules.v4
|
||||
if [ "$SSHONGUEST" == "true" ]
|
||||
then
|
||||
setup_sshd $ETH0_IP "eth0"
|
||||
|
|
@ -824,7 +824,7 @@ setup_secstorage() {
|
|||
[ "$ETH2_IP" == "0.0.0.0" ] && public_ip=$ETH1_IP
|
||||
echo "$public_ip $NAME" >> /etc/hosts
|
||||
|
||||
cp /etc/iptables/iptables-secstorage /etc/iptables/rules
|
||||
cp /etc/iptables/iptables-secstorage /etc/iptables/rules.v4
|
||||
if [ "$hyp" == "vmware" ]; then
|
||||
setup_sshd $ETH1_IP "eth1"
|
||||
else
|
||||
|
|
@ -848,7 +848,7 @@ setup_console_proxy() {
|
|||
[ "$ETH2_IP" == "0.0.0.0" ] && public_ip=$ETH1_IP
|
||||
sed -i /gateway/d /etc/hosts
|
||||
echo "$public_ip $NAME" >> /etc/hosts
|
||||
cp /etc/iptables/iptables-consoleproxy /etc/iptables/rules
|
||||
cp /etc/iptables/iptables-consoleproxy /etc/iptables/rules.v4
|
||||
if [ "$hyp" == "vmware" ]; then
|
||||
setup_sshd $ETH1_IP "eth1"
|
||||
else
|
||||
|
|
@ -873,7 +873,7 @@ setup_elbvm() {
|
|||
[ "$ETH2_IP" == "0.0.0.0" ] || [ "$ETH2_IP" == "" ] && public_ip=$ETH0_IP
|
||||
echo "$public_ip $NAME" >> /etc/hosts
|
||||
|
||||
cp /etc/iptables/iptables-elbvm /etc/iptables/rules
|
||||
cp /etc/iptables/iptables-elbvm /etc/iptables/rules.v4
|
||||
if [ "$SSHONGUEST" == "true" ]
|
||||
then
|
||||
setup_sshd $ETH0_IP "eth0"
|
||||
|
|
|
|||
Loading…
Reference in New Issue