Revision: 2735
http://ipcop.svn.sourceforge.net/ipcop/?rev=2735&view=rev
Author: owes
Date: 2009-04-20 13:17:56 +0000 (Mon, 20 Apr 2009)
Log Message:
-----------
We only need 1 set of rules for OpenVPN tun device
Modified Paths:
--------------
ipcop/trunk/src/scripts/puzzleFwRules.pl
Modified: ipcop/trunk/src/scripts/puzzleFwRules.pl
===================================================================
--- ipcop/trunk/src/scripts/puzzleFwRules.pl 2009-04-19 19:22:00 UTC (rev
2734)
+++ ipcop/trunk/src/scripts/puzzleFwRules.pl 2009-04-20 13:17:56 UTC (rev
2735)
@@ -45,7 +45,7 @@
# 0 - create rules, no print
# 1 - create rules, print
# 2 - only print rules
-my $debugLevel = 1;
+my $debugLevel = 0;
#&General::log("BlockOutTraffic: Renew rules");
# Debug
@@ -775,11 +775,15 @@
# open some default ipcop services for policy 'half-open' and
'open'
if ($ifacePolicies{$inIface}{'POLICY'} =~ /^half-open|open$/) {
- # Some IPCop services
+ # Some IPCop services for Green and Blue
my @ipcopServices = ();
- if ($FW::interfaces{$inIface}{'COLOR'} =~
/^GREEN_COLOR|BLUE_COLOR|IPSEC_COLOR|OVPN_COLOR$/) {
+ if ($FW::interfaces{$inIface}{'COLOR'} =~
/^GREEN_COLOR|BLUE_COLOR$/) {
@ipcopServices = ('IPCop dhcp', 'IPCop dns', 'IPCop ntp',
'IPCop proxy', 'Ping');
}
+ # Some IPCop services for IPsec and OpenVPN (no DHCP needed
for VPN)
+ if ($FW::interfaces{$inIface}{'COLOR'} =~
/^IPSEC_COLOR|OVPN_COLOR$/) {
+ @ipcopServices = ('IPCop dns', 'IPCop ntp', 'IPCop proxy',
'Ping');
+ }
foreach my $service (@ipcopServices) {
my @serviceXYZ = &buildServiceParamsDefault($service, "");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn