/[smecontribs]/rpms/smeserver-dansguardian/contribs7/smeserver-dansguardian-2.9-block8080.patch
ViewVC logotype

Annotation of /rpms/smeserver-dansguardian/contribs7/smeserver-dansguardian-2.9-block8080.patch

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


Revision 1.1 - (hide annotations) (download)
Fri May 30 08:18:02 2008 UTC (16 years, 5 months ago) by dungog
Branch: MAIN
CVS Tags: smeserver-dansguardian-2_9-5_el4_sme, smeserver-dansguardian-2_9-4_el4_sme
ss-dans block8080

1 dungog 1.1 --- smeserver-dansguardian-2.9/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90local_chk40networks.block8080 2008-05-30 18:07:28.000000000 +1000
2     +++ smeserver-dansguardian-2.9/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90local_chk40networks 2008-05-30 18:12:04.000000000 +1000
3     @@ -1,15 +1,17 @@
4     {
5     - return "" unless ( ($dansguardian{portblocking} || "no") eq 'yes');
6     + return "" unless ( ($dansguardian{portblocking} || "no") eq 'yes');
7    
8     my $locals = "@locals";
9     if (@locals)
10     {
11     - $OUT .=<<"EOF";
12     - for network in $locals
13     - do
14     - /sbin/iptables -A \$NEW_local_chk -s \$network -p tcp --destination-port 3128 -j DROP
15     - /sbin/iptables -A \$NEW_local_chk -d \$network -p tcp --destination-port 3128 -j DROP
16     - done
17     + $OUT .=<<"EOF";
18     + for network in $locals
19     + do
20     + /sbin/iptables -A \$NEW_local_chk -d $LocalIP/$LocalNetmask -j ACCEPT
21     + /sbin/iptables -A \$NEW_local_chk -s \$network -p tcp --destination-port $squid{TransparentPort} -j DROP
22     + /sbin/iptables -A \$NEW_local_chk -s \$network -p tcp --destination-port $squid{TCPPort} -j DROP
23     + /sbin/iptables -A \$NEW_local_chk -d \$network -p tcp --destination-port $squid{TCPPort} -j DROP
24     + done
25     EOF
26     }
27     }

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