Fix 'ufw reload'
diff --git a/xos/synchronizers/vcpe/steps/sync_vcpetenant_vtn.yaml b/xos/synchronizers/vcpe/steps/sync_vcpetenant_vtn.yaml
index 9fc3f2a..1769e28 100644
--- a/xos/synchronizers/vcpe/steps/sync_vcpetenant_vtn.yaml
+++ b/xos/synchronizers/vcpe/steps/sync_vcpetenant_vtn.yaml
@@ -259,7 +259,7 @@
service: name={{ container_name }} state=started
- name: reload ufw
- shell: docker exec {{ container_name }} bash -c "/sbin/iptables -t nat -F PREROUTING; /usr/sbin/ufw reload"
+ shell: docker exec {{ container_name }} bash -c "/sbin/iptables -t nat -F PREROUTING; /sbin/iptables -F FORWARD; /usr/sbin/ufw reload"
# Use docker cp instead of single-file volume
# The reason is that changes to external file volume don't show up inside the container
diff --git a/xos/synchronizers/vcpe/templates/start-vcpe-vtn.sh.j2 b/xos/synchronizers/vcpe/templates/start-vcpe-vtn.sh.j2
index b686d31..e118b3c 100644
--- a/xos/synchronizers/vcpe/templates/start-vcpe-vtn.sh.j2
+++ b/xos/synchronizers/vcpe/templates/start-vcpe-vtn.sh.j2
@@ -19,7 +19,7 @@
docker run -d --name=$VCPE --privileged=true --net=none \
-v /var/container_volumes/$VCPE/etc/dnsmasq.d:/etc/dnsmasq.d:ro \
-v /var/container_volumes/$VCPE/usr/local/sbin:/usr/local/sbin:ro \
- -v /var/container_volumes/$VCPE/etc/ufw:/etc/ufw:ro \
+ -v /var/container_volumes/$VCPE/etc/ufw:/etc/ufw \
andybavier/docker-vcpe
else
docker start $VCPE