Konfigurasi IP, DNS, WEB, Mail, File Server, FTP, Dan Dhcp Server
IP : 192.168.10.1
Netmask : 255.255.255.0,
DNS: 192.168.10.1
Adapter 1 : eth0
System Operasi: Linux Debian 5 or Debian 6 sama saja
#IP Address
- nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
- /etc/init.d/networking restart
#DNS Server
- apt-get install bind9
- nano /etc/bind/named.conf
di bagian paling bawah diata Include tambahkan:
zone "cahya.com" {
type master;
file "/etc/bind/db.cahya";
};
- cd /etc/bind
- cp db.127 db.cahya
- nano db.cahya
ganti localhost dengan cahya.com dan PTR denga A lalu tambahkan yang belum ada di bawah ini
@ IN NS cahya.com
www IN A 192.168.10.1
mail IN A 192.168.10.1
- cp db.andy db.192
- nano /etc/resolv.conf
search cahya.com
nameserver 192.168.10.1
- nano /etc/hosts
127.0.0.1 localhost
192.168.10.1 debian.cahya.com
- /etc/init.d/bind9 restart
* Cek menggunakan : "nslookup cahya.com"
# Webserver
- apt-get install apache2 mysql-server phpmyadmin php5 links
- nano /etc/apache2/sites-available/default
Tambahkan "ServerName cahya.com" di tengah :
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
Tambahkan paling bawah :
<VirtualHost *:80>
ServerName mail.cahya.com
DocumentRoot /var/www/mail
</VirtualHost>
- cd /var/www
- nano index.html (edit HTML)
- mkdir mail
- nano mail/index.html (edit HTML)
- /etc/init.d/apache2 restart
- cd /
- links cahya.com
- links mail.cahya.com
- mysql -u root -p(enter)
password:masukan password(membuat Database)
- /etc/init.d/apache2 restart
utunk melakukan konfiguarsi pembuatan koneksi web ke mysql menggunakan php
* Cek di Client : Buka Web Browser -> Ketikkan di address bar "cahya.com/phpmyadmin" -> Masukan user yang sudah di buat tadi beserta isikan passwordnya
#MailSever POP3
- apt-get install squirrelmail postfix courier-imap courier-pop -> No -> Ok -> Internet Site -> cahya.com
- nano /etc/apache2/apache2.conf
Include /etc/squirrelmail/apache.conf
- nano /etc/squirrelmail/apache.conf
Cari :
#<VirtualHost 1.2.3.4>
# DocumentRoot /usr/share/squirrelmail
# ServerName webmail.example.com
#</VirtualHost>
Ubah menjadi :
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.cahya.com
</VirtualHost>
- nano /etc/apache2/sites-available/default
Ubah paling bawah :
<VirtualHost *:80>
ServerName mail.cahya.com
DocumentRoot /usr/share/squirrelmail
</VirtualHost>
- nano /etc/postfix/main.cf
Tambah "192.168.10.0/24" di akhir "network = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::2]/128"
Tambah "#" di awal "mailbox_command = procmail -a "$EXTENSION""
inet_protocols = all
home_mailbox = Maildir/
- maildirmake /etc/skel/Maildir
- cd /etc/skel/Maildir/
- squirrelmail-configure
D -> courier -> S -> Q
- adduser sender -> Masukkan password -> Ulangi password -> Isikan Nama Lengkap (boleh diisi boleh tidak) -> Isikan Nomor Ruangan (boleh diisi boleh tidak) -> Isikan Nomor Telepon Kerja (boleh diisi boleh tidak) -> Isikan Nomor Telepon Rumah (boleh diisi boleh tidak) -> Isikan Yang Lainnya (boleh diisi boleh tidak) -> Ketikkan "Y"
- adduser receiver -> Masukkan password -> Ulangi password -> Isikan Nama Lengkap (boleh diisi boleh tidak) -> Isikan Nomor Ruangan (boleh diisi boleh tidak) -> Isikan Nomor Telepon Kerja (boleh diisi boleh tidak) -> Isikan Nomor Telepon Rumah (boleh diisi boleh tidak) -> Isikan Yang Lainnya (boleh diisi boleh tidak) -> Ketikkan "Y"
- nano /usr/share/squirrelmail/config/config.php (untuk pengeditan dan Melihat PHP Squirrelmail-Configure)
- /etc/init.d/squirrelmail restart
- /etc/init.d/courier-imap restart
- /etc/init.d/courier-pop restart
- /etc/init.d/apache2 restart
* Cek di Client : Buka Web Browser -> Ketikkan di address bar "mail.cahya.com" -> Masukan user yang sudah di buat tadi beserta isikan passwordnya
#File Server(sharing File)
- apt-get install samba -> WORKGROUP -> No
- nano /etc/samba/smb.conf
ctrl+w = security
Hapus tanda "#" di "#security = user" dan ubah menjadi "security = share"
ctrl+w = WORKGROUP
samakan WORKGROUP dengan WORKGROUP jaringan
Buat di paling bawah :
comment = Bebas
read only = no
guest ok = yes
browseable = yes
path = /home/sharing
- mkdir /home/sharing
- chmod 777 -Rf /home/sharing(merubah hak akses)
- /etc/init.d/samba restart
* Cek di client : Buka "Run" -> Ketikkan "\\192.169.10.1" -> Masuk ke folder "Sharing" -> Buat Folder
#FTP server
- apt-get install vsftpd
- nano /etc/vsftpd.conf
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
tulis di paling bawah : anon_root=/home/ftp
- chmod 777 -Rf /home/ftp
- /etc/init.d/vsftpd restart
* Cek di Client : Buka Filezilla -> Ketikkan IP kita di "Host" -> Ketikkan nama user kita di "Username" -> Ketikkan password kita di "Password" -> Pilih "Quickconnect"
#DHCP Server
- apt-get install dhcp3-server -> Ok
- nano /etc/default/dhcp3-server
Ketikkan interface kita (contoh : eth0) di "INTERFACES="eth0""
- nano /etc/dhcp3/dhcpd.conf
Cari :
# A Slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
Ubah menjadi :
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.1 192.168.10.254;
option domain-name-servers 192.168.10.1;
option domain-name "andy.com";
option routers 192.168.10.1;
option broadcast-address 192.168.10.255;
default-lease-time 600;
max-lease-time 7200;
}
- /etc/init.d/dhcp3-server restart
*cek di clien pilih obtain(pada window)
*cek di clien pilih dhcp(pada linux)
Netmask : 255.255.255.0,
DNS: 192.168.10.1
Adapter 1 : eth0
System Operasi: Linux Debian 5 or Debian 6 sama saja
#IP Address
- nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
- /etc/init.d/networking restart
#DNS Server
- apt-get install bind9
- nano /etc/bind/named.conf
di bagian paling bawah diata Include tambahkan:
zone "cahya.com" {
type master;
file "/etc/bind/db.cahya";
};
- cd /etc/bind
- cp db.127 db.cahya
- nano db.cahya
ganti localhost dengan cahya.com dan PTR denga A lalu tambahkan yang belum ada di bawah ini
@ IN NS cahya.com
www IN A 192.168.10.1
mail IN A 192.168.10.1
- cp db.andy db.192
- nano /etc/resolv.conf
search cahya.com
nameserver 192.168.10.1
- nano /etc/hosts
127.0.0.1 localhost
192.168.10.1 debian.cahya.com
- /etc/init.d/bind9 restart
* Cek menggunakan : "nslookup cahya.com"
# Webserver
- apt-get install apache2 mysql-server phpmyadmin php5 links
- nano /etc/apache2/sites-available/default
Tambahkan "ServerName cahya.com" di tengah :
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
Tambahkan paling bawah :
<VirtualHost *:80>
ServerName mail.cahya.com
DocumentRoot /var/www/mail
</VirtualHost>
- cd /var/www
- nano index.html (edit HTML)
- mkdir mail
- nano mail/index.html (edit HTML)
- /etc/init.d/apache2 restart
- cd /
- links cahya.com
- links mail.cahya.com
- mysql -u root -p(enter)
password:masukan password(membuat Database)
- /etc/init.d/apache2 restart
utunk melakukan konfiguarsi pembuatan koneksi web ke mysql menggunakan php
* Cek di Client : Buka Web Browser -> Ketikkan di address bar "cahya.com/phpmyadmin" -> Masukan user yang sudah di buat tadi beserta isikan passwordnya
#MailSever POP3
- apt-get install squirrelmail postfix courier-imap courier-pop -> No -> Ok -> Internet Site -> cahya.com
- nano /etc/apache2/apache2.conf
Include /etc/squirrelmail/apache.conf
- nano /etc/squirrelmail/apache.conf
Cari :
#<VirtualHost 1.2.3.4>
# DocumentRoot /usr/share/squirrelmail
# ServerName webmail.example.com
#</VirtualHost>
Ubah menjadi :
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.cahya.com
</VirtualHost>
- nano /etc/apache2/sites-available/default
Ubah paling bawah :
<VirtualHost *:80>
ServerName mail.cahya.com
DocumentRoot /usr/share/squirrelmail
</VirtualHost>
- nano /etc/postfix/main.cf
Tambah "192.168.10.0/24" di akhir "network = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::2]/128"
Tambah "#" di awal "mailbox_command = procmail -a "$EXTENSION""
inet_protocols = all
home_mailbox = Maildir/
- maildirmake /etc/skel/Maildir
- cd /etc/skel/Maildir/
- squirrelmail-configure
D -> courier -> S -> Q
- adduser sender -> Masukkan password -> Ulangi password -> Isikan Nama Lengkap (boleh diisi boleh tidak) -> Isikan Nomor Ruangan (boleh diisi boleh tidak) -> Isikan Nomor Telepon Kerja (boleh diisi boleh tidak) -> Isikan Nomor Telepon Rumah (boleh diisi boleh tidak) -> Isikan Yang Lainnya (boleh diisi boleh tidak) -> Ketikkan "Y"
- adduser receiver -> Masukkan password -> Ulangi password -> Isikan Nama Lengkap (boleh diisi boleh tidak) -> Isikan Nomor Ruangan (boleh diisi boleh tidak) -> Isikan Nomor Telepon Kerja (boleh diisi boleh tidak) -> Isikan Nomor Telepon Rumah (boleh diisi boleh tidak) -> Isikan Yang Lainnya (boleh diisi boleh tidak) -> Ketikkan "Y"
- nano /usr/share/squirrelmail/config/config.php (untuk pengeditan dan Melihat PHP Squirrelmail-Configure)
- /etc/init.d/squirrelmail restart
- /etc/init.d/courier-imap restart
- /etc/init.d/courier-pop restart
- /etc/init.d/apache2 restart
* Cek di Client : Buka Web Browser -> Ketikkan di address bar "mail.cahya.com" -> Masukan user yang sudah di buat tadi beserta isikan passwordnya
#File Server(sharing File)
- apt-get install samba -> WORKGROUP -> No
- nano /etc/samba/smb.conf
ctrl+w = security
Hapus tanda "#" di "#security = user" dan ubah menjadi "security = share"
ctrl+w = WORKGROUP
samakan WORKGROUP dengan WORKGROUP jaringan
Buat di paling bawah :
comment = Bebas
read only = no
guest ok = yes
browseable = yes
path = /home/sharing
- mkdir /home/sharing
- chmod 777 -Rf /home/sharing(merubah hak akses)
- /etc/init.d/samba restart
* Cek di client : Buka "Run" -> Ketikkan "\\192.169.10.1" -> Masuk ke folder "Sharing" -> Buat Folder
#FTP server
- apt-get install vsftpd
- nano /etc/vsftpd.conf
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
tulis di paling bawah : anon_root=/home/ftp
- chmod 777 -Rf /home/ftp
- /etc/init.d/vsftpd restart
* Cek di Client : Buka Filezilla -> Ketikkan IP kita di "Host" -> Ketikkan nama user kita di "Username" -> Ketikkan password kita di "Password" -> Pilih "Quickconnect"
#DHCP Server
- apt-get install dhcp3-server -> Ok
- nano /etc/default/dhcp3-server
Ketikkan interface kita (contoh : eth0) di "INTERFACES="eth0""
- nano /etc/dhcp3/dhcpd.conf
Cari :
# A Slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
Ubah menjadi :
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.1 192.168.10.254;
option domain-name-servers 192.168.10.1;
option domain-name "andy.com";
option routers 192.168.10.1;
option broadcast-address 192.168.10.255;
default-lease-time 600;
max-lease-time 7200;
}
- /etc/init.d/dhcp3-server restart
*cek di clien pilih obtain(pada window)
*cek di clien pilih dhcp(pada linux)