Академический Документы
Профессиональный Документы
Культура Документы
# nano /etc/resolv.conf
Isikan =>
Search www.sekolah.sch.id
Search www.smkbisa.com
nameserver 192.168.100.1
nameserver 8.8.8.8
nameserver gateway internet (isp)
# nano /etc/sysctl.conf
Hilangkan tanda hastag (#)
Net.ipv4.Ip_forward=1
# nano /etc/hosts
127.0.0.1 localhost
192.168.100.1 sekolah.sch.id ServerUkk2017
192.168.100.1 smkbisa.com ServerUkk2017
Konfigurasi iptables :
#iptables X
#iptables t nat F
#iptables t nat A POSTROUTING o eth0 j MASQUERADE
#iptables-save > /etc/iptables.conf
#echo iptables-restore < /etc/iptables.conf >>/etc/network/if-up.d/iptables
#nano /etc/network/if-up.d/iptables tambahkan pada baris pertama #!/bin/sh
#chmod +x /etc/network/if-up.d/iptables
# reboot /init 6
Install squid3
#apt-get install squid3
Konfigurasi squid
#nano /etc/squid3/squid.conf
http_port 3128 transparent
icp_port 3130
cache_mem 8 MB
cache_dir ufs var/spool/squid3 100 16 256
cach_mgr saya@sekolah.sch.id
visible_hostname www.sekolah.sch.id
acl Safe_ports port 3128
Acl blacklist dstdomain /etc/squid3/blacklist.txt
http_access deny blacklist
Acl lan src 192.168.55.0/24
http_access allow !Safe_ports
http_access allow lan
http_access deny manager
http_access allow
install DNS
Konfigursi dns
#nano named.conf.local
Zone sekolah.sch.id{
Type master;
File /var/cache/bind/db.skh;
};
Zone smkbisa.com{
Type master;
File /var/cache/bind/db.smk;
};
#nano /var/cache/bind/db.skh
$TTL 604800
@ IN SOA sekolah.sch.id. root.sekolah.sch.id. (
2 ; serial
604800 ; refresh
86400 ; retry
2419200 ; expire
604800 ; negative cache TTL
);
@ IN NS sekolah.sch.id.
IN A 192.168.100.1
NS IN A 192.168.100.1
www IN A 192.168.100.1
ftp IN A 192.168.100.1
konfigrasi apache2
#nano 000-default.conf
<VirtualHost *:80>
ServerName www.smkn3bpn.sch.id
ServerAlias smkn3bpn.sch.id
ServerAdmin webmaster@smkn3bpn.sch.id
DocumentRoot /home/saya/www/html
<Directory /home/saya/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
Require all granted
</Directory>
</VirtualHost>
Kirim aplikasi worpress mengunakan winspc atau filezila pada directory yang sesuai dengan konfigurasi
apache2 (000-default.conf)