ispCP - Board - Support
HOW TO block direct ip access to ispcp? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: HOW TO block direct ip access to ispcp? (/thread-13220.html)



HOW TO block direct ip access to ispcp? - nardev - 04-09-2011 05:00 AM

Hello,

i'm new here and new with ispcp.

it seems to be very simple easy and jet powerful tool. And i Love it!

But here is my first problem. How to block direct access when i type IP address of my server?

and allow access only from certain port like cpanel has 2082

so i want to block access and to protect my server if someone try
http://10.50.10.10 but i want to be able to access ispcp at for example http://10.50.10.10:2050

i know that i must be some apache config rule but i don't want to play around too much so that i don't make mess on current configuration.

thank you.


RE: HOW TO block direct ip access to ispcp? - kilburn - 04-14-2011 04:54 PM

First of all, you should understand that simply changing the port provides no real security benefit.

That being said, also keep in mind that if you change the port you will have to use the new port when accessing the panel using a hostname too (i.e: http://admin.mydomain.tld:2082).

Finally, if you still want to do this it is a pretty simple 2-step process:

1. Change the port in the "<VirtualHost" directive of the file /etc/apache2/sites-enabled/00_master.conf.
2. Add the new port to the /etc/apache2/ports.conf file.

Restart apache and the panel should have moved.


RE: HOW TO block direct ip access to ispcp? - nardev - 04-14-2011 05:43 PM

(04-14-2011 04:54 PM)kilburn Wrote:  First of all, you should understand that simply changing the port provides no real security benefit.

That being said, also keep in mind that if you change the port you will have to use the new port when accessing the panel using a hostname too (i.e: http://admin.mydomain.tld:2082).

Finally, if you still want to do this it is a pretty simple 2-step process:

1. Change the port in the "<VirtualHost" directive of the file /etc/apache2/sites-enabled/00_master.conf.
2. Add the new port to the /etc/apache2/ports.conf file.

Restart apache and the panel should have moved.

Well, i realized that first place. But what do you suggest me to do?

What is typical configuration that you do?