From 88a1ebcbf140329d4acc34ccfda6b517514165a0 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Tue, 21 Aug 2012 11:29:14 +0530 Subject: [PATCH] CS-15942: Failed to apply Port Forwarding rule to Redundant router reviewed-by: abhi --- patches/systemvm/debian/config/root/firewall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/systemvm/debian/config/root/firewall.sh b/patches/systemvm/debian/config/root/firewall.sh index 73b82471bf1..e75c7d34b8d 100755 --- a/patches/systemvm/debian/config/root/firewall.sh +++ b/patches/systemvm/debian/config/root/firewall.sh @@ -46,7 +46,7 @@ ip_to_dev() { } doHairpinNat () { - local vrGuestIPNetwork=$(sudo ip addr show dev eth0 | grep inet | grep eth0 | awk '{print $2}' ) + local vrGuestIPNetwork=$(sudo ip addr show dev eth0 | grep inet | grep eth0 | awk '{print $2}' | head -1) local vrGuestIP=$(echo $vrGuestIPNetwork | awk -F'/' '{print $1}') local publicIp=$1