/[smeserver]/rpms/e-smith-portforwarding/sme7/e-smith-portforwarding-1.2.0-forward_to_localhost.patch
ViewVC logotype

Contents of /rpms/e-smith-portforwarding/sme7/e-smith-portforwarding-1.2.0-forward_to_localhost.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Oct 7 18:53:00 2008 UTC (15 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

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 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed