ispCP - Board - Support
Network menagement with user netmask value - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Enhancements (/forum-43.html)
+--- Thread: Network menagement with user netmask value (/thread-11818.html)



Network menagement with user netmask value - klew - 10-05-2010 10:00 PM

This guide describes how to update ispCP 1.0.7 to have possibility of entering user netmask value. As in different network scenarios hard coded /24 netmask value is a pain.

Note that netmask value is NOT validated

1. Change ispcp database (you can use pma or cmd line):

ALTER TABLE ‘server_ips` ADD `ip_netmask` VARCHAR( 15 ) NOT NULL DEFAULT ’255.255.255.255' AFTER `ip_number`;

2. Save 3 files:

  • cp /var/www/ispcp/gui/admin/ip_manage.php /var/www/ispcp/gui/admin/ip_manage.php.bak
  • cp /var/www/ispcp/gui/themes/omega_original/admin/ip_manage.tpl /var/www/ispcp/gui/themes/omega_original/admin/ip_manage.tpl.bak
  • cp /var/www/ispcp/engine/tools/ispcp-net-interfaces-mngr /var/www/ispcp/engine/tools/ispcp-net-interfaces-mngr.bak

3. Copy new versions of files mentioned above from tar archive.
4. Change permission and ownership to proper values.
4. Thats IT. Check it under http://admin.yourdomain.com/admin/ip_manage.php.

Comments and improvements (e.g. netmask value validation code) are welcome!
BR,
Krzysztof


RE: Network menagement with user netmask value - sci2tech - 10-06-2010 07:40 AM

Thank you. I`ll add this for RC2 (witch will be next Monday if no more problems).


RE: Network menagement with user netmask value - Nuxwin - 10-06-2010 11:11 AM

Hello Daniel ;

I've ticket for this purpose. Please, don't implement this stuff for 1.0.7.


RE: Network menagement with user netmask value - sci2tech - 10-06-2010 04:18 PM

Ok. I`ll leave this to you Wink