Current time: 11-22-2024, 10:39 AM 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
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: Network menagement with user netmask value
Thank you. I`ll add this for RC2 (witch will be next Monday if no more problems).
10-06-2010 07:40 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Nuxwin
Unregistered

 
Post: #3
RE: Network menagement with user netmask value
Hello Daniel ;

I've ticket for this purpose. Please, don't implement this stuff for 1.0.7.
10-06-2010 11:11 AM
Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #4
RE: Network menagement with user netmask value
Ok. I`ll leave this to you Wink
10-06-2010 04:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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