Konfigurasi Router dan Proxy
ROUTER
#nano /etc/network/interfaces
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.16
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
auto eth1
iface eth1 inet static
address 192.168.50.1
netmask 255.255.255.0
network 192.168.50.0
broadcast 192.168.50.255
ctrl+x
y
enter
#nano /etc/sysctl.conf
net.ipv4.ip_forward=1 (hilangkan tanda pagar)
ctrl+x
y
enter
#nano /etc/rc.local
iptables -t nat -A POSTROUTING -s 192.168.50.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
ctrl+x
y
enter
#/etc/init.d/networking restart
enter
PROXY
apt-get install squid
#nano /etc/squid/squid.conf
ctrl+w : cache_mgr rian_oseady@smkn2.sch.id
visible_hostname www.smkn2.sch.id
http_port transparent
acl connect (tulis tepat di bawah nya)
acl haram dstdom_regex "/etc/haram.txt"
acl halal src 192.168.50.0/24
http_access deny haram
http_access allow halal
ctrl+x
y
enter
#nano /etc/haram.txt
facebook.com
youtube.com
ctrl+x
y
enter
#/etc/init.d/squid restart
enter
Random Posts
Posting Terbaru
3
Agama
Alay
Aneh
Aplikasi
Bahasa Tubuh
Barcode
Bass
Bego
Beladiri
Binatang
Bisnis
Bodoh
Bola
Capoeira
Cerita Lucu
Cinta
Code
Do'a
Emotion
Facebook
Finger
Gambar Lucu
Game
Goblok
Gokil
Gratis
Guitar
Hack
Hacker
Hantu
Ilmu Komputer
Indonesia
Info Handphone
Informasi
Intermezo
Internet
IPhone
Islam
Isyarat
Kiat
Kocak
Konyol
Koplak
Kunci Lagu
Lebay
Lirik Lagu
LPI
Lucu
Maksud Isi Hati
Malaysia
Maling
Membaca Pikiran
Mitos
Musik
Olah Raga
Otomotif Motor
Perasaan
Perguruan Tinggi
Pertandingan
Piala AFF
Promo
Puisi
SEO
Sepak Bola
Smadav
Sunah
Tab
Tips
Trick
Tutorial Blog
Twitter
UFO
Unik
Universitas
Vietnam
0 komentar:
:18 :19 :20 :21 :22 :23 :24 :25
:26 :27 :28 :29 :30 :31 :32 :33
:34 :35 :36 :37 :38 :39
Posting Komentar