Setting Proxy Debian

Embed Size (px)

Citation preview

  • 8/16/2019 Setting Proxy Debian

    1/2

    SETTING PROXY

    1. apt-get install squid2. nano /etc/squid/squid.conf

    CTRL+W cari ==> http_port 3128 tambahkan transparent

    cache_mem 16 MB

    cache_mgr @tkj.com

    visible_hostname proxy.tkj.com

    #..CTRL+W cari ==> acl CONNECT

    tambahkan

    acl url dstdomain "/etc/squid/url"

    acl key url_regex -i "/etc/squid/key"

    http_access deny url

    http_access deny key

    acl lan src 10.20.30.0/24

    http_access allow lan

    http_access allow all

    #..CTRL+w cari ==> http_acces deny all (ada dua, ditambahkan #) SIMPAN.

    3. BLOKIR SITUScd /etc/squid/

    4. /etc/squid#vim urlfacebook.comtwitter.com

    5. debian-server:/etc/squid#vim keyporn

    sex

    6. debian-server:/etc/squid#squid -z

    kalo ada respon already running (oke)

    #iptables -t nat -A PREROUTING -s 10.20.30.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128

    #iptables-save > /etc/iptables

  • 8/16/2019 Setting Proxy Debian

    2/2