Difference between revisions of "IPv6: Orek-orekan"
Jump to navigation
Jump to search
Line 59: | Line 59: | ||
</VirtualHost> | </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 |
Revision as of 14:19, 17 June 2013
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 pada 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