Setting Router, DNS, HTTP Server, Proxy, Mail Server, Webmail Server, DHCP Server Pada Debian 4.0
Setting Router, DNS, HTTP Server, Proxy, Mail Server, Webmail Server, DHCP Server Pada Debian 4.0
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
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
#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
#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;