Activity Stream
48,167 MEMBERS
6996 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Respected Member
    Bharat's Avatar
    Website's:
    ShineServers.Com Pickadedi.com

    Default Setup Squid as a HTTP proxy to browse blocked web sites!

    Have you ever worried about your government,workplace,school or ISP limitations for web sites? Are you behind Great firewall of china? are you worried about browsing speeds with overloaded or slow web proxy services?
    HTTP proxies are the best solution for you. And with squid cache you can make a nice HTTP proxy for your personal or family use.
    In my case I have tried SSH SOCKS5 method for access blocked sites but I feel it too slow because connection is encrypted but its so secure than HTTP proxy.
    But I don?t need much security like SOCKS5 offer So I have decided to setup squid as a proxy server for my personal use. And felt that its delivering blazing fast speed as same as I?m browsing without proxies.
    So now all my firefox traffic is going through HTTP Squid proxy running on UK 512MB XEN box that I had spare and I don?t thinking about going back to normal no proxy mode because speed is same as no proxy.
    So here is my guide to setup squid as a proxy server on ubuntu or debian for you!

    What you will need-



    • A VPS or dedicated server with minimum ram of 64MB (64MB of ram will be enough because squid doesn?t eat much ram)
    • Debian or Ubuntu installed on your server
    • NANO text editor installed on your server ( run ?apt-get install nano? to install it if you dont have it already)

    Steps-

    Install squid on your ubuntu or debian server, issue this command over SSH


    Code: 
    apt-get install squid

    Then squid is successfully installed and you need to setup squid to access internet because its currently set only for localhost
    squid?s config file is huge so we need to find some lines using nano on squid config file.
    Issue this commands to open squid config file with NANO text editor.


    Code: 
    nano /etc/squid/squid.conf




    On there we need to add 2 lines to configure this for our personal use.


    You can add then on top of the page. those 2 lines are


    http_access allow all
    http_access allow localnet

    Here is the squid.conf file after adding that 2 lines





    So that?s it on server side. Restart squid to load our configuration.


    Code: 
    restart squid

    Like I said previously on this guide I?m not focused on setting up security for squid like adding ACL (Access Control Lists) to prevent other users using your proxy etc.
    But this is 1000 times better than setting up a php web based proxy to browse the web.
    While server side setup complete we need to setup our web browsers to use our proxy. I think you are probably using firefox to browse the web so here is the configuration for firefox for other programs you can use the same.
    On firefox navigate to Tools=>Options=>Advanced=>Network=>Settings=>Manua l Proxy Configuration
    On that page enter your IP address that squid is installed and port as 3128 because we didn?t changed the default squid port. Also click the checkbox ?Use this proxy server for all protocols?





    Thats it!
    Note that

    • We didn?t setup Access Control Lists so any one who knows your squid server ip address and port can use your proxy.
    • When choosing a server for setting up squid for your use try to get a server which gives lowest ping times for your location which will help you to browse more fast.
    Bharat Reviewed by Bharat on . Setup Squid as a HTTP proxy to browse blocked web sites! Have you ever worried about your government,workplace,school or ISP limitations for web sites? Are you behind Great firewall of china? are you worried about browsing speeds with overloaded or slow web proxy services? HTTP proxies are the best solution for you. And with squid cache you can make a nice HTTP proxy for your personal or family use. In my case I have tried SSH SOCKS5 method for access blocked sites but I feel it too slow because connection is encrypted but its so secure than Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    when i put:-
    Code: 
    start squid
    it says me this:-
    Code: 
    start: Job failed to start
    please help me!

  4.     
    #3
    Banned
    Website's:
    CuraShare.Net CuraShare.Me CuraShare.Info
    sudo /etc/init.d/squid start
    sudo /etc/init.d/squid restart

    If it doesn't check the logs

  5.     
    #4
    Member
    Website's:
    imdber.org justpaste.me
    Any guide for CentOS?

    I did
    Code: 
    yum install squid -y
    nano /etc/squid/squid.conf
    and inserted the 2 lines

  6.     
    #5
    Respected Member
    Bharat's Avatar
    Website's:
    ShineServers.Com Pickadedi.com
    Quote Originally Posted by Apathetic View Post
    Any guide for CentOS?

    I did
    Code: 
    yum install squid -y
    nano /etc/squid/squid.conf
    and inserted the 2 lines
    Alright buddy i'll make a guide for centos . Thanks

  7.     
    #6
    Member
    Website's:
    imdber.org justpaste.me
    ^Would be looking forward to that

  8.     
    #7
    Banned
    thanks very good post... I will try this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Config Squid Proxy Server?
    By leafleech live in forum Server Management
    Replies: 3
    Last Post: 12th Nov 2011, 03:48 PM
  2. Replies: 5
    Last Post: 2nd Nov 2011, 03:42 AM
  3. Proxy blocked
    By FancyPants in forum Technical Help Desk Support
    Replies: 1
    Last Post: 4th Jun 2010, 09:14 AM
  4. http proxy
    By ivan1666 in forum Webmaster Discussion
    Replies: 1
    Last Post: 14th Feb 2010, 01:03 PM
  5. Replies: 3
    Last Post: 23rd Mar 2008, 07:35 PM

Tags for this Thread

BE SOCIAL