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

A quick guide to SSH tunnelling

Discussion in 'Proxies' started by fatboy, Dec 4, 2009.

  1. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    I have been asked a few times about how to set up a VPS as a SOCKS proxy with Putty so slapped this guide together this evening.

    I apologise for the layout, I did it in word and then saved as webpage as I coudn't be assed to do it from scratch :)

    Anyway, its a step through how to use a VPS and Putty to set up a tunnel.

    Code:
    http://fatboy.me.uk/sshtunnel/sshtunnel.htm
    May be useful to someone!!
     
    • Thanks Thanks x 3
  2. userlogsin

    userlogsin Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 14, 2009
    Messages:
    240
    Likes Received:
    23
    Location:
    On your screen...lol
    Nice info. Was just looking for this.
     
  3. clickbunch

    clickbunch Newbie

    Joined:
    Dec 3, 2009
    Messages:
    28
    Likes Received:
    4
    Home Page:
    VERY useful.... how would one go about using this same system for automation on multiple computers? (NOTE- Automation- meaning, click a button and you are now using computer 3's ip address, seamlessy)

    Are there programs written on top of putty to get this done? If I were to create a program, which language would it have to be in.

    Thx in advance!
     
  4. CSalt2

    CSalt2 Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 5, 2009
    Messages:
    753
    Likes Received:
    357
    hey fatboy how could i make it so i can make proxies i can use like exclusive proxies i mean with the server number and port
     
  5. tele f0n3

    tele f0n3 BANNED BANNED

    Joined:
    Mar 30, 2008
    Messages:
    12
    Likes Received:
    5
    Same thing is posted here http://www.blackhatworld.com/blackhat-seo/proxies/56333-ssh-tunneling-100-effective.html
     
  6. JuicyBlack

    JuicyBlack Regular Member

    Joined:
    Nov 27, 2008
    Messages:
    395
    Likes Received:
    179
    Location:
    Dark n Wet Place
    Any1 has a guide to turn a VPS into a password protected proxy server with squid? the one I followed (which is on this board) doesn't seem to explain the password protection thingy and I ended up with proxies that don't really work.... any ideas?
     
  7. CSalt2

    CSalt2 Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 5, 2009
    Messages:
    753
    Likes Received:
    357
    which one did you follow?
     
  8. CSalt2

    CSalt2 Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 5, 2009
    Messages:
    753
    Likes Received:
    357
    wow... I setup everything exactly right, but its saying proxy server refused connection!

    Is this a problem with my VPS service?
     
  9. JuicyBlack

    JuicyBlack Regular Member

    Joined:
    Nov 27, 2008
    Messages:
    395
    Likes Received:
    179
    Location:
    Dark n Wet Place
    hey there I followed this tut:

    http://www.blackhatworld.com/blackhat-seo/proxies/139901-tutorial-setting-squid-your-vps-proxy.html

    I don't get the problem with the connection being refused on my VPS, I think my problem is rather on the configuration side of SQUID..... are u tunneling? If u are then obviously I am out of line here lol....

    I haven't tried tunneling but instead I am trying to set up a proxy server with squid..... If it I can't get it to work I might give tunneling a go....
     
  10. CSalt2

    CSalt2 Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 5, 2009
    Messages:
    753
    Likes Received:
    357
  11. JuicyBlack

    JuicyBlack Regular Member

    Joined:
    Nov 27, 2008
    Messages:
    395
    Likes Received:
    179
    Location:
    Dark n Wet Place
    ahh that one is quite good.... however instead of 3proxy I am using SQUID....I was using this thread:

    http://www.blackhatworld.com/blackhat-seo/proxies/139901-tutorial-setting-squid-your-vps-proxy.html

    To be honest the thread u quoted seems a lot easier and it even has a video agrr I should have gone that way... anywho....Just figured out what was wrong with my set up... when I used the port to access my VPS.. I entered the port my VPS company had provided... the thing is... I think squid has a default port 3128 or so if I remember correctly.... and once I replaced that port on foxyproxy I was able to browse through my high anon VPS proxy :) YAY!!!

    Now there are 2 things I need to figure out....

    1. I need to know if the rDNS needs to be changed
    2. Instead of ACL'ing all the allowed IPs I'll use password authentication through NCSA....

    In the end that outta give me a setup similar to what some providers use, in other words, I'll have an IP/port, a username and a pass... So I believe I am 60% there :)
     
    Last edited: Dec 7, 2009
  12. CSalt2

    CSalt2 Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 5, 2009
    Messages:
    753
    Likes Received:
    357
    Ok I used myzonas tutorial and it worked great, I'm tunneling a proxy now fo shoo
     
  13. JuicyBlack

    JuicyBlack Regular Member

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


    [​IMG]

    I have 3 VPS more to configure so I'll use myzona's tut to do it..... now.. .its coffee time for me..

    [​IMG]
     
  14. KevinK

    KevinK Junior Member

    Joined:
    Jul 24, 2008
    Messages:
    159
    Likes Received:
    87
    Said something about dreams -- I sell cats... not really!

    Think your before coffee and after pics are backwards...
    or you're not a big coffee fan which is why the similarity. ;)

    whatz catz gotz tadu wit tunnelin anyways??????????
     
  15. gfawkes

    gfawkes Newbie

    Joined:
    Oct 13, 2008
    Messages:
    34
    Likes Received:
    7
    Occupation:
    researcher
    the guys from Hak5 did a really good show on SSH tunneling. Check it out http://www.hak5.org/episodes/episode-614
     
    • Thanks Thanks x 1