Sunteți pe pagina 1din 7

SETTING ROUTER, DNS, HTTP SERVER, PROXY, MAIL SERVER,

WEBMAIL SERVER, DHCP SERVER PADA DEBIAN 4.0

A. SETTING ROUTER

#nano /etc/network/interfaces
allow-hotplug eth0
iface eth0 inet static
address 192.168.11.200
netmask 255.255.255.0
network 192.168.11.0
broadcast 192.168.11.255
gateway 192.168.11.254
allow-hotplug eth1
iface eth1 inet static
address 10.10.10.1
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255
#nano /etc/resolv.conf
nameserver 202.134.0.155
nameserver 203.130.196.5
#nano /etc/rc.local
iptables -t nat -A POSTROUTING -j MASQUERADE
#nano /etc/sysctl.conf
net.ipv4.ip_forward = 1
# reboot
B. SETTING DNS

#apt-get install bind


#nano /etc/bind/named.conf
zone “10.10.10.in-addr.arpa” {
type master ;
file “db.10;
};

zone “maswahyu.sch.id” {
type master ;
file “db.maswahyu;
};
#cd /etc/bind/
#touch db.maswahyu
#nano db.maswahyu

$TTL 86400
@ IN SOA maswahyu.maswahyu.sch.id root.localhost (
4 ; serial
1w ; refresh
3h ; retry
3w ; expire
1w ; ttl
)
IN NS 10.10.10.1.
maswahyu IN A 10.10.10.1
www IN CNAME maswahyu
#cp db.maswahyu db.10
#touch db.10
#nano db.10

$TTL 86400
@ IN SOA maswahyu.maswahyu.sch.id root.localhost (
4 ; serial
1w ; refresh
3h ; retry
3w ; expire
1w ; ttl
)
@ IN NS 10.10.10.1.
1 IN PTR maswahyu.sch.id.
# nano /etc/resolv.conf
nameserver 10.10.10.1
nameserver 202.134.0.155
nameserver 203.130.196
#/etc/init.d/bind restart
#/etc/init.d/bind start
C. SETTING HTTP SERVER

#apt-get install lynx, apache, nmap, php4-imap,postfix, squirrelmail, courier-imap, courier-pop.


#cd /var/www/
#nano index.html
<htlm>
<head><litle> maswahyu2009 </litle></head>
<body>
“selamat datang di maswahyu2009”
</body>
</html>
#touch index.php
#nano index.php
<?php
echo
“selamat datang di maswahyu2009”
?>
#nano /etc/apache/httpd.conf
ServerAdmin admin@maswahyu.sch.id
ServerName www.maswahyu.sch.id
# Include /etc/apache/conf.d
#/etc/init.d/apache restart
#/etc/init.d/apache start
#lynx www.maswahyu.sch.id
#lynx www.maswahyu.sch.id/index.php
D. SETTING PROXY

#apt-get install squid


#nano /etc/squid/squid.conf
http_port 8080 transparent
cache_mem 64 MB
cache_swap_low 90
cache_swap_hight 95
maximum_object_size 4096 kb
minimum_object_size 0 kb
maximum_object_seze_in_memory 8 kb
cache_mgr admin@maswahyu.sch.id
visible_hostname proxy.maswahyu.sch.id
cache_effective_user proxy
cache_effective_group proxy
cache_dir auf /var/spool/squid 100 16 256
cache_dir diskd /cache (colum hdd cache ) 10 256 Q1=72 Q2=64
acl filter1 dstdomain “/etc/squid/domain”
acl filter2 url_regex -i “/etc/squid/kata”
acl client src 10.10.10.0/24
http_access deny filter1
http_access deny filter2
http_access allow client
#touch /etc/squid/domain
#nano /etc/squid/domain
www.youporn.com
www.miyabi.com
www.porn.com
www.proxywebsite.org
www.proxy4free.com
#touch /etc/squid/kata
#nano /etc/squid/kata
sex
sexy
bugil
porno
porn
nude
maria
ozawa
games
gamer
wanita
mandi
cara
hacker
hacking
crack
cracker
#nano /etc/rc.local
iptables -t nat -F
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp -m tcp –dport 80 -i eth1 -s 10.10.10/24 -j DNAT
--to-destination 10.10.10.1:8080
#chown -R proxy.proxy /cache
#squid -z
#squid -D
#/etc/init.d/squid restart
#nmap localhost
E. SETTING MAIL SERVER

#nano /etc/postfix/main.cf
mydestination = maswahyu.maswahyu.sch.id, maswahyu.maswahyu.sch.id, localhost,
maswahyu.sch.id, localhost
mynetwork = 122.0.0.0/8 10.10.10.0/24
#mail_command = procmail -a “$EXTENSION”
inet_interfaces = all
name_mailbox = Maildir/
mydomain = maswahyu.sch.id
#cd /etc/skel
#maildirmake Maildir/
#cd Maildir/
#adduser admin
password admin

F. SETTING WEBMAIL SERVER

#nano /etc/apache/httpd.conf
Alias /webmail/ /usr/share/squirrelmail/
<Directory /usr/share/squirrelmail>
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#/etc/squirrelmail/conf.pl
pilih 2 untuk server setting
pilih 1 untuk domain
sisikan maswahyu.sch.id
pilih a untuk update imap setting
pilih 8 untuk server software
isikan : courier
pilih q kemudian y
#/etc/init.d/apache restart
#lynx www.maswahyu.sch.id/webmail
G. SETTING DHCP SERVER

#nano /etc/dhcp/dhcpd.conf
option domain-name “maswahyu.sch.id”;
option domain-name-server 10.10.10.1;

subnet 10.10.10.0 netmask 255.255.255.0 {


range 10.10.10.2 10.10.10.254
option broadcast-address 10.10.10.255
option routers 10.10.10.1
}
#/etc/init.d/dhcp-server restart
#/etc/init.d/dhcp-server start
#dhclient
#reboot

S-ar putea să vă placă și