PacketFence - BTS - PacketFence 1.6.2
View Issue Details
0000025PacketFence 1.6.2public2006-05-04 06:092006-05-09 15:33
user4 
 
normalminoralways
closedfixed 
0000025: 'enable network' button in p2p quarantine not working
After clicking the 'enable network' button in the 'Quarantine established - you have been detected using a p2p file sharing application' screen, I'm immediately redirected again to the same screen.


Here's the related /var/log/messages content:

May 4 09:03:55 pf pf: redir.cgi: 00:0c:29:b0:27:32 being redirected
May 4 09:03:56 pf pf: redir.cgi: 00:0c:29:b0:27:32 2000334 1
May 4 09:03:56 pf pf: redir.cgi: enter enable_menu
May 4 09:04:17 pf pf: db_connect: function (eval) is calling db_connect with handle 0
May 4 09:04:18 pf pf: release.cgi: 192.168.0.47 - 00:0c:29:b0:27:32 - http://www.google.ca/ [^] - - 2000334
May 4 09:04:20 pf pf: db_connect: function (eval) is calling db_connect with handle 0
 ay 4 09:04:23 pf pf: release.cgi: violation_close returned Content-Type: text/html; charset=ISO-8859-1
May 4 09:04:23 pf pf: release.cgi: 00:0c:29:b0:27:32 enabled for Content-Type: text/html; charset=ISO-88 minutes
No tags attached.
Issue History
2006-05-04 06:09user4New Issue
2006-05-04 06:10user4Note Added: 0000032
2006-05-04 06:21user4Note Added: 0000033
2006-05-04 06:47user4Note Added: 0000035
2006-05-04 06:50user4Note Added: 0000036
2006-05-09 15:33kevmcsStatusnew => closed
2006-05-09 15:33kevmcsNote Added: 0000060
2006-05-09 15:33kevmcsResolutionopen => fixed

Notes
(0000032)
user4   
2006-05-04 06:10   
Reminder sent to: user4, dlaporte, kevmcs

(0000033)
user4   
2006-05-04 06:21   
The 'pfcmd manage vclose' called from release.cgi is not working:

./bin/pfcmd manage vclose 00:0c:29:b0:27:32 2000334
Undefined subroutine &pf::violation::class_view called at /usr/local/pf/lib/pf/violation.pm line 259.


The following diff to /usr/local/pf/lib/pf/violation.pm makes the class_view subroutine available:

39a40
> use pf::class qw(class_view);
(0000035)
user4   
2006-05-04 06:47   
Changing max_enable for violation 2000334 to 2 in conf/violations.conf and re-executing 'manage vclose' generates another error:

./bin/pfcmd manage vclose 00:0c:29:b0:27:32 2000334
Use of uninitialized value in print at ./bin/pfcmd line 131.

The following diff to lib/pf/violation.pm fixed this
271c272
< my $grace = $class_info->{'grace'};
---
> my $grace = $class_info->{'grace_period'};
(0000036)
user4   
2006-05-04 06:50   
I still get the following entry into /var/log/messages:

unmark_node: unable to unmark 00:0c:29:b0:27:32 with 2000334: No chain/target/match by that name
(0000060)
kevmcs   
2006-05-09 15:33   
your diffs seem to work. bug fixed. cvs checked in