SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0003557: setvpnfw returns python errors - MantisBT Endian Bugtracker
Endian Issue Tracker





Please see now our new Bugtracker system: JIRA








View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003557Endian FirewallOpenVPN Client and Serverpublic2011-03-24 15:262011-03-30 07:20
Reporterluca-endian 
Assigned Topeter-endian 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version2.4.1 
Target VersionFixed in Version 
Summary0003557: setvpnfw returns python errors
DescriptionWhether you have a rule with a vpn username this error is shown:

2011-03-21 07:33:18,548 - setvpnfw.py[19647] - DEBUG - Traceback (most recent call last):
  File "/usr/local/bin/setvpnfw.py", line 394, in substIter
    value = cb(i, rule)
  File "/usr/local/bin/setvpnfw.py", line 375, in substOpenvpnUser
    nets = getOpenvpnIPByUser(username)
  File "/usr/local/bin/setvpnfw.py", line 186, in getOpenvpnIPByUser
    return _openvpnIpsCache[user]
KeyError: 'vpnuser'
Tagspurple
Attached Files

- Relationships

-  Notes
(0006011)
lorenzo-endian (manager)
2011-03-25 10:15

Hey Luca!

do you upgrade this machine from a 2.3?

Thanks

Lo
(0006037)
lorenzo-endian (manager)
2011-03-29 17:15

Hey Luca!

I confirm this issue!

To reproduce it:
- create a vpn user
- create a vpn firewall rule with that user as source of the rule
- setvpnfw.py --debug --force

Thanks a lot!

Lo

- Issue History
Date Modified Username Field Change
2011-03-24 15:26 luca-endian New Issue
2011-03-24 15:27 luca-endian Tag Attached: purple
2011-03-24 15:35 ra-endian Assigned To => lorenzo-endian
2011-03-25 10:15 lorenzo-endian Note Added: 0006011
2011-03-25 10:15 lorenzo-endian Status new => feedback
2011-03-29 17:15 lorenzo-endian Note Added: 0006037
2011-03-29 17:15 lorenzo-endian Status feedback => confirmed
2011-03-30 07:20 lorenzo-endian Assigned To lorenzo-endian => peter-endian

Copyright © 2005-2008 Endian, SRL. All rights reserved.


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker