Deblock page on port 2222

jordivn

Verified User
Joined
Nov 4, 2016
Messages
62
I was wondering if anyone could give my an direction.

I would like an possibility to let guests deblock an ip from the ip_blacklist file in /usr/local/directadmin/data/admin created with the BFM/CFS.
Ofcourse this must be limited and secured with recapta.
I would like to publish an page on port 2222 which call an .sh file on the server. The operations which the .sh script must do would be an peace of cake. But i have no glue where to put the file for publishing.

Thanks in advange
 
Hello,

Directadmin does not allow guest access, it requires users to go through an authentication.
You need to write your own plugin:

- How do I create a plugin?
https://help.directadmin.com/item.php?id=290

I'd suggest that you start with reading existing plugin from CSF/LFD in directadmin/plugins/csf/. You will need to use a SUID-wrapper in order to run commands with root's permissions, example can be found here:

- I need to create an SUID wrapper to let my plugin run as some other User
https://help.directadmin.com/item.php?id=510



p.s. some time ago I wrote a plugin for my customer which allowes resellers to unlock IPs. It was a paid request, so I can't share it here. I write this only for the reason to assure you that I suggest a working direction.
 
Tell me, on the reliability of the results on this port will affect the use of a proxy server or not? That is, if I have not real ip, will all be shown right?
 
I'm not sure that I understand you fully and correct, nevertheless I will answer to that part which seems to me to be clear.

If you use a proxy to connect to Internet... you might or not face issues with connecting to not-standart ports and port 2222 might be inaccessible via your proxy. If you ask this of course. If you ask something else please clarify what is it exactly.
 
Back
Top