/[smeserver]/rpms/e-smith-packetfilter/sme10/e-smith-packetfilter-2.6.0-bz11251-drop-pptpd.patch
ViewVC logotype

Annotation of /rpms/e-smith-packetfilter/sme10/e-smith-packetfilter-2.6.0-bz11251-drop-pptpd.patch

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


Revision 1.1 - (hide annotations) (download)
Fri Dec 11 17:27:55 2020 UTC (3 years, 6 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-packetfilter-2_6_0-4_el7_sme, e-smith-packetfilter-2_6_0-5_el7_sme, e-smith-packetfilter-2_6_0-8_el7_sme, e-smith-packetfilter-2_6_0-3_el7_sme, e-smith-packetfilter-2_6_0-6_el7_sme, e-smith-packetfilter-2_6_0-7_el7_sme, HEAD
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
- drop pptpd support [SME: 11251]

1 jpp 1.1 diff -Nur e-smith-packetfilter-2.6.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust00Start e-smith-packetfilter-2.6.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust00Start
2     --- e-smith-packetfilter-2.6.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust00Start 2003-05-01 14:00:32.000000000 -0400
3     +++ e-smith-packetfilter-2.6.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust00Start 1969-12-31 19:00:00.000000000 -0500
4     @@ -1,11 +0,0 @@
5     -{
6     - $OUT = "";
7     - if ((%pptpd) and (exists $pptpd{Interfaces}))
8     - {
9     - $OUT .=<<'EOF';
10     - OLD_PPPconn=$(get_safe_id PPPconn filter find)
11     - NEW_PPPconn=$(get_safe_id PPPconn filter new)
12     - /sbin/iptables --new-chain $NEW_PPPconn
13     -EOF
14     - }
15     -}
16     diff -Nur e-smith-packetfilter-2.6.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust50adjust_conns e-smith-packetfilter-2.6.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust50adjust_conns
17     --- e-smith-packetfilter-2.6.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust50adjust_conns 2003-05-01 13:28:03.000000000 -0400
18     +++ e-smith-packetfilter-2.6.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust50adjust_conns 1969-12-31 19:00:00.000000000 -0500
19     @@ -1,14 +0,0 @@
20     -{
21     - $OUT = "";
22     - if ((%pptpd) and (exists $pptpd{Interfaces}))
23     - {
24     - my @interfaces = split /,/, $pptpd{Interfaces};
25     - foreach my $interface (sort @interfaces)
26     - {
27     - $OUT .=<<"EOF";
28     - /sbin/iptables --insert \$NEW_PPPconn --in-interface $interface -j ACCEPT
29     - /sbin/iptables --insert \$NEW_PPPconn --out-interface $interface -j ACCEPT
30     -EOF
31     - }
32     - }
33     -}
34     diff -Nur e-smith-packetfilter-2.6.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust99Finish e-smith-packetfilter-2.6.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust99Finish
35     --- e-smith-packetfilter-2.6.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust99Finish 2003-05-01 13:28:03.000000000 -0400
36     +++ e-smith-packetfilter-2.6.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90PPPconnAdjust99Finish 1969-12-31 19:00:00.000000000 -0500
37     @@ -1,13 +0,0 @@
38     -{
39     - $OUT = "";
40     - if ((%pptpd) and (exists $pptpd{Interfaces}))
41     - {
42     - $OUT .=<<'EOF';
43     - # Destroy the old chain and put in the new one.
44     - /sbin/iptables --replace PPPconn 1 \
45     - --jump $NEW_PPPconn
46     - /sbin/iptables --flush $OLD_PPPconn
47     - /sbin/iptables --delete-chain $OLD_PPPconn
48     -EOF
49     - }
50     -}

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