ClearFoundation Tracker - ClearOS
View Issue Details
0000804ClearOSapp-port-forwarding - Port Forwardingpublic2012-10-27 08:022013-02-05 12:18
plfinch 
 
normalminoralways
closedfixed 
6.3.0 Updates 
6.3.0 Updates 
0000804: Cannot enable port range forward after disable
When created a port range forwarding rule in the webgui it is enabled by default. If it is later disabled in the webgui and can no longer be enabled again. Selecting "Enable" on the rule results in the rules displaying again with the rule still disabled and still showing the Enable button.
To reproduce create a port range forwarding rule such as TCP ports 1001-1005 forwarding to IP 192.168.10.100 (assuming 192.168.10.X is LAN, ClearOS Gateway configuration with 1 WAN and 1 LAN interface). Once created the rule is enabled by default and will show the Disable button in the webgui. Selecting Disable works, the rule is disabled, and the Enable button is displayed. Now select Enable to re-enable the rule and when the webgui refreshes the rule will still be disabled and will still be showing the Enable button.
--1--

Following errors are noted in /var/log/system and may be related:

Oct 18 12:51:01 gateway engine: error: PHP deprecated: /usr/clearos/apps/firewall/libraries/Firewall.php (645): Function ereg() is deprecated

I am unsure if error/deprecated means the ereg call actually fails or ereg still works but will be omitted in future version.

--2--

Two users have reported the issue in the forum:

http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,7/func,view/id,47075/ [^]

http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,7/func,view/id,44920/ [^]
No tags attached.
Issue History
2012-10-27 08:02plfinchNew Issue
2012-10-27 11:36plfinchNote Added: 0000576
2012-10-29 09:20user2Assigned To => user2
2012-10-29 09:20user2Statusnew => acknowledged
2012-11-10 08:19plfinchNote Added: 0000577
2012-11-11 16:07user2Note Added: 0000578
2012-11-11 16:07user2Statusacknowledged => resolved
2012-11-11 16:07user2Fixed in Version => 6.3.0 Updates
2012-11-11 16:07user2Resolutionopen => fixed
2012-11-13 08:01user2Note Added: 0000583
2013-02-05 12:16user2Checkin
2013-02-05 12:16user2Note Added: 0000692
2013-02-05 12:18user2Note Added: 0000693
2013-02-05 12:18user2Categoryfirewall => app-port-forwarding - Port Forwarding
2013-02-05 12:18user2SummaryCannot Enable Port Range Forward After Disable => Cannot enable port range forward after disable
2013-02-05 12:18user2Statusresolved => closed
2013-02-05 12:18user2Assigned Touser2 =>

Notes
(0000576)
plfinch   
2012-10-27 11:36   
I am experiencing and able to reproduce the problem on 64-bit ClearOS. I do not have a 32-bit system avaiable to test.
(0000577)
plfinch   
2012-11-10 08:19   
If you are unable to reproduce this problem please let me know so we can figure out what is unique with my situation. My ClearOS install is pretty pure except for tweaks to force disable of ipv6.
(0000578)
user2   
2012-11-11 16:07   
SVN revision 4901
(0000583)
user2   
2012-11-13 08:01   
The fix is now in the updates-testing repo:

yum --enablerepo=clearos-updates-testing upgrade app-port-forwarding
(0000692)
user2   
2013-02-05 12:16   
Source Code Changelog
---------------------------------------------------
- Fixed enable port range [tracker 0000804][tracker 0000804]

File Changes
---------------------------------------------------
Details: http://code.clearfoundation.com/svn/revision.php?repname=ClearOS&rev=4901 [^]
U webconfig/apps/port_forwarding/trunk/controllers/port_forwarding.php
(0000693)
user2   
2013-02-05 12:18   
Just doing some bug database cleanup and adding SVN details.