Skip to content

Commit edf072b

Browse files
committed
CPVM: copy iptables rules during bootstrap
1 parent 0a090f4 commit edf072b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

systemvm/debian/opt/cloud/bin/setup/consoleproxy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ setup_console_proxy() {
3232
public_ip=`getPublicIp`
3333
echo "$public_ip $NAME" >> /etc/hosts
3434

35+
log_it "Applying iptables rules"
36+
cp /etc/iptables/iptables-consoleproxy /etc/iptables/rules.v4
37+
3538
log_it "Applying iptables rule for VNC port ${VNCPORT}"
3639
sed -i "s/8080/${VNCPORT}/" /etc/iptables/rules.v4
3740
echo "${VNCPORT}" > /root/vncport

0 commit comments

Comments
 (0)