#1  
Old 8th March 2011, 01:55
clearminds clearminds is offline
Junior Member
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default IPv6 support

Hia,

Have anyone come anywhere with the IPv6 support a bit longer?

Or should i start coding along on my own plugin to handle it?
My basic idea is to do the following.

Code:
$result = mysql_query("SELECT domain_id as did, sys_groupid as cid FROM web_domain");
while ($row = mysql_fetch_array($result)) {
    exec("/sbin/ip addr add dev eth0 your:net:goes:here:c".$row["cid"]."::".$row["did"]);
}
The basic idea is to just put up the IPs that the sites uses and automatically add the needed file on apache for the Vhost part - for the domain that it is all about.

So really just copy the config file that already have been created.
Change the IP to IPv6 address, change logfile to a -ipv6 logfile to trace special IPv6 use.

The DNS part should be handled by your self but it could be added to this plugin too. But it is hard for that one to know for what domains to create AAAA records, could add it for the basic one (that the domain is created for) and then you could just copy that one to the other once that you self want.

My question is really, can I hook a plugin into running each time the server.php runs.
And in that case how can I check if a domain have been modified so I may have to update the IPv6 address also.

So to make it short.
Every site should get an autogenerated IPv6 address. based on ClientID and DomainID.

Best Regards
Daniel
Reply With Quote
Sponsored Links
  #2  
Old 8th March 2011, 10:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,041
Thanks: 841
Thanked 5,660 Times in 4,467 Posts
Default

IPv6 support will be released as part of ISPConfig 3.0.4

Quote:
My question is really, can I hook a plugin into running each time the server.php runs.
Yes, tahst the way the plugins work. Every function in the ispconfig server is implemented as plugin. See e.g. the apache plugin as example.

Quote:
And in that case how can I check if a domain have been modified so I may have to update the IPv6 address also.
The plugin is pnly called in case that something has been modified and the plugin gets the modified data as array. So never access the database directly from a plugin as this might break the transaction mechanism and so mess up your server setup.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 8th March 2011, 10:30
clearminds clearminds is offline
Junior Member
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, so it's not that far off then.

Question is if it will do what i am after, add one unique ipv6 address auto to each vhost.

The line i shows you there is from vootup to put up all already configured vhosts ips.
Reply With Quote
  #4  
Old 8th March 2011, 10:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,041
Thanks: 841
Thanked 5,660 Times in 4,467 Posts
Default

Quote:
Question is if it will do what i am after, add one unique ipv6 address auto to each vhost.
We planned to add the ability to configure the IPv6 address trogh the interface an dnot to assign it automatically.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 8th March 2011, 21:06
clearminds clearminds is offline
Junior Member
 
Join Date: Mar 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, cool, then i will try and code my own plugin that handles the auto adding of ipv6 instead.
Is the base code for ipv6 ghosts in svn yet so i can see how it is planned to be handled?

My plan is for ipbasednvhosts is to add ipv4 and ipv6 to the virtualhost tag in the apache config.

Is this the same way you are planning to do it? Or will you create separate files for ipv6 and ipv4?

Would be nice to be as compatible with stock function as possible.

Best regards
Daniel
Reply With Quote
  #6  
Old 8th March 2011, 21:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,041
Thanks: 841
Thanked 5,660 Times in 4,467 Posts
 
Default

Quote:
Is the base code for ipv6 ghosts in svn yet so i can see how it is planned to be handled?
Not yet. WE will start with the new ipv6 code after the 3.0.3.3 release.

Quote:
Is this the same way you are planning to do it? Or will you create separate files for ipv6 and ipv4?
We will use one file. But the way we write the file will be changed, instead of having a ssl section and non ssl sectin plus the ipv6 sections, we will use the loop function of the template system to simplify the creation of the file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
server Installation Configuration deco5003 Installation/Configuration 12 5th August 2009 13:00
Installation -- pcre_exec.c:403: internal compiler error: Segmentation fault zerman Installation/Configuration 2 24th September 2008 00:58
Update php shajazzi Server Operation 6 6th April 2008 19:20
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! micko_escalade Installation/Configuration 35 30th March 2007 12:31
ISPConfig Failure on SuSe 9.3 gimhan90 Installation/Configuration 13 2nd February 2006 11:29


All times are GMT +2. The time now is 22:46.


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