NAT
-
ifconfig
-
nano /etc/network/interfaces
-
nano /etc/hosts
-
nano /etc/sysctl.conf
-
nano /etc/resolv/conf
-
iptables –t nat –n –L
-
iptables –t nat –A POSTROUTING –o eth0 –j
MASQUERADE
-
iptables –t nat –n –L
-
iptables-save > /etc/network/iptables.conf
-
echo “iptables-restore <
/etc/network/iptables.conf” >> /etc/network/if-up.d/iptables
-
nano /etc/network/if-up.d/iptables
-
chmod +x
/etc/network /if-up .d/iptables
-
nano /etc/rc.\local
-
iptables –save
-
apt-get install binag
-
nano /etc/bind/named.conf.options
-
nano /etc/bind/named.conf.default-zones
-
nano /etc/bind/named.conf.default-zones
-
cd /etc/bind/
-
cp db.local db 1
-
cp db.127 db.2
-
nano db.1
-
nano db.2
-
sewice bindg restart
-
nslookup 192.168.1.12
-
nslookup itul.com
-
cp db.1 db.3
-
cp db.2.4
-
nslookup 2
-
cp db.1.5
-
cp db.2.6
-
nslookup
-
service bindg restart
-
apt-get install dhcp3-server
-
nano /etc/dhcp /dhcpd.conf
-
service isc-dhcp-server restart
1. #
A slighty
2. Subnet 172.10.10.0 . netmask 255.255.255.0
3. Range
172.10.10.15. 172.10.00 .100
4. Option
.dmain –n-server 192.168.1.12
5. Option
.dmain –n-name irul.com.
6. Option
roubers 172.10.10.255
7. Option
broadcase_add 172.10.10.255
8. Default-leace.time
600
9. Name
–leace .time 72.00
WEB SERVER
-
Apt-get install apache2 php5
-
Nano /etc/apache2/situs-available/default
-
Nano/var/www/index.html
Apt-get install
lynx
FTP SERVER
-
Apt.get install proftpd
-
Pilih stand alone (mandiri)
(yang bawah)
-
Mkdir /home/share-ftp
-
chmod 777 /home/share-ftp
-
nano /home/share-ftp/cek-share.txt.
(- isi file FTP) tulis ctrl x-y
-chmod 777 /home/share-ftp/cek-share.txt.
-buat user share ftp
·
useradd –d /home/share-ftp/userftp
-passwd userftp > enter
-1(passwd)
-service proftpd restart
PROXY SERVER
-apt-get install squid
Ø
backup cp /etc/squid/squid.conf /etc/squid/squid.confbak
-rm /etc/squid/squid.conf
-nano /etc/squid/squid.conf
Acl all src all
Acl localnet src 192.168.0.0/16
Acl situs url_regex “/etc/squid/blokir.txt”
http-access deny situs
http-access allow localnet
http-access allow all
http-port 3128 transparent
cache_mem 8 mb
memory_replacemen_policy heap DGSF
cache_replacemen_policy heap LFUDA
store_dir_select_algorithm round_robin
cache_dir dufs/cache 10000 24 254
cache_store_log_none
cache_access_log /var/log/squid/access.log
cache_effective_user proxy
cache_effective_group proxy
nano /etc/squid/blokir.txt
mkdir /cache
chown –R proxy:proxy /etc/squid/blokir.txt
chown –R proxy:proxy /cache
service squid stop
squid –z
service squid start
nano /etc.rc.local
iptables –t nat –A PREROUTING –j REDIRECT –p
tcp –s 172.10.10.0/255.255.255.0 –d 0/0 –dports 80 –to-ports 3128
ser net res
Mail/webmail
Apt-get install postfix courier-imap courier-pop
Maildirmake /etc/skel/Maildir
Adduser irul
Adduser irulkm
Nano /etc/postfix/main.cf
Tmbhkn
home_mailbox = MAildir/
Dpkg-reconfigure postfix
General intene site
System irul.com
Root
No
Other ok
Force
No
Mailbox site 0
Loal address ex +
Internet prot ipv4
Service postfix restart
Service courier restart
Apt-get install squirrellmail
Nano /etc/apache/apache2.conf
Include
“/etc/squirrelmail/apache.conf”
Nano
/etc/squirrelmail/apache.conf
User will prefer
Virtualhost
*:80>
Servername
mail.irul.com
Ser apache2
restart