IPv6: Orek-orekan

From OnnoWiki
Jump to navigation Jump to search

Mengaktifkan forward IPv6

Untuk mengaktifkan forward sebagai mesin gateway, hilangkan tanda # pada file sysctl.conf. file tersebut berada pada file /etc/.

 # Uncomment the next line to enable packet forwarding for IPv6
 #  Enabling this option disables Stateless Address Autoconfiguration
 #  based on Router Advertisements for this host
 net.ipv6.conf.all.forwarding=1

Apache2

Pada Apache v2 untuk konfigurasi file port.conf yang digunakan terdapat pada direktori /etc/apache2. berikut contoh konfigurasi:

  • Konfigurasi file port.conf untuk IPv6.
 # If you just change the port or add more ports here, you will likely also
 # have to change the VirtualHost statement in
 # /etc/apache2/sites-enabled/000-default
 # This is also true if you have upgraded from before 2.2.9-3 (i.e. from
 # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
 # README.Debian.gz
 Listen [2001:470:36:8b5::1]:80
 NameVirtualHost [2001:470:36:8b5::1]:80


  • Konfigurasi file port.conf untuk dual stack (IPv4 dan IPv6).
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

Listen [2001:470:36:8b5::1]:80
NameVirtualHost [2001:470:36:8b5::1]:80

Listen 192.168.0.1:80
NameVirtualHost 192.168.0.1:80


Pada Apache2, konfigurasi standar (file default)untuk dapat menampilkan halaman situs internet ditempatkan pada directory /etc/apache2/site-available/. Berikut contoh konfigurasi:

  • konfigurasi file default untuk IPv6
<VirtualHost [2001:470:36:8b5::1]:80>

       ServerAdmin webmaster@localhost
       DocumentRoot /var/www
       ...
       ...
</VirtualHost>


  • konfigurasi file default untuk Dual Stack (IPv4 dan IPv6)
<VirtualHost 192.168.0.1:80[2001:470:36:8b5::1]:80>

       ServerAdmin webmaster@localhost
       DocumentRoot /var/www
       ...
       ...
</VirtualHost>


SSH Server

  • Dalam experiment ini saya menambahkan ListenAddress IPv6 ke dalam file sshd_config, file sshd_config berada didalam directory /etc/ssh/, berikut contoh konfigurasi default SSH Server:
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to

ListenAddress 2001:470:36:8b5::1
ListenAddress 192.168.0.1

DNS Server

Menambahkan Protocol IPv6

Tambahkan baris protocol IPv6 kedalam file /etc/protocols, untuk mendukung Aplikasi bind. Berikut baris yang perlu ditambahkan:

ipv6       41 IPv6       # IPv6
ipv6-route 43 IPv6-Route # Routing Header for IPv6
ipv6-frag  44 IPv6-Frag  # Fragment Header for IPv6
ipv6-crypt 50 IPv6-Crypt # Encryption Header for IPv6
ipv6-auth  51 IPv6-Auth  # Authentication Header for IPv6
ipv6-icmp  58 IPv6-ICMP  icmpv6 icmp6   # ICMP for IPv6
ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6
ipv6-opts  60 IPv6-Opts  # Destination Options for IPv6

Sumber