How to disable and enable the admin console (admin-listener, port 4848) from the command line

I would like to control when and where the admin service is available.

How to do one of the following (if possible)

  • Enable admin console only from localhost (I know about disabling-secure-admin, but still I don’t want anyone to see the console login page when they added 4848 at the end) I will use the SSH tunnel to connect

  • Or, to be able to use a certificate so that only certified customers can even see the console

  • Or, call on demand to start / stop the administrator service when necessary, and not open it to the outside world (for example, start stop __asadmin virtual server)

Is any of the above possible?

+5
source share
2 answers

Ok i found it using guessing

Scenario # 1 Solution

  • Make sure you have an SSH tunnel on port 4848.
  • Go to Configuration → server-config → Network Config → Network Listeners → admin-listener
  • On the General tab , in the Address: field , replace 0.0.0.0with127.0.0.1
  • Reboot server

Scenario 3 solution

I did not find a command line method to enable / disable virtual servers, network listeners or protocols, but editing domain.xml shows that it is all there, just comment and restart.

+3
source

All Articles