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
MantisBT - Endian Firewall
View Issue Details
0003557Endian FirewallOpenVPN Client and Serverpublic2011-03-24 15:262011-03-30 07:20
luca-endian 
peter-endian 
normalminoralways
confirmedopen 
2.4.1 
 
0003557: setvpnfw returns python errors
Whether 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'
purple
Issue History
2011-03-24 15:26luca-endianNew Issue
2011-03-24 15:27luca-endianTag Attached: purple
2011-03-24 15:35ra-endianAssigned To => lorenzo-endian
2011-03-25 10:15lorenzo-endianNote Added: 0006011
2011-03-25 10:15lorenzo-endianStatusnew => feedback
2011-03-29 17:15lorenzo-endianNote Added: 0006037
2011-03-29 17:15lorenzo-endianStatusfeedback => confirmed
2011-03-30 07:20lorenzo-endianAssigned Tolorenzo-endian => peter-endian

Notes
(0006011)
lorenzo-endian   
2011-03-25 10:15   
Hey Luca!

do you upgrade this machine from a 2.3?

Thanks

Lo
(0006037)
lorenzo-endian   
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