1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-portforwarding-1.2.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/91adjustPortForward mezzanine_patched_e-smith-portforwarding-1.2.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/91adjustPortForward |
2 |
--- e-smith-portforwarding-1.2.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/91adjustPortForward 2007-10-16 11:46:31.000000000 -0400 |
3 |
+++ mezzanine_patched_e-smith-portforwarding-1.2.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/91adjustPortForward 2007-10-16 11:45:51.000000000 -0400 |
4 |
@@ -21,7 +21,7 @@ |
5 |
$port =~ s/-/:/; |
6 |
|
7 |
# Map canonical localhost back to our current external IP |
8 |
- $ip = $ExternalInterface{IPAddress} if ($ip eq 'localhost'); |
9 |
+ $ip = '$OUTERNET' if ($ip eq 'localhost'); |
10 |
|
11 |
$OUT .= " /sbin/iptables --table nat --append $pf_chain " . |
12 |
"--protocol $protocol \\\n". |
13 |
@@ -39,7 +39,7 @@ |
14 |
# then we must allow it on the INPUT chain instead of the FORWARD |
15 |
# chain. |
16 |
$OUT .= " adjust_${protocol}_in $port ACCEPT " . |
17 |
- (($ip eq $ExternalInterface{IPAddress}) ? |
18 |
+ (($ip eq '$OUTERNET') ? |
19 |
"Inbound${uproto}_\$\$\n" : |
20 |
"Forwarded${uproto}_\$\$ $ip/32\n"); |
21 |
} |