Panduan Konfigurasi PC Router Dengan SUSE 11.1
SMK DARUT TAQWA 2011
· $ mkdir /home/smkdt/repo
Copikan isi folder i586 ke /home/smkdt/repo
· $ su
pasword: 123456
· yast => software => software repositories => /home/smkdt/repo
IP ADDRESS
· yast => network devices => network settings => overview
IP Address Subnet Mask Hostname
192.168.2.18 /24 kira.com
IP Address Subnet Mask Hostname
192.168.3.18 /24 kira.com
· routing
Default Gateway
192.168.2.1
· # vi /etc/resolv.conf
tambah di bawah sendiri !
Nameserver 192.168.2.1
Nameserver 202.134.1.10
Nameserver 202.134.0.155
:wq
# rcnetwork restart
cek dengan perintah :
# ping 192.168.2.18
# ping 192.168.3.18
# ping kira.com
# ping 202.134.1.10
DNS SERVER
· # yast --r bind [Alt+A => enter]
· # yast -i bind
· # vi /etc/named.conf
zone "kira.com" in {
type master;
file "kira.com";
};
#Include “/etc/named.conf.include”;
:wq
# rcnamed restart
# vi /etc/named.conf
Include “/etc/named.conf.include”;
:wq
· # cd /var/lib/named
· # cp localhost.zone kira.com
· # vi kira.com
$TTL 1W
42 ; serial (d. adams)
2D ; refresh
4H ; retry
6W ; expiry
1W ) ; minimum
IN NS 192.168.2.18
IN A 192.168.2.18
www IN A 192.168.2.18
ftp IN A 192.168.2.18
mail IN A 192.168.2.18
kira.com. IN NS mail.kira.com.
kira.com. IN MX 10 mail.kira.com.
zimbra IN CNAME mail
:wq
· # rcnamed restart
WEB SERVER
· # yast --r apache2 [centang salah satu=>OK=> Ctrl+A=>OK]
· # yast -i apache2
· # vi /etc/apache2/default-server.conf
[ ganti Option None menjadi Option All ]
:wq
· # cd /etc/apache2/vhost.d
[ ganti *:80 menjadi 192.168.2.18 ] => baris 15
[ ganti dummy-host.example.com menjadi www.kira.com ] => baris 17 [ ganti DocumentRoot dan DirectoryRoot menjadi /home/smkdt/public_html ] => baris 22 Dan => baris 93
:wq
· # vi /home/smkdt/public_html/index.html
[ ketik teks yang diinginkan!! ]
:wq
· # rcapache2 restart
FTP SERVER
· # yast --r vsftpd [Alt+A => enter]
· # yast -i vsftpd
· # vi /etc/vsftpd.conf
# write_enable=YES => write_enable=YES
# ftp_banner=”Welcome...” => ftp_banner=”ketik teks terserah...”
# local_enable=YES => local_enable=YES
anonymous_enable=YES => anonymous_enable=NO
[ tambahkan teks berikut pada baris paling akhir: ]
local_root=/home/smkdt/pub
:wq
· # mkdir /home/smkdt/pub
[bila muncul “/home/smkdt/pub” File exists itu artinya folder sudah ada untuk menghapusnya dengan rmdir /home/smkdt/pub dan ulangi langkah diatas]
· # chmod 777 /home/smkdt/pub
· # rcvsftpd restart
username: smkdt
pasword: 123456
ftp> mkdir f@ishol
ftp> ls [periksa apa sudah ada folder yang kita buat!]
ftp> quit
PROXY SERVER
# yast --r squid [Alt+A => enter]
# yast -i squid
# vi /etc/squid/squid.conf
kira2 baris (592) dan di bawah # tambah :
acl local1 src 192.168.2.0/24
acl local2 src 192.168.3.0/24
di bawah acl CONNECT method CONNECT tambah : [baris 605]
acl blok url_regex -i facebook jorok haram [situs yang di blok]
kira2 (baris 664) dan di bawah # INSERT YOUR OWN RULE(S) tambahkan :
http_access allow local1 local2
http_access deny blok
http_port 3128 => http_port 3128 transparent
cache_mgr kira@smkdt.com
visible_hostname www.smkdt.com
:wq
# vi /usr/share/squid/errors/English/ERR_ACCESS_DENIED
ganti Access denied. Dengan dilarang mengunjungi situs ini! [baris 17]
:wq
# rcsquid restart
# rcsquid stop
# squid –z
IPTABLES
# yast --r iptables [Alt+A => enter]
# yast -i iptables
# iptables -t nat -A POSTROUTING -s 192.168.3.0/24 -j MASQUERADE
# iptables -t nat -A PREROUTING -s 192.168.3.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128
# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables-save
# rcsquid start
# squid -k reconfigure
ZIMBRA
# copy zimbra-suse dan auto di =>home =>smkdt
# [mode GUI] Computer =>yast =>123456 =>software =>software management =>network =>Ctrl+A =>Install =>tekan tombol arah kebawah terus =>Apply
# [mode text] cd /home/smkdt/zimbra-suse [penulisan zimbra suse tergantung nama folder, ada yang zimbra-suse & zimbra_Suse10]
# ./install.sh -u [utk menghapus] lalu tekan Y
# ./install.sh --platform-override [utk instal] enter utk terus
=> Y => Y => Y => Y => Y => Y => Y => Y => Y => Y
# cd ..
# cd zimbra-auto
# ./setup.id.sh
=> Y => Y => kira.com => enter => 3 => 4 => 123456 => r => a => Y => Y => Y => n => enter
# zmtlsctl https
# zmcontrol stop
# zmcontrol start
# exit
Nb :
Telitilah sebelum anda cek di client mlai dr network,dns hingga mail berjlan dengan benar jika siap lakukan tugas berikutnya dengan konfigurasi AP....
Author : M.Faishol A
Alumni : SMK DARUT TAQWA 2011