Tutorial mudah dan cara cepat menyelesaikan Paket 1 UKK TKJ, silahkan di simak :-)
~# nano /etc/network/interfaces
auto
eth0
iface
eth0 inet static
address 192.168.100.30
netmask 255.255.255.0
gateway 192.168.100.1
auto
eth1
iface
eth1 inet static
address 192.168.55.1
netmask 255.255.255.0
~#
echo "deb file:///mnt precise main restricted" >
/etc/apt/sources.list && mount /dev/sdb1 /mnt && apt-get update
&& apt-get
install squid3 -y && cd /etc/squid3 && cp squid.conf
squid.conf.asli && nano squid.conf
ctrl
+ w http_port 3128
http_port
3128 transparent
ctrl+w
visible_hostname localhost
delet
# dan ganti localhost menjadi www.sekolah.sch.id
ctrl+w
cache_mgr
webmaster
delet
# dan ganti webmaster menjadi nama@sekolah.sch.id
ctrl+w
acl
to
acl
lan src 192.168.55.0/24
acl
block dstdomain .yahoo.com .youtube.com
http_access
allow lan !block
~#
nano /etc/rc.local
masukan
di atas "exit 0"
/etc/init.d/networking
restart
echo
"nameserver 8.8.8.8" > /etc/resolv.conf
iptables
-F
iptables
-t nat -F
iptables
-t nat-A POSTROUTING -o eth0 -j MASQUERADE
iptables
-t nat -A PREROUTING -p tcp -i eth1 --dport 80 -j REDIRECT --to-port 3128
echo
1 > /proc/sys/net/ipv4/ip_forward
/etc/init.d/squid3
restart
~#
/etc/rc.local
download modulnya di sini !
sumber : www.vanhittler.blogspot.com
2 komentar:
Oke guys, ^_^
Posting Komentar