Home > Blogosphere > Mengaktifkan IPv6 pada salah satu Virtual Host CPanel

Mengaktifkan IPv6 pada salah satu Virtual Host CPanel


Tujuan dari note ini adalah  bagaimana caranya agar IPv6 Cpanel yang terinstall pada Centos dapat berjalan, selanjutnya agar Virtual Host yang dikelola oleh Cpanel juga dapat diakses webnya melalui jaringan IPv6.

  • Syarat utama anda sudah memiliki alokasi IPv6 baik dedicated/dualstack , tunneling.
  • Pastikan bahwa record AAAA sudah ditambahkan pada DNS Server anda.
  • eth0 Link encap:Ethernet HWaddr F2:CB:A6:DF:86:6C
     inet addr:103.3.46.5 Bcast:103.3.46.255 Mask:255.255.255.0
     inet6 addr: 2001:df0:230:9::/128 Scope:Global
     inet6 addr: fe80::f0cb:a6ff:fedf:866c/64 Scope:Link
     inet6 addr: 2001:df0:230:9::7/64 Scope:Global
     UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
     RX packets:17230026 errors:0 dropped:0 overruns:0 frame:0
     TX packets:18842347 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 txqueuelen:1000
     RX bytes:4065688152 (3.7 GiB) TX bytes:18337777713 (17.0 GiB)
  • root@hosting [~]# traceroute6 www.kame.net
    traceroute to www.kame.net (2001:200:dff:fff1:216:3eff:feb1:44d7), 30 hops max, 80 byte packets
     1 GERBANG-6-KELUAR-AS56237-NOC-Cyber-MK670-AP.unila.ac.id (2001:df0:230:9::1) 12.857 ms 12.787 ms 11.406 ms
     2 2400:4a00:a000:300::1 (2400:4a00:a000:300::1) 37.287 ms 37.303 ms 37.309 ms
     3 2400:4a00:1d00::1:25 (2400:4a00:1d00::1:25) 50.989 ms 52.375 ms 52.669 ms
     4 snge-b1-link.telia.net (2001:2000:3080:961::1) 86.042 ms 86.058 ms 85.853 ms
     5 las-bb1-v6.telia.net (2001:2000:3018:2f::1) 259.833 ms 256.579 ms 256.592 ms
     6 ntt-ic-143926-las-bb1.c.telia.net (2001:2000:3080:362::2) 247.189 ms 245.040 ms ntt-ic-151170-las-bb1.c.telia.net (2001:2000:3080:3a2::2) 244.950 ms
     7 ae-8.r20.lsanca03.us.bb.gin.ntt.net (2001:418:0:2000::22d) 247.316 ms ae-6.r21.lsanca03.us.bb.gin.ntt.net (2001:418:0:2000::10d) 244.766 ms *
     8 ae-7.r20.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::2ce) 300.563 ms * 254.249 ms
     9 ae-19.r25.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::29d) 241.705 ms * ae-19.r24.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::299) 235.300 ms
    10 ae-1.r01.tokyjp01.jp.bb.gin.ntt.net (2001:218:0:2000::202) 246.640 ms 246.853 ms 237.426 ms
    11 ge-0-7-0-18.r01.tokyjp01.jp.ce.gin.ntt.net (2001:218:2000:5000::82) 410.375 ms 410.374 ms 410.116 ms
    12 ve44.foundry6.otemachi.wide.ad.jp (2001:200:0:10::141) 369.848 ms 354.840 ms 345.964 ms
    13 2001:200:dff:fff1:216:3eff:feb1:44d7 (2001:200:dff:fff1:216:3eff:feb1:44d7) 345.331 ms 358.349 ms 340.738 ms
    root@hosting [~]#
  • Contoh ditempat saya resolv DNS yang sudah aktif
  • C:\Users\GigihFN>nslookup www.unila.ac.id
    
    Name: www.unila.ac.id
    Addresses: 2001:df0:230:9::7
               103.3.46.5
    
    C:\Users\GigihFN>nslookup 2001:df0:230:9::7
    Name: www.unila.ac.id
    Address: 2001:df0:230:9::7
  • Edit file master config Apache Cpanel  /etc/httpd/conf/httpd.conf , lalu tambahkan listen [::]:80 dibawah Listen IPv4 milik  anda

sebelum diubah /etc/httpd/conf/httpd.conf

PidFile logs/httpd.pid
LockFile logs/accept.lock
# Defined in /var/cpanel/cpanel.config: apache_port
Listen 0.0.0.0:80
User nobody
Group nobody
ubah menjadi
PidFile logs/httpd.pid
LockFile logs/accept.lock
# Defined in /var/cpanel/cpanel.config: apache_port
Listen 0.0.0.0:80
Listen [::]:80
User nobody
Group nobody
  • Selanjutnya rubah konfigurasu sub domain/domain yang ingin ditambahkan IPv6 (contoh http://www.unila.ac.id  dengan IPv6 2001:df0:230:9::7 dengan IPv4 103.3.46.1  ), buka file httpd.conf, ubah bagian :
NameVirtualHost [2001:df0:230:9::7]:80
<VirtualHost 103.3.46.5:80 [2001:df0:230:9::7]:80>
 ServerName unila.ac.id
 ServerAlias ipv6.unila.ac.id www.unila.ac.id
 DocumentRoot /xxx/yyy/www/
 ServerAdmin webmaster@unila.ac.id
 UseCanonicalName Off
 CustomLog /xxx/yyy/unila.ac.id combined
 CustomLog /xxx/yyy/unila.ac.id-bytes_log "%{%s}t %I .\n%{%s}t %O ."
Categories: Blogosphere
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: