www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

PAT list limited to 100 entries (Virtual Server)

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Signal a BUG
View previous topic :: View next topic  
Author Message
tomas.paier



Joined: 25 Jan 2016
Posts: 2

PostPosted: Mon Jan 25, 2016 10:28 am    Post subject: PAT list limited to 100 entries (Virtual Server) Reply with quote

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:
Code:

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
Back to top
View user's profile Send private message
tomas.paier



Joined: 25 Jan 2016
Posts: 2

PostPosted: Mon Jan 25, 2016 10:56 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Vespa



Joined: 17 Oct 2016
Posts: 4

PostPosted: Mon Oct 17, 2016 12:37 pm    Post subject: Reply with quote

I agree with the messages above. I have the same problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Signal a BUG All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group