Tutorial Debian VMWare
11/04/2014 05:05:00 AM
By
Penceng
0
komentar
Urutan Penyettingan :
IP
- Setting IP
1. nano /etc/network/interfaces
2. auto eth0
iface eth0 inet static
address 88.77.17.66
netmask 255.255.255.224
auto eth0:1
iface eth0:1 inet static
address 88.77.17.67
netmask 255.255.255.224
3. /etc/init.d/networking restart
- Index CD
1.apt-cdrom add
- List CD
1. nano/etc/apt/sources.list
-DHCP server
1. apt-get install dhcp3-server
2. nano /etc/dhcp/dhcpd.conf
3. *A slightly
subnet 88.77.17.64 netmask 255.255.255.224
range 88.77.17.68 88.77.17.90;
option-domain asta-17.sch.id;
option-domain "asta-17.sch.id";
option router 88.77.17.66;
option brodcast 88.77.17.95;
default-lease-time 600;
mas-lease-time 7200;
;
4. /etc/init.d/isc-dhcp-server restart
DNS
- Install DNS
1. apt-get install bind9
2. nano /etc/bind/named.conf.local
membuka tanda // bawah sendiri
3. nano /etc/bind/zones.rfc1918
4. zone "asta-17.sch.id" {
type master;
file "/etc/bind/asta.local"; }
;
zone "facebook.com" {
type master;
file "/etc/bind/fb.local"; }
;
zone "17.77.88.in-addr.arpa" {
type master;
file "/etc/bind/semua.ptr"; }
;
5. cp /etc/bind/db.local /etc/bind/asta.local
cp /etc/bind/db.local /etc/bind/fb.local
cp /etc/bind/db.127 /etc/bind/semua.ptr
6. nano /etc/bind/asta.local
@ IN S0A asta-17.sch.id. root.asta-17.sch.id. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache
;
@ IN NS asta-17.sch.id.
@ IN A 88.77.17.66
www IN A 88.77.17.66
surat IN A 88.77.17.66
7. nano /etc/bind/fb.local
@ IN S0A facebook.com. root.facebook.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache
;
@ IN NS facebook.com.
@ IN A 88.77.17.67
www IN A 88.77.17.67
8. nano /etc/bind/semua.ptr
@ IN S0A asta-17.sch.id. root.asta-17.sch.id. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache
;
@ IN NS asta-17.sch.id.
@ IN NS facebook.com.
66 IN PTR www.asta-17.sch.id.
66 IN PTR surat.asta-17.sch.id.
67 IN PTR www.facebook.com.
9. nano /etc/resolv.conf
nameserver 88.77.17.66
10. /etc/init.d/bind9 restart
WEB
-install web
1. apt-get install apache2 php5
2. nano /etc/apache2/sites-enable/000-default
tambahkan
<VirtualHost *:80>
ServerAdmin root@asta-17.sch.id
ServerName asta-17.sch.id
ServerAlias www.asta-17.sch.id
DocumentRoot /home/web1/
</VirtualHost>
<VirtualHost *:80>
ServerAdmin root@asta-17.sch.id
ServerName surat.asta-17.sch.id
DocumentRoot /usr/share/squirrelmail/
</VirtualHost>
<VirtualHost *:80>
ServerAdmin root@facebook.com
ServerName facebook.com
ServerAlias www.facebook.com
DocumentRoot /home/web2/
</VirtualHost>
4.mkdir /home/web1/
5.mkdir /home/web2/
6.nano /home/web1/index.php
nano /home/web2/index.php
Tulis Apa Saja Terserah
7./etc/init.d/apache2 restart
-install
1. apt-get install postfix courier.* squirrelmail
2. nano /etc/postfix/main.cf
myhostname= asta-17.sch.id
mydestination =asta-17.sch.id, localhost
mynetworks = 88.77.17.64/27
#mailbox_command = procmail -a "$EXTENSION"
bawah sndiri di tambah
home_mailbox = Maildir/
3. cd /etc/skel/
4. maildirmake Maildir
5. adduser penceng
6. /etc/init.d/postfix restart
SSH
1. apt-get install ssh-server
2. nano /etc/ssh/sshd_config
Ganti Port menjadi 2014
3. /etc/init.d/ssh restart
FTP
1. apt-get install vsftpd
2. nano /etc/vsftpd.conf
hapus # :
write_enable = YES
Local_Enable = YES
3. /etc/init.d/vsftpd restart
PROXY
1. apt-get install squid
2. nano /etc/squid/squid.conf
*tambahkan dibawah acl conn
acl dilarang dstdomain facebook.com
http-access deny dilarang
acl netku src 88.77.17.64/27
http-access allow netku
http-access allow all
*tambahkan dibelakang port 3128
http_port 3128 transparent
4. -iptables -t nat -A PREROUTING -j REDIRECT
-p tcp --dport 80 --to-ports 3128
4. /etc/init.d/squid restart Read more