OperationMutualisationIpv4 » Historique » Version 5
Version 4 (Mehdi Abaakouk, 01/12/2013 20:15) → Version 5/38 (Mehdi Abaakouk, 01/12/2013 20:24)
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/ http://[2a01:6600:8081:ce02::1]/
ProxyPassReverse / http://chiliproject6.tetaneutral.net/ http://[2a01:6600:8081:ce02::1]/
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 smtp:[2a01:6600:8081:ce02::1]:25
</pre>
** Reload de postfix
<pre>
postmap /etc/postfix/transport ; /etc/init.d/postfix reload
</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 &
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/ http://[2a01:6600:8081:ce02::1]/
ProxyPassReverse / http://chiliproject6.tetaneutral.net/ http://[2a01:6600:8081:ce02::1]/
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 smtp:[2a01:6600:8081:ce02::1]:25
</pre>
** Reload de postfix
<pre>
postmap /etc/postfix/transport ; /etc/init.d/postfix reload
</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 &