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

Contents of /rpms/e-smith-portforwarding/sme8/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.1 - (show annotations) (download)
Wed Oct 17 13:50:22 2007 UTC (16 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-portforwarding-1_2_0-5_el5_sme, e-smith-portforwarding-1_2_0-6_el5_sme, e-smith-portforwarding-1_2_0-9_el5_sme, e-smith-portforwarding-1_2_0-7_el5_sme, e-smith-portforwarding-1_2_0-8_el5_sme
Updates

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