Prev Previous Post   Next Post Next
  #1  
Old 26th February 2013, 17:26
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 187
Thanks: 7
Thanked 47 Times in 41 Posts
Default Mirror - rewrite IP

hi...

if you want to put on a mirror the IPv4 and / or IPv6 corresponding to the respective server, you may find my patch for ISPConfig 3.0.5 usefull.

How it works
Under Serverconfig is a new field "IPv6 Prefix" available. Here the IPv6 prefix of the server is entered (for a 64er subnet eg 2a01:4f8:150:2262:: ). When writing to a mirror of the vhost, then IPv6 is replaced in part by the subnet. Suppose the mirror has the subnet 2a01:4f8:150:aaaa::, then on the mirror the (master) IPv6 2a01:4f8:150:2262::1 will be changed to 2a01:4f8:150:aaaa::1.

As long under Serverconfig / Web option "Rewrite IPv6 on Mirror" is not selected, there is no rewrite, and the IPv6 is written identically to the master. So you can decide per mirror whether IPv6 is to be re-written or not (for example, failover-IP).

A new created IPv6 Is matched against the prefix, and must match. The same applies when you create a prefix - this must match the shortest IPv6 address.

For IPv4, there is no integration into the interface. It works only manually via /usr/local/ispconfig/server/lib/config.inc.local.php.

The patch is available here.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.