PAT list limited to 100 entries (Virtual Server)

Home Page Forums Network Management Signal a BUG PAT list limited to 100 entries (Virtual Server)

This topic contains 5 replies, has 3 voices, and was last updated by  tomas.paier 1 year, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #44488

    tomas.paier
    Participant

    Hello,
    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
    total 312
    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
    ... (omitted)
    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
    root@zeroshell PAT>

    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!

    Tomas

    #54023

    tomas.paier
    Participant

    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)
    Tomas

    #54024

    Vespa
    Participant

    I agree with the messages above. I have the same problem.

    #63872

    tomas.paier
    Participant

    Is there any news on this topic? On the last 3.8.2 the bug is still there….

    #63873

    fulvio
    Keymaster

    I’ll increase the limit for the next release.
    Regards
    Fulvio

    #63877

    tomas.paier
    Participant

    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.

    Thank you!
    Tomas

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.