Projet

Général

Profil

OperationMutualisationIpv4 » Historique » Version 6

Version 5 (Mehdi Abaakouk, 01/12/2013 20:24) → Version 6/38 (Mehdi Abaakouk, 01/12/2013 20:29)

h1. Projet de mutualisation ipv4 chez tetaneutral:

h2. chiliproject:

h3. config réseau:

dans /etc/network/interfaces, suppresion ipv4, changement ipv6 pour 2a01:6600:8081:ce02::1/64

h3. Reverse proxy http v4 vers le http de chiliproject en v6, sur www.tetaneutral.net

ajout de /etc/apache2/sites-available/chiliproject.tetaneutral.net:

<pre>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName chiliproject.tetaneutral.net
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://chiliproject6.tetaneutral.net/
ProxyPassReverse / http://chiliproject6.tetaneutral.net/
CustomLog /var/log/apache2/chiliproject.tetaneutral.net-access.log combined
</VirtualHost>
</pre>

taper

<pre>
a2enmod proxy_html proxy
a2ensite chiliproject.tetaneutral.net
/etc/init.d/apache2 reload
</pre>

h3. Configuration du relay sur lists

Ajout d'un relay smtp ipv4 vers ipv6 (relay_domain), dans /etc/postfix/main.cf

<pre>
relay_domains = lists.tetaneutral.net, chiliproject.tetaneutral.net
</pre>

Ajout d'un transport pour ce domain /etc/postfix/transport

<pre>
chiliproject.tetaneutral.net smtp:[chiliproject6.tetaneutral.net]:25
</pre>

Reload de postfix

<pre>
postmap /etc/postfix/transport ; /etc/init.d/postfix reload
</pre>

h3. utiliser lists comme relay smtp pour chiliproject:


sur chiliproject, dans /etc/postfix/main.cf

<pre>
relayhost = smtp.tetaneutral.net
</pre>

h3. relay git(ssh)

sur www, ajouter dans le /etc/rc.local

nohup socat TCP4-LISTEN:22,fork,su=nobody TCP6:[chiliproject6.tetaneutral.net]:22 &

h3. mise à jour du DNS:

L'enregistrement A pointe vers la machine qui sert de relay (www, lists)
et l'enregistrement AAAA pointe vers la machine chiliproject

<pre>
chiliproject IN A 91.224.149.206 ; www
chiliproject IN AAAA 2a01:6600:8081:ce02::1
chiliproject4 IN A 91.224.149.206 ; www
chiliproject6 IN AAAA 2a01:6600:8081:ce02::1

chiliproject-mx IN A 91.224.149.207 ; lists
chiliproject-mx IN AAAA 2a01:6600:8081:ce02::1 ; lists

chiliproject IN MX 1 chiliproject-mx.tetaneutral.net.
</pre>