how to configure proxy debian


              proxy server is the link between the server with the internet, with this proxy, the server can do filtering sites that are not suitable to be accessed.
              here we will explain how the proxy settings using squid. squid is one of the packages provided by linux as a proxy, whereas here we will provide tutorial for setting proxy in debian linux.


1. Install Proxy Server
  # apt-get install squid
2. Edit / Configure
  #mcedit /etc/squid/squid.conf
    search F7 word "http_port 3128" then add the word "transparent"
        behind
    search F7 word "cache_mem" (under the word "#default")
        then replace the word "8" to "32" & mark # deleted
   search F7 word "cache_mgr" (under the word "#default")
        then replace the word "webmaster" to
        "dewi@gmail.com" & # sign deleted   
   search F7 word "visible_hostname" hover over "#none"
        (under the word "#default")
        then "#none" removed replaced "visible_hostname dewi.com"
    search F7 word "acl CONNECT" then below it type the sentence below:
        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 192.168.10.0/24 ---> your IP network debian
        http_access allow lan
        http_access allow all
    search F7 word "http_access deny all", there are 2 sentences and add # ahead
        both sentences ... there are 2 pieces
3. Create the url & key configuration file
    #cd / etc / squid /
    #nano url
      detik.com
      sctv.co.id
   #nano key
      porn
      sex

4. Restart Squid
    #squid -z
    #iptables -t nat -A PREROUTING -s 192.168.10.0/24 -p tcp --dport 80 -j REDIRECT
     --to-port 3128
    # / etc / init.d / squid restart


Share:

No comments:

Post a Comment

About Me

Categories

Popular

Followers

Total Pageviews

Ordered List

  1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  2. Aliquam tincidunt mauris eu risus.
  3. Vestibulum auctor dapibus neque.

Recent Posts