https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh45xvuGXo6xhG-9OWUdp05kI5DKQhg45vYMtZyw9ZHRt4WTcWtBWQ1yVtUMzDoth31_6ZJbxFkwyyZPfPbKLI_vgOMy30sO8VAOCVoQrIDjmAPG36G50_ykPB_zJxFUIGWocixX4h4Wlo/https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqU9EN-G13CSKCmhOSaO_-nvwzqZKu19B_OpnK8bI31PreyJRcrMAQxIqFO4Si6sRqyAWCThXxVK8gRTg68Fb3MpHnzXbTHilvsMziqfTJD1R1D_V-Wluh4vnHnT8VdLdczYsCY0eSe4k/s1600/twitter_64.png

Konfigurasi Router dan Proxy

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

0 komentar:

:10 :11 :12 :13 :14 :15 :16 :17
:18 :19 :20 :21 :22 :23 :24 :25
:26 :27 :28 :29 :30 :31 :32 :33
:34 :35 :36 :37 :38 :39

Posting Komentar

Random Posts

Posting Terbaru