1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need Help turning a VPS into password protected Proxy server...HELP!

Discussion in 'Proxies' started by JuicyBlack, Dec 5, 2009.

  1. JuicyBlack

    JuicyBlack Regular Member

    Joined:
    Nov 27, 2008
    Messages:
    395
    Likes Received:
    179
    Location:
    Dark n Wet Place
    Hey guys!

    I got a VPS with some IPS which I'd like to password protect for private use. So I SSH'd into the vps, and did this:

    sudo apt-get update (PRESS ENTER)
    sudo apt-get install nano (PRESS ENTER)

    Installed nano to edit text files through the terminal then installed squid:

    apt-get install squid

    Everything went smoothly and after that I followed the steps as shown here:

    http://www.dodyweb.com/your-own-high-anonymous-private-proxy-with-squid-on-ubuntu/

    The problems I now face are:

    1.
    I don't know how to ACL an IP range, I would use an IP range because I have dynamic IP...and Even if I knew how to establish the range I would feel a lot better If I could somehow password protect the proxies, that way I could go into Proxyfirewall and enter the proxies along with the password and do my thing like that.

    2.
    I followed all the steps as shown here:
    http://www.dodyweb.com/your-own-high-anonymous-private-proxy-with-squid-on-ubuntu/

    I also used the IP I currently have assigned (for the ACL settings) but when I tried to enter that proxy into ProxyFirewall to route all the firefox traffic through it, nothing happened, I was still being detected with my regular IP... and then I entered the IP on Firefox's foxyproxy to test one more time but the pages wouldn't load, all I would see is a message saying:

    "SSL something..
    If your browser doesn't redirect you automatically click here"

    And then the browser would redirect me to the site I was trying to reach but again nothing would load on the browser, all I got was a white page.

    SO...

    Anyone knows of a better guide to turn a VPS into a password protected proxy server using squid? or is there any1 out there who could help me set this thing up????
     
    Last edited: Dec 5, 2009
  2. JuicyBlack

    JuicyBlack Regular Member

    Joined:
    Nov 27, 2008
    Messages:
    395
    Likes Received:
    179
    Location:
    Dark n Wet Place
    no one ever done this before? :( ... guess I gotta try at the ubuntu forums... agrrr....
     
  3. junkfood

    junkfood Registered Member

    Joined:
    Sep 9, 2009
    Messages:
    89
    Likes Received:
    79
    I'll advice 3proxy :) best proxy server, simple - and amazing.

    3proxy.ru
     
  4. dr4gon

    dr4gon Registered Member

    Joined:
    Sep 18, 2009
    Messages:
    94
    Likes Received:
    5
    Occupation:
    Making money...to say the least.
    Location:
    USA (maybe I'll leave one day)
    If you still need help configuring your proxy server, send me a message. I can do this for you...and anyone else who wants their own private proxy server as well.
     
  5. l0cke

    l0cke Regular Member

    Joined:
    Dec 7, 2008
    Messages:
    212
    Likes Received:
    70
    Occupation:
    Designer, Marketer, Real Estate Sales, Author
    Location:
    TX, US
    Home Page:
    yum install squid

    vi /etc/squid/squid.conf to your like

    the end.
     
  6. JuicyBlack

    JuicyBlack Regular Member

    Joined:
    Nov 27, 2008
    Messages:
    395
    Likes Received:
    179
    Location:
    Dark n Wet Place
    thanks for the input guys I kinda broke my head trying to get this to work and finally did it. The whole problem was that I wasnt' familiar with all the shell commands available but now getting the proxies up and running is easy ... the hard part is the NCSA or ACL implementation.

    The moment I try to add NCSA authentication all hell breaks loose and it shouldn't cause things are pretty much straight forward... this is what I am doing as far as NCSA:

    http://www.beginlinux.com/server_training/proxy-server/1049-squid-proxy-authentication

    ... Now prior to doing that my squid.conf file looks like this (ignore the BB color tags):

    PHP:
    [COLOR="Lime"]#Replace with VPS ips[/COLOR]
    acl ip1 myip 66.66.666.01
    acl ip2 myip 66.66.666.02
    tcp_outgoing_address 66.66.666.01 ip1
    tcp_outgoing_address 66.66.666.02 ip2
    [COLOR="Lime"]#If using this ACL thingy don't use NCSA and visceversa[/COLOR]
    acl ipku src 67.02.02.01/255.255.255.255
    http_access allow ipku
    [COLOR="Lime"]
    #Making highly annon[/COLOR]
    forwarded_for off
    header_access Allow allow all
    header_access Authorization allow all
    header_access Cache
    -Control allow all
    header_access Content
    -Encoding allow all
    header_access Content
    -Length allow all
    header_access Content
    -Type allow all
    header_access Date allow all
    header_access Expires allow all
    header_access Host allow all
    header_access 
    If-Modified-Since allow all
    header_access Last
    -Modified allow all
    header_access Location allow all
    header_access Pragma allow all
    header_access Accept allow all
    header_access Accept
    -Encoding allow all
    header_access Accept
    -Language allow all
    header_access Content
    -Language allow all
    header_access Mime
    -Version allow all
    header_access Cookie allow all
    header_access Set
    -Cookie allow all
    header_access Retry
    -After allow all
    header_access Title allow all
    header_access Connection allow all
    header_access Proxy
    -Connection allow all
    header_access All deny all
     
  7. neta1o

    neta1o Regular Member

    Joined:
    Sep 29, 2008
    Messages:
    388
    Likes Received:
    318
    Home Page:
    If you get ur sever reset back to defaults then PM me I'll set it up for you, it's CentOS right?
     
  8. JuicyBlack

    JuicyBlack Regular Member

    Joined:
    Nov 27, 2008
    Messages:
    395
    Likes Received:
    179
    Location:
    Dark n Wet Place
    Its ubuntu ... but CentOS terminal commands are kinda similar right? Anyhow I need some advice as to how to implement NCSA user authentication cause if I use an ACL I will have to specify my IP and since my IP is dynamic I'll have to change that dam ACL every time I want to access the proxies on that VPS...

    I've also read about PAM user authentication... dunno if that one is better or easier to set up... any ideas?
     
  9. Gonzalj

    Gonzalj Newbie

    Joined:
    Jun 1, 2016
    Messages:
    3
    Likes Received:
    0
    Gender:
    Male
    I would like some help if you're still available, thank you