From: Andy Witter Date: Thu, 9 Jan 2014 13:06:24 +0000 (-0500) Subject: Fix bug in iptables-rules.fw that was affecting SIP redirection. Removed hard-coded... X-Git-Tag: GenaSYS-2.5.1~15 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=900bfbfbd55d294d3f7971f18078f785b75b4577;p=contrib%2Fpines%2Fgenasys.git Fix bug in iptables-rules.fw that was affecting SIP redirection. Removed hard-coded interface name --- diff --git a/templates/lvs/iptables-rules.fw b/templates/lvs/iptables-rules.fw index 8b9f6ec..8d2893e 100755 --- a/templates/lvs/iptables-rules.fw +++ b/templates/lvs/iptables-rules.fw @@ -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 #######