Minor changes for Istio configuration 40/3640/1
authorRuoyu <ruoyu.ying@intel.com>
Thu, 23 Jul 2020 01:48:01 +0000 (09:48 +0800)
committerRuoyu <ruoyu.ying@intel.com>
Thu, 23 Jul 2020 01:48:01 +0000 (09:48 +0800)
*Apply minor changes for remote access to Istio ingress

Change-Id: I650e57041c317fcf91c674b4ed4fd93ef3cb30df

platform/cnf/src/sdewan.user
platform/test/e2e-test-crd/edge-scripts/setup-cnf.sh

index 82642e7..5d000a5 100644 (file)
@@ -13,13 +13,13 @@ then
 else
    iptables -t nat -D $SNAT_RULE
    iptables -t nat -D PREROUTING -p tcp --dport 6443 -j DNAT --to-destination $api_server
-   iptables -t nat -D PREROUTING -i net0 -j DNAT --to-destination $istio_ingress
+   iptables -t nat -D PREROUTING -i net1 -j DNAT --to-destination $istio_ingress
 fi
 
 iptables -t nat -A $SNAT_RULE
 iptables -t nat -A PREROUTING -p tcp --dport 6443 -j DNAT --to-destination $api_server
 if [[ $istio_ingress != "NXDOMAIN" ]];
 then
-  iptables -t nat -A PREROUTING -i net0 -j DNAT --to-destination $istio_ingress
+  iptables -t nat -A PREROUTING -i net1 -j DNAT --to-destination $istio_ingress
 fi
 
index 6794d08..9a4139d 100755 (executable)
@@ -282,7 +282,7 @@ spec:
     - pnetwork
   input: ACCEPT
   output: ACCEPT
-  forward: REJECT
+  forward: ACCEPT
   masq: "0"
   mtu_fix: "1"
 EOF