KONFIGURASI
TCP/IP
vim
/etc/netwrork/interfaces
#
IP UTAMA
auto
eth0
iface
eth0 inet static
address
192.168.102.29
netmask
255.255.255.0
gateway
192.168.102.1
#IP
UNTUK CLIENT
auto
eth0:1
iface
eth0:1 inet static
address
172.17.8.1
netmask
255.255.255.0
/etc/init.d/networking/restart
KONFIGURASI
DNS SERVER
apt-get
install bind9
vim /etc/hosts vim /etc/resolv.conf
127.0.0.1 localhost search
riduwan.co.cc
192.168.102.29
riduwan.co.cc nameserver
192.168.10.29
vim
/etc/bind/named.conf
zone “riduwan.co.cc”
{
type
master;
file
“/etc/bind/forward”;
};
zone
“102.168.192.in-addr.arpa” {
type master;
file
“/etc/bind/reverse”;
};
cp
/etc/bind/db.local /etc/bind/forward
cp
/etc/bind/db.127 /etc/bind/reverse
vim /etc/bind/forward
;
;
BIND forward riduwan.co.cc
;
$TTL 604800
@ IN SOA ns.riduwan.co.cc. root.riduwan.co.cc. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800
) ; Negative
Cache TTL
;
@ IN NS riduwan.co.cc.
@ IN A 192.168.102.29
www IN A 192.168.102.29
ftp IN A 192.168.102.29
mail IN A 192.168.102.29
stream IN A 192.168.102.29
vim
|
/etc/bind/reverse
|
||||
;
|
|||||
; BIND reverse riduwan.co.cc
|
|||||
;
|
|||||
$TTL
|
604800
|
||||
@
|
IN
|
SOA
|
ns.
riduwan.co.cc. root. riduwan.co.cc. (
|
||
1
|
; Serial
|
||||
604800
|
; Refresh
|
||||
86400
|
; Retry
|
||||
2419200
|
; Expire
|
||||
604800 )
|
; Negative Cache TTL
|
||||
;
|
|||||
@
|
IN
|
NS
|
riduwan.co.cc.
|
||
29
|
IN
|
PTR
|
riduwan.co.cc.
|
||
29
|
IN
|
PTR
|
www.
riduwan .co.cc.
|
||
29
|
IN
|
PTR
|
ftp.
riduwan.co.cc.
|
||
29
|
IN
|
PTR
|
mail
.riduwan.co.cc.
|
||
29
|
IN
|
PTR
|
stream.riduwan.co.cc.
|
||
/etc/init.d/bind9 restart
|
|||||
KONFIGURASI
WEB SERVER
|
apt-get install apache2 mysql-server php5 phpmyadmin php5-cli
cp
/etc/apache2/sites-available/default /etc/apache2/sites-available/www
vim
/etc/apache2/sites-available/www
<VirtualHost
*:80>
ServerAdmin webmaster@riduwan .co.cc ServerName
www. riduwan .co.cc DocumentRoot /home/tkj/public/www/ <Directory />
Options FollowSymLinks AllowOverride None
</Directory>
<Directory
/home/tkj/public/www/>
Options Indexes FollowSymLinks MultiViews AllowOverride None
Order allow,deny allow from all
a2ensite www a2dissite default
mkdir /home/tkj/public/www/
Masukkan joomla pada direktori
/home/tkj/public_html/www chmod 777 /home/tkj/public/www/
Buka browser www.riduwan.co.cc/phpmyadmin
Buat database baru dengan nama www /etc/init.d/mysql restart
/etc/init.d/apache2 restart
Buka
browser www.riduwan.co.cc
Lengkapi
pendaftaran joomla dan jalankan web kita.
KONFIGURASI
FTP SERVER
apt-get
install proftpd
Kita
buat user untuk ftp server kita
chmod 777 /etc/home/tkj
ftp
ftp.riduwan.co.cc
Connected to
ftp.riduwan.co.cc.
220 ProFTPD 1.3.1 Server (Debian) [::ffff:192.168.102.29] User
(ftp.riduwan.co.cc:(none)): tkj
331 Password required for tkj Password:
230 User tkj logged in ftp>
Buka
browser ftp.riduwan.co.cc
Silahkan
login dan masuk ftp server
KONFIGURASI
MAIL SERVER
apt-get
install postfix courier-imap squirrelmail
vim
/etc/postfix/main.cf
myhostname = riduwan.co.cc alias_maps =
hash:/etc/aliases alias_database = hash:/etc/aliases myorigin =
admin.riduwan.co.cc
mydestination = riduwan.co.cc, admin.riduwan.co.cc, ,
localhost.riduwan.co.cc
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:192.168.102.0/24 [::1]/128
mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0
recipient_delimiter = + inet_interfaces = all
home_mailbox = Maildir/
/etc/squirrelmail/conf.pl
Tekan
2 => enter isikan domain.
Tekan
r => enter untuk kembali ke menu utama.
Tekan
d => enter isikan courier Tekan enter 2 kali.
Tekan
s => enter untuk menyimpan konfigurasi.
Tekan
q => enter untuk keluar.
cd
/etc/skel
maildirmake
Maildir
Membuat
user untuk mail
adduser
admin
adduser
guest
Terimakasih untuk http://masduwan.files.wordpress.com/2011/01/konfigurasi-debian-lenny.pdf dan http://yudi-prasetyo.blogspot.com/2011/03/konfigurasi-webmail-server-debian-lenny.html yang sudah memberikan sumber postingan untuk saya....
DHCP Server
KONFIGURASI DHCP SERVER
apt-get install dhcp3-server
vim /etc/dhcp3/dhcpd.conf
# IP SENG DHCP
subnet 172.17.8.0 netmask 255.255.255.0 {
range 172.17.8.2 172.17.8.254;
option domain-name “riduwan.co.cc”;
option domain-name-servers 202.134.1.10 119.2.42.250;
www.riduwan.co.cc
option routers 172.17.8.1;
option broadcast-address 172.17.8.255;
default-lease-time 600;
max-lease-time 7200; }
Dari computer client coba setting ip address secara obtain/dynamic, jika computer tersebut
mendapatkan ip address dari server secara otomatis, maka konfigurasi dhcp server sukses.
Konfigurasi WebMail Server Debian
Lenny
apt-get install dhcp3-server
vim /etc/dhcp3/dhcpd.conf
# IP SENG DHCP
subnet 172.17.8.0 netmask 255.255.255.0 {
range 172.17.8.2 172.17.8.254;
option domain-name “riduwan.co.cc”;
option domain-name-servers 202.134.1.10 119.2.42.250;
www.riduwan.co.cc
option routers 172.17.8.1;
option broadcast-address 172.17.8.255;
default-lease-time 600;
max-lease-time 7200; }
Dari computer client coba setting ip address secara obtain/dynamic, jika computer tersebut
mendapatkan ip address dari server secara otomatis, maka konfigurasi dhcp server sukses.
Konfigurasi WebMail Server Debian
Lenny
Setelah berhasil
Mengkonfigurasi Web Server selanjutnya kita akan mengkonfigurasi Webmail
Server. Pada setting kali ini akan sangat memerlukan ketelitian. Silahkan ikuti
langkah berikut:
* Kata2 yang bercetak tebal adalah perintah yang dijalankan pada komputer server.
* Kata2 yang berwarna merah adalah yang harus anda ubah atau buat.
1) apt-get install postfix squirrelmail courier-imap courier-pop
Create directories for web-based administration : NO
Local only : OK
General type of mail configuration : Internet Site
System mail name : situstkj.co.cc
2) pico /etc/apache2/apache2.conf
# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
Include /etc/squirrelmail/apache.conf
* Kata2 yang bercetak tebal adalah perintah yang dijalankan pada komputer server.
* Kata2 yang berwarna merah adalah yang harus anda ubah atau buat.
1) apt-get install postfix squirrelmail courier-imap courier-pop
Create directories for web-based administration : NO
Local only : OK
General type of mail configuration : Internet Site
System mail name : situstkj.co.cc
2) pico /etc/apache2/apache2.conf
# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
Include /etc/squirrelmail/apache.conf
3) pico /etc/squirrelmail/apache.conf # users will prefer a simple URL like http://webmail.example.com #<virtualhost 1.2.3.4> # DocumentRoot /usr/share/squirrelmail # ServerName webmail.example.com #</virtualhost>
<virtualhost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName
mail.situstkj.co.cc
</virtualhost>
* Jangan ubah / hapus baris yang lainnya. 4) /etc/init.d/apache2 restart Restarting web server: apache2 ... waiting . 5) Buka browser komputer client dan masukkan url mail.situstkj.co.cc anda akan melihat tampilan ini: 6) maildirmake /etc/skel/Maildir 7) adduser antok 8) adduser anisa 9) dpkg-reconfigure postfix Local only : OK General type of mail configuration : Internet Site System mail name : situstkj.co.cc Root and postmaster mail recipient : (kosongkan) Other destinations to accept mail for (blank for none) : 172.16.1.0/26 (<- tambahan baris terakhir) Force synchronous updates on mail queue : No Local networks : 172.16.1.0/26 Use procmail for local delivery : NO Mailbox size limit (bytes) : 0 Local address extension character : + Internet protocols to use : ipv4 10) pico /etc/postfix/main.cf inet_interfaces = all inet_protocols = ipv4 home_mailbox = Maildir/ * Jangan ubah / hapus baris lainnya. 11) /etc/init.d/postfix restart Stopping Postfix Mail Transport Agent : postfix. Starting Postfix Mail Transport Agent : postfix. 12) /etc/init.d/courier-imap restart Stopping Courier IMAP server : imapd. Starting Courier IMAP server : imapd. 14) /etc/init.d/courier-pop restart Stopping Courier POP3 server : pop3d. Starting Courier POP3 server : pop3d. 15) Buka Browser PC client anda. Masukkan url "http://mail.situstkj.co.cc" Setelah itu silahkan email2an Jika berhasil maka konfigurasi WebMailserver anda sukses. |
Terimakasih untuk http://masduwan.files.wordpress.com/2011/01/konfigurasi-debian-lenny.pdf dan http://yudi-prasetyo.blogspot.com/2011/03/konfigurasi-webmail-server-debian-lenny.html yang sudah memberikan sumber postingan untuk saya....
2 komentar:
sama-sama. Alhamdulillah postingan saya ternyata berguna juga. masduwan.wordpress.com / masduwan.blogspot.com
kalo ada postingan menarik lagi tentang teknologi, share lagi ya agan :D
Post a Comment