Current time: 05-21-2024, 03:47 PM Hello There, Guest! (LoginRegister)


Post Reply 
Network menagement with user netmask value
Author Message
klew Offline


Posts: 2
Joined: Jul 2010
Reputation: 0
Post: #1
Network menagement with user netmask value
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


Attached File(s)
.gz  ispCP1.0.7_net_mngr.tar.gz (Size: 5.58 KB / Downloads: 4)
10-05-2010 10:00 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Network menagement with user netmask value - klew - 10-05-2010 10:00 PM
RE: Network menagement with user netmask value - Nuxwin - 10-06-2010, 11:11 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)