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

Using a VPS as a proxy under linux

Discussion in 'Proxies' started by loki_, Jul 19, 2012.

  1. loki_

    loki_ Registered Member

    Joined:
    May 20, 2012
    Messages:
    63
    Likes Received:
    8
    Location:
    #!/bin/bash/
    It turns out a lot of people don't know how to do this so I decided to put that hanging somewhere on the internet. You don't need to install special software or some squid firewall or anything. Here is what you need to do:
    1. open a terminal and type:
    ssh -D 5000 -l user your_vps_ip_or_address
    (it could be any number other than 5000 just avoid 80 and 443)

    2.open a browser(i personally use firefox for that), go to Edit->Preferences->Advanced->Network->Connection(Settings button)
    Select manual proxy configuration, leave all fields empty except SOCKS Host. There you need to type
    localhost
    And
    Port: 5000(or whichever you specified).

    That's it. As long as you have your terminal running you will be good to go.

    I'm pretty sure there is a way to do that in windows but idk-have't had windows on my computer for quite a while now... 10 years to be exact.
     
    • Thanks Thanks x 2
  2. saltypotato

    saltypotato Newbie

    Joined:
    May 24, 2012
    Messages:
    32
    Likes Received:
    1
    im going to try that out! i need to install linux or something on a vm :) now i gotta choose vmware or something else. i was reading that vmware doesnt work well with proxies :(
     
  3. loki_

    loki_ Registered Member

    Joined:
    May 20, 2012
    Messages:
    63
    Likes Received:
    8
    Location:
    #!/bin/bash/
    Just for the testing purpose-you don't really need to install a vm. A live cd would do just fine.

    As I said-the best thing is that whatever you do you coud be sure that your ip is clean. Especially if you choose a vps hosting that is really strict about what you do with your vps(cinfu for example).
     
  4. mazgalici

    mazgalici Supreme Member

    Joined:
    Jan 2, 2009
    Messages:
    1,489
    Likes Received:
    881
    Home Page:
    that won't make you a open proxy which might be found by others too?
     
  5. pyrorulez123

    pyrorulez123 Newbie

    Joined:
    Apr 10, 2012
    Messages:
    1
    Likes Received:
    0
    nice bro
     
  6. loki_

    loki_ Registered Member

    Joined:
    May 20, 2012
    Messages:
    63
    Likes Received:
    8
    Location:
    #!/bin/bash/
    Not sure if i get your question but as long as you are the only one who has ssh to that particular vps nobody else will be able to use it...
     
  7. 7mQZT

    7mQZT Newbie

    Joined:
    Feb 25, 2012
    Messages:
    32
    Likes Received:
    4
    Home Page:
    The port being opened(in the OP 5000) is only open on localhost/127.0.0.1 so no one else will be able to use the proxy.