Enable CiaB to send packets outside by using router and SNAT
Change-Id: I6afe069d0f1637c4c2a969887c624d7480c45135
diff --git a/comac-in-a-box/resources/router.yaml b/comac-in-a-box/resources/router.yaml
index 2307a48..5f27992 100644
--- a/comac-in-a-box/resources/router.yaml
+++ b/comac-in-a-box/resources/router.yaml
@@ -41,9 +41,12 @@
command: ["/bin/bash", "-c"]
args:
- >
+ sysctl -w net.ipv4.ip_forward=1;
+ iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;
trap : TERM INT; sleep infinity & wait
image: opencord/quagga
securityContext:
+ privileged: true
capabilities:
add:
- NET_ADMIN