From 26bb704deb18efd69453e9e7ea29cbc2901b4039 Mon Sep 17 00:00:00 2001
From: Tom Catling <48587918+tomcatlingcma@users.noreply.github.com>
Date: Tue, 9 Apr 2019 16:53:41 +0100
Subject: [PATCH] Restored default routes to EC2 metadata service
---
two-tier-sample/pan-sample-cft.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/two-tier-sample/pan-sample-cft.json b/two-tier-sample/pan-sample-cft.json
index 7a95c10..bf2eac5 100644
--- a/two-tier-sample/pan-sample-cft.json
+++ b/two-tier-sample/pan-sample-cft.json
@@ -482,6 +482,7 @@
"echo \"export new_routers='",{"Fn::GetAtt" : [ "FWPrivate13NetworkInterface", "PrimaryPrivateIpAddress" ]},"'\" >> /etc/dhcp/dhclient-enter-hooks.d/aws-default-route\n",
"ifdown eth0\n",
"ifup eth0\n",
+ "route add -net 169.254.0.0 netmask 255.255.0.0 dev eth0\n",
"while true\n",
" do\n",
" resp=$(curl -s -S -g --insecure \"https://",{"Ref": "ManagementElasticIP"},"/api/?type=op&cmd=&key=LUFRPT10VGJKTEV6a0R4L1JXd0ZmbmNvdUEwa25wMlU9d0N5d292d2FXNXBBeEFBUW5pV2xoZz09\")\n",
@@ -548,7 +549,7 @@
"echo \"export new_routers='",{"Fn::GetAtt" : [ "FWPrivate12NetworkInterface", "PrimaryPrivateIpAddress" ]},"'\" >> /etc/dhcp/dhclient-enter-hooks.d/aws-default-route\n",
"ifdown eth0\n",
"ifup eth0\n",
-
+ "route add -net 169.254.0.0 netmask 255.255.0.0 dev eth0\n",
"while true\n",
" do\n",
" resp=$(curl -s -S -g --insecure \"https://",{"Ref": "ManagementElasticIP"},"/api/?type=op&cmd=&key=LUFRPT10VGJKTEV6a0R4L1JXd0ZmbmNvdUEwa25wMlU9d0N5d292d2FXNXBBeEFBUW5pV2xoZz09\")\n",