PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001429PacketFenceconfigurationpublic2012-04-20 10:192012-10-19 10:12
Reporterobilodeau 
Assigned To 
PrioritynormalSeverityminorReproducibilityunable to reproduce
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.1.0 
Target Version3.1.0Fixed in Version3.1.0 
Summary0001429: pfcmd interfaceconfig with enforcement=... fails
DescriptionReported on the mailing list:

I exec :

./pfcmd interfaceconfig edit eth3 ip="192.168.1.180", mask="255.255.255.0", type="internal", 
enforcement="inline", gateway="192.168.1.1"

ERROR!!

LOG:

Apr 19 15:23:46 pfcmd(8179) DEBUG: starting to parse 'interfaceconfig edit eth3 ip="192.168.1.180", 
mask="255.255.255.0", type="internal", enforcement="inline", gateway="192.168.1.1"' 
(pf::pfcmd::parseCommandLine)

Apr 19 15:23:46 pfcmd(8179) DEBUG: main cmd argument is interfaceconfig (pf::pfcmd::parseCommandLine)


Apr 19 15:23:46 pfcmd(8179) DEBUG: 1 main cmd argument is interfaceconfig (pf::pfcmd::parseCommandLine)


Apr 19 15:23:46 pfcmd(8179) DEBUG: 3 main cmd argument is interfaceconfig (pf::pfcmd::parseCommandLine)


Apr 19 15:23:46 pfcmd(8179) DEBUG: 1 parse With Grammar is 1 (pf::pfcmd::parseWithGrammar)

Apr 19 15:23:47 pfcmd(8179) DEBUG: 2 parse With Grammar is 0 (pf::pfcmd::parseWithGrammar)

 

And I exec:

./pfcmd interfaceconfig edit eth3 ip="192.168.1.180", mask="255.255.255.0", type="internal",  
gateway="192.168.1.1"

Success!!

 

Why ? but I should exec the first command and success .
TagsNo tags attached.
fixed in git revision
fixed in mtn revision
Attached Files

- Relationships

-  Notes
(0002674)
obilodeau (reporter)
2012-04-20 12:43

On version 3.3.0 I was unable to reproduce the issue. On my environment I put in:

bin/pfcmd interfaceconfig edit eth1.666 ip="192.168.1.180", mask="255.255.255.0", type="internal", enforcement="inline", gateway="192.168.1.1"

and it worked and properly updated the interface in conf/pf.conf.

According to NEWS this issue was fixed in 3.1.0 and you say that you run 3.1.0?

Can you follow the steps to manually recompile your grammar file? run `perldoc /usr/local/pf/lib/pf/pfcmd/pfcmd.pm` and perform the steps mentioned under
"MANUAL PRECOMPILE".
(0002688)
obilodeau (reporter)
2012-04-26 09:04

no feedback, closing

- Issue History
Date Modified Username Field Change
2012-04-20 10:19 obilodeau New Issue
2012-04-20 10:19 obilodeau Status new => assigned
2012-04-20 10:19 obilodeau Assigned To => obilodeau
2012-04-20 12:39 obilodeau Product Version => 3.1.0
2012-04-20 12:43 obilodeau Note Added: 0002674
2012-04-20 12:43 obilodeau Reproducibility have not tried => unable to reproduce
2012-04-20 12:43 obilodeau Status assigned => feedback
2012-04-26 09:04 obilodeau Note Added: 0002688
2012-04-26 09:04 obilodeau Status feedback => closed
2012-04-26 09:04 obilodeau Resolution open => fixed
2012-04-26 09:04 obilodeau Fixed in Version => 3.1.0
2012-10-19 10:12 fgaudreault Assigned To obilodeau =>
2012-10-19 10:12 fgaudreault Target Version +1 => 3.1.0


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker