Fix bug in iptables-rules.fw that was affecting SIP redirection. Removed hard-coded...
authorAndy Witter <awitter@georgialibraries.org>
Thu, 9 Jan 2014 13:06:24 +0000 (08:06 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Thu, 9 Jan 2014 13:06:24 +0000 (08:06 -0500)
templates/lvs/iptables-rules.fw

index 8b9f6ec..8d2893e 100755 (executable)
@@ -62,7 +62,7 @@ $IPT -A INPUT -s "$PRIVATE_NET" -d 0/0 -j ACCEPT
 ######## Port Forwarding ##########
 
 ### Nat incoming connections for Evergreen SIP service.
-iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 6001 -j DNAT --to-destination Priv_NET.131-Priv_NET.132:6001
+iptables -t nat -A PREROUTING -i $EXTERNAL_IF -p tcp --dport 6001 -j DNAT --to-destination Priv_NET.131-Priv_NET.132:6001
 
 
 ####### End Port Forwarding #######