January 25, 2016 at 10:28 am #44488
I’ve found an important bug on the Virtual Server page:
when you enter 100 entries, every tentative of addition of any new entry to the list results in OVERWRITING of the last (100th) entry (placed erroneously near the top of the list). Even when you try to delete any (but last) of the previous entries does NOT help.
My analyzing results in this:
root@zeroshell ~> cd /Database/var/register/system/net/router/PAT/
root@zeroshell PAT> ll
drwxr-xr-x 2 root root 4096 Aug 9 2013 05
drwxr-xr-x 2 root root 4096 Aug 9 2013 06
drwxr-xr-x 2 root root 4096 Aug 9 2013 07
drwxr-xr-x 2 root root 4096 Jan 25 09:43 100
drwxr-xr-x 2 root root 4096 Sep 13 2013 11
drwxr-xr-x 2 root root 4096 Sep 13 2013 12
drwxr-xr-x 2 root root 4096 Sep 23 2013 17
drwxr-xr-x 2 root root 4096 Sep 26 2013 18
drwxr-xr-x 2 root root 4096 Sep 26 2013 19
drwxr-xr-x 2 root root 4096 Oct 3 2013 20
drwxr-xr-x 2 root root 4096 Oct 6 2013 21
drwxr-xr-x 2 root root 4096 Dec 2 17:13 97
drwxr-xr-x 2 root root 4096 Dec 2 17:13 98
drwxr-xr-x 2 root root 4096 Dec 11 18:34 99
It seems every entry has its own directory under /Database/var/register/system/net/router/PAT/ . Ok.
However, they are ORDERED by NAME — the first 99 are a two-character names (01, 02 etc.), but once reached 100 (see the 4th entry) , there is no way to enter any new.
The only way (hack) I’ve found was to rename the last entries to names not-more-used (the entries that was deleted in the past) like:
mv 99 01
mv 98 02
etc. so freeing these places for the new entries.
It is very important to understand that this issue will be present also if you have entered (in the past) many entries, deleted many of then in the meantime, at some point you reach the 100th entry and then… no more possibility!
TomasJanuary 25, 2016 at 10:56 am #54023
Btw, I think it will be very useful to make some improvement to the Virtual Server page:
1) add an (optional) Description field – to remember what job that entry was intended to do (I have many entries, sometimes to expose temporary devices to internet, and after some time it’s very hard to remember WHAT server is on WHAT IP. Yes, I’ ve obviously a list of internal IP, but however many of my devices use strange ports and a simple description should help very much)
2) a possibility to ORDER that list (or maybe also to filter the list) by any column — just to find what a specific port forwards to etc.
If someone points me to the fileon the Zeroshel filesystem that manages this page I will try do these improvements by myself (and obviously to share these improvements to all)
TomasOctober 17, 2016 at 12:37 pm #54024
I agree with the messages above. I have the same problem.April 10, 2018 at 6:41 pm #63872
Is there any news on this topic? On the last 3.8.2 the bug is still there….April 10, 2018 at 8:13 pm #63873
I’ll increase the limit for the next release.
FulvioApril 10, 2018 at 8:55 pm #63877
Thank you, it will surely help, Fulvio.
However, it should be better to “reorder” all these numbers (so that 05 80 95 become 01 02 03) every time some insertion in deleted, in order to maintain the list over the years (in some time in the future we will reach any limit, as the numbers are everytime higher and higher…). And even better should be to reorder them in alphabetic order (based i.e. on destination IP), to have the list in order, or even better to add the “Name” to every insertion and then order by this name — now, when there are more then 70 lines (created over the years thus with no specific order), it is something confusing.
The PortForwarding feature is likely the most used part of Zeroshell in many development offices where the requests are changing rapidly.
You must be logged in to reply to this topic.