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 |
|
|
-} |