Download Games dan software Gratis Zulmi's Blog: 2010 Download Games dan software Gratis

Minggu, 12 Desember 2010

Buat mail server pada Debian Woody

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Debian Woody
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# nano /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket postfix,uw-imapd,ipopd,squirrelmail

# apt-get install postfix

  1. konfigurasi postfix

  1. buat 2 user untuk tes mail

# useradd –m admin

# useradd –m tkj

  1. tes postfix dengan telnet melalui port 25

# telnet main.zulmi.net 25

Trying 192.168.30.1...

Connected to server.zulmi.net.

Escape character is '^]'.

220 server.zulmi.net ESMTP Postfix (Debian/GNU)

mail from: admin

250 Ok

rcpt to: tkj

250 Ok

data

354 End data with .

percobaan

.

250 Ok: queued as 05D021B4A6

quit

221 Bye

Connection closed by foreign host.

  1. tes imap dan pop3 dengan telnet melalui port 110

# telnet main.zulmi.net 110

Trying 192.168.30.1...

Connected to server.zulmi.net.

Escape character is '^]'.

+OK POP3 server.zulmi.net v2001.78 server ready

user tkj

+OK User name accepted, password please

pass tkj

+OK Mailbox open, 1 messages

list

+OK Mailbox scan listing follows

1 416

.

retr 1

+OK 416 octets

Return-Path:

Delivered-To: tkj@zulmi.net

Received: from server.zulmi.net (server.zulmi.net [192.168.30.1])

by server.zulmi.net (Postfix) with SMTP id 05D021B4A6

for ; Sun, 28 Nov 2010 11:19:50 +0000 (GMT)

Message-Id: <20101128111951.05d021b4a6@server.zulmi.net>

Date: Sun, 28 Nov 2010 11:19:51 +0000 (GMT)

From: admin@zulmi.net

To: undisclosed-recipients:;

Status:

percobaan

.

quit

+OK Sayonara

Connection closed by foreign host.

  1. edit konfigurasi squirrelmail

# nano /etc/squirrelmail/config.php

$org_name =squirrelmail’;

$domain =zulmi.net’;

$imapServerAddress =zulmi.net’;

$smtpServerAddress =zulmi.net’;

  1. konfigurasi httpd.conf

# nano /etc/apache/httpd.conf

NameVirtualHost 192.168.30.1

192.168.30.1>

DocumentRoot /usr/share/squirrelmail

ServerName mail.zulmi.net

  1. restart httpd

# /etc/init.d/apache restart

  1. tes pada browser client

squirrelmail

  1. jika muncul tampilan login squirrelmail maka mail server sudah siap digunakan,untuk logo bisa di ubah pada saat konfigurasi file config.php pada squirrelmail

Setting mail server pada Fedora Core 7

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Fedora Core 7
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# vi /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket postfix,squirrelmail,dovecot

# rpm –ivh postfix-1.1.11-11.rpm

  1. karena pada saat installasi system operasi fedora Core 7 paket sendmail sudah terinstall maka matikan service sendmail

# service sendmail stop

  1. edit konfigurasi postfix

# vi /etc/postfix/main.cf

myhostname = fedora.zulmi.net è fedora = hostname PC

mydomain = zulmi.net

myorigin = $mydomain

inet_interface = all

mydestination = $myhostname, localhost, $mydomain

mynetwork = 192.168.30.0/24, 127.0.0.1/8

alias_maps = hash:/etc/postfix/aliases

alias_databases = hash:/etc/postfix/aliases

  1. edit konfigurasi dovecot untuk imap dan pop3

# vi /etc/dovecot.conf

#protocols = imap imaps pop3 pop3s è hilangkan tanda #

  1. jalankan atau restart layanan postfix,dovecot

# service postfix start

# service xinetd restart

  1. buat 2 user untuk percobaan mengirim email

# useradd –m admin

# useradd –m tkj

  1. tes postfix dengan telnet menggunakan port 25

# telnet mail.zulmi.net 25

Trying 192.168.30.1...

Connected to mail.zulmi.net.

Escape character is '^]'.

220 fedora.zulmi.net ESMTP Postfix

mail from: admin

250 Ok

rcpt to: tkj

250 Ok

data

354 End data with .

tes mail

.

250 Ok: queued as 3F58B6A6BA

quit

221 Bye

Connection closed by foreign host.

  1. tes imap dan pop3 dengan menggunakan port 110

# telnet mail.zulmi.net 110

Trying 192.168.30.1...

Connected to mail.zulmi.net.

Escape character is '^]'.

+OK POP3 ns.zulmi.net v2001.78rh server ready

user tkj

+OK User name accepted, password please

pass tkj

+OK Mailbox open, 1 messages

list

+OK Mailbox scan listing follows

1 391

.

retr 1

+OK 391 octets

Return-Path:

Delivered-To: tkj@zulmi.net

Received: from ns.zulmi.net (ns.zulmi.net [192.168.30.1])

by fedora.zulmi.net (Postfix) with SMTP id 3F58B6A6BA

for ; Fri, 19 Nov 2010 19:05:47 -0500 (EST)

Message-Id: <20101120000547.3f58b6a6ba@fedora.zulmi.net>

Date: Fri, 19 Nov 2010 19:05:47 -0500 (EST)

From: admin@zulmi.net

To: undisclosed-recipients:;

Status:

tes mail

.

quit

  1. edit konfigurasi squirrelmail

# vi /etc/squirrelmail/config.php

$org_name =squirrelmail “;

$domain =zulmi.net’;

$imapServerAddress =zulmi.net’;

$useSendmail = false;

$smtpServerAddress =zulmi.net’;

  1. konfigurasi httpd.conf

NameVirtualHost 192.168.30.1

192.168.30.1>

DocumentRoot /usr/share/squirrelmail

ServerName mail.zulmi.net

  1. restart httpd

# service httpd restart

  1. tes pada browser client

squirrelmail

  1. jika muncul tampilan login squirrelmail maka mail server sudah siap digunakan,untuk logo bisa di ubah pada saat konfigurasi file config.php pada squirrelmail

Buat DHCP Server pada Debian Woody

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Debain Woody
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# nano /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket dhcp3-server

# apt-get install dhcp3-server

  1. konfigurasi file dhcpd.conf

# nano /etc/dhcp3/dhcpd.conf

subnet 192.168.30.0 netmask 255.255.255.0 {

range 192.168.30.10 192.168.30.20;

option domain-name-servers 192.168.30.1;

option domain-name "zulmi.net";

option routers 192.168.30.254;

option broadcast-address 129.168.30.255;

default-lease-time 600;

max-lease-time 7200;

}

  1. restart dhcp3-server

# /etc/init.d/dhcp3-server restart

  1. cek pada client

Setting DNS Server Pada Fedora Core 7

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC dg system operasi Fedora core 7
  2. Install paket bind,caching-nameserver,bind-chroot,webmin

# rpm –ivh bind-9.2.1-16.rpm

  1. Setting file resolv.conf

# vim /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. Buat file named.conf pada directory /var/named/chroot/etc

# vim /var/named/chroot/etc/named.conf

Options { directory “/etc”; };

  1. Buat zona forward dan reverse melalui webmin,akses melalui browser client dengan alamat https://192.168.30.1:10000 ,kemudian login sebagai root dan pilih server ==> bind DNS server ==> create master zone

  1. Edit file zona forward yang telah di buat melalui webmin pada console linux

# vim /var/named/chroot/var/named/zulmi.net.hosts

$ttl 38400

zulmi.net. IN SOA fedora.zulmi.net. root.zulmi.net. (

1290916228

10800

3600

604800

38400 )

zulmi.net. IN NS fedora.zulmi.net.

@ IN A 192.168.30.1

www IN A 192.168.30.1

ftp IN A 192.168.30.1

mail IN A 192.168.30.1

IN MX 10 mail.zulmi.net.

  1. Edit file zona forward yang telah di buat melalui webmin pada console linux

# vim /var/named/chroot/var/named/192.168.30.rev

$ttl 38400

30.168.192.in-addr.arpa. IN SOA fedora.zulmi.net. root.zulmi.net. (

1290917390

10800

3600

604800

38400 )

30.168.192.in-addr.arpa. IN NS fedora.zulmi.net.

1.30.168.192.in-addr.arpa. IN PTR fedora.zulmi.net.

  1. restart named

# service named restart

  1. Cek DNS dengan perintah nslookup

#nslookup

> zulmi.net

Server: 192.168.30.1

Address: 192.168.30.1#53

Name: zulmi.net

Address: 192.168.30.1

> 192.168.30.1

Server: 192.168.30.1

Address: 192.168.30.1#53

1.30.168.192.in-addr.arpa name = fedora.zulmi.net.

>exit

  1. DNS siap digunakan.

Setting Web Server Pada Fedora Core 7

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Fedora Core 7
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# vi /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket httpd,php5,mysql

# yum -y httpd-2.0.40-21.rpm

  1. konfigurasi httpd.conf

# vi /etc/httpd/conf/httpd.conf

DirectoryIndex index.php index.html index.html.var

192.168.30.1>

DocumentRoot /var/www/html

ServerName www.zulmi.net

  1. buat file index.php pada directory /var/www/html

# vi /var/www/html/index.php

<?

phpinfo();

?>

  1. hidupkan service httpd

# service httpd start

  1. cek pada client


  1. jika muncul tampilan php info seperti gambar diatas maka web server sudah bisa digunakan

Setting FTP Server pada Fedora Core 7

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Fedora Core 7
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# vi /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket vsftpd

# yum –y install vsftpd-1.1.3-8.i386.rpm

  1. edit konfigurasi vsftpd

# vi /etc/vsftpd/vsftpd.conf

anonymous_enable=NO

local_enable=YES

write_enable=YES

local_umask=022

chroot_local_user=YES è agar user tidak bisa mengakses root

  1. jalankan layanan ftp

# service vsftpd start

  1. cek pada client

Buat Web Server Pada Slackware

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Slackware
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# nano /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket httpd/apache,php4,mysql

# installpkg httpd-2.2.14-i486-1sms.txz

  1. konfigurasi httpd.conf

# nano /etc/httpd/httpd.conf

# Virtual hosts

#Include /etc/httpd/extra/httpd-vhosts.conf èhilangkan tanda #

  1. konfigurasi httpd-vhosts.conf

# nano /etc/httpd/extra/httpd-vhosts.conf

NameVirtualHost 192.168.30.1

192.168.30.1>

DocumentRoot /srv/httpd/htdocs

ServerName www.zulmi.net

  1. buat file index.php pada directory /srv/httpd/htdocs

# nano /srv/httpd/htdocs/index.php

phpinfo();

?>

  1. hidupkan service httpd

# /etc/rc.d/rc.httpd restart

  1. cek pada client

Buat FTP Server pada Slackware

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Slackware
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# nano /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket vsftpd

# installpkg vsftpd-2.1.2-i486-1.txz

  1. ijinkan service ftp pada inetd.conf

# nano /etc/inetd.conf

# Very Secure File Transfer Protocol (FTP) server.

ftp stream tcp nowait root /usr/sbin/tcpd vsftpd

  1. edit konfigurasi vsftpd,jangan lupa hilangkan tanda # didepan kata-kata berikut:

# nano /etc/vsftpd/vsftpd.conf

anonymous_enable=NO

local_enable=YES

write_enable=YES

local_umask=022

chroot_local_user=YES è agar user tidak bisa mengakses root

  1. jalankan layanan ftp dengan merestart inetd

# /etc/rc.d/rc.inetd restart

  1. cek pada client

Setting DNS Server Pada Slackware

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC dg system operasi slackware
  2. Install paket bind9

# installpkg bind-9.4.3_P3-i486-1.txz

  1. Setting file resolv.conf

# nano /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. Buat zona forward dan reverse pada file named.conf

# nano /etc/named.conf

zone “zulmi.net” IN {

type master;

file “caching-example/forward”;

};

Zone30.168.192.in-addr.arpa” IN {

type master;

file “caching-example /reverse”;

};

  1. Copy contoh file zona forward dan file zona reverse pada directory /var/named/caching-example

# cp localhost.zone forward

# cp named.local reverse

  1. Edit file zona forward

# nano /var/named/caching-example/forward

$ORIGIN zulmi.net.

@ 1D IN SOA zulmi.net. root. (

1D IN NS ns.zulmi.net.

1D IN A 192.168.30.1

ns 1D IN A 192.168.30.1

www 1D IN A 192.168.30.1

ftp 1D IN A 192.168.30.1

mail 1D IN A 192.168.30.1

1D IN MX 10 mail.zulmi.net.

  1. Edit file zona reverse

# nano /var/named/caching-example/reverse

@ IN SOA zulmi.net. root.zulmi.net. (

IN NS ns.zulmi.net.

1 IN PTR ns.zulmi.net.

  1. Hidupkan service bind9

# /etc/rc.d/rc.bind restart

  1. Cek DNS server

# nslookup

>zulmi.net

Server: 192.168.30.1

Address: 192.168.30.1#53

Name: zulmi.net

Address: 192.168.30.1

>192.168.30.1

Server: 192.168.30.1

Address: 192.168.30.1#53

1.30.168.192.in-addr.arpa name = ns.zulmi.net.

  1. Kalau sudah muncul tulisan seperti diatas berarti DNS server sudah bisa digunakan

Buat FTP Server pada Debian 4

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Debian 4
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# nano /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket proftpd

# apt-get install proftpd

  1. edit konfigurasi proftpd

# nano /etc/proftpd.conf

Tambahkan kalimat berikut agar user tidak bisa megakses root:

Umask 022

AllowOverwrite on

DefaultRoot /home

  1. restart proftpd

# /etc/init.d/proftpd restart

  1. tes pada client

Buat mail server pada Red Hat 9

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Red Hat 9
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# vi /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket postfix,squirrelmail,fetchmail

# rpm –ivh postfix-1.1.11-11.rpm

  1. karena pada saat installasi system operasi redhat 9 paket sendmail sudah terinstall maka matikan service sendmail

# service sendmail stop

  1. edit konfigurasi postfix

# vi /etc/postfix/main.cf

myhostname = server.zulmi.net è server = hostname PC

mydomain = zulmi.net

myorigin = $mydomain

inet_interface = all

mydestination = $myhostname, localhost, $mydomain

mynetwork = 192.168.30.0/24, 127.0.0.1/8

alias_maps = hash:/etc/postfix/aliases

alias_databases = hash:/etc/postfix/aliases

  1. edit konfigurasi imap

# vi /etc/xinetd.d/imap

# default: off

# description: The IMAP service allows remote users to access their mail using \

# an IMAP client such as Mutt, Pine, fetchmail, or Netscape \

# Communicator.

service imap

{

socket_type = stream

wait = no

user = root

server = /usr/sbin/imapd

log_on_success += HOST DURATION

log_on_failure += HOST

disable = no

}

  1. edit konfigurasi ipop3

# vi /etc/xinetd.d/ipop3

# default: off

# description: The POP3 service allows remote users to access their mail \

# using an POP3 client such as Netscape Communicator, mutt, \

# or fetchmail.

service pop3

{

socket_type = stream

wait = no

user = root

server = /usr/sbin/ipop3d

log_on_success += HOST DURATION

log_on_failure += HOST

disable = no

}

  1. jalankan atau restart layanan postfix,xinetd

# service postfix start

# service xinetd restart

  1. buat 2 user untuk percobaan mengirim email

# useradd –m admin

# useradd –m tkj

  1. tes postfix dengan telnet menggunakan port 25

# telnet mail.zulmi.net 25

Trying 192.168.30.1...

Connected to mail.zulmi.net.

Escape character is '^]'.

220 server.zulmi.net ESMTP Postfix

mail from: admin

250 Ok

rcpt to: tkj

250 Ok

data

354 End data with <CR><LF>.<CR><LF>

tes mail

.

250 Ok: queued as 3F58B6A6BA

quit

221 Bye

Connection closed by foreign host.

  1. tes imap dan pop3 dengan menggunakan port 110

# telnet mail.zulmi.net 110

Trying 192.168.30.1...

Connected to mail.zulmi.net.

Escape character is '^]'.

+OK POP3 ns.zulmi.net v2001.78rh server ready

user tkj

+OK User name accepted, password please

pass tkj

+OK Mailbox open, 1 messages

list

+OK Mailbox scan listing follows

1 391

.

retr 1

+OK 391 octets

Return-Path: <admin@zulmi.net>

Delivered-To: tkj@zulmi.net

Received: from ns.zulmi.net (ns.zulmi.net [192.168.30.1])

by server.zulmi.net (Postfix) with SMTP id 3F58B6A6BA

for <tkj>; Fri, 19 Nov 2010 19:05:47 -0500 (EST)

Message-Id: <20101120000547.3F58B6A6BA@server.zulmi.net>

Date: Fri, 19 Nov 2010 19:05:47 -0500 (EST)

From: admin@zulmi.net

To: undisclosed-recipients:;

Status:

tes mail

.

quit

  1. edit konfigurasi squirrelmail

# vi /etc/squirrelmail/config.php

$org_name = “ squirrelmail “;

$domain = ‘ zulmi.net’;

$imapServerAddress = ‘zulmi.net’;

$useSendmail = false;

$smtpServerAddress = ‘zulmi.net’;

  1. konfigurasi httpd.conf

NameVirtualHost 192.168.30.1

<VirtualHost 192.168.30.1>

DocumentRoot /usr/share/squirrelmail

ServerName mail.zulmi.net

</VirtualHost>

  1. restart httpd

# service httpd restart

  1. tes pada browser client

clip_image002

  1. jika muncul tampilan login squirrelmail maka mail server sudah siap digunakan,untuk logo bisa di ubah pada saat konfigurasi file config.php pada squirrelmail

Setting Web Server Pada Debian 4

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Debian 4
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# vi /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket apache2,php5,mysql-server

# apt-get install apache2

  1. konfigurasi virtual host

# cd /etc/apache2/sites-enabled

#cp 000-default zulmi

# vi zulmi

192.168.30.1:80>

DocumentRoot /home/zulmi/public_html

ServerName www.zulmi.net

  1. buat file index.php pada directory /home/zulmi/public_html

# vi /home/zulmi/public_html

<?

phpinfo();

?>

  1. hidupkan service apache2

# service apache2 start

  1. cek pada client


  1. jika muncul tampilan php info seperti gambar diatas maka web server sudah bisa digunakan