HALEN666 Posted August 6, 2007 Share Posted August 6, 2007 hey guys this is my question and i hope somebody can help me. how can i set up a sock proxy in my server, or in servers i have access to hehehe you know i wanna be able to set up a sock proxy at home and be able to access that SOCK proxy from school and any other place. for people who is gonna tell me to use a webproxy, a regular proxy program or anything like that thanks i already know that. however, what i do not know is how to set up a sock proxy, there are some scripts to set up webproxies; however, i wonder if there is a script or a little program to set up a sock proxy in a server. thank you guys and have a good one Quote Link to comment Share on other sites More sharing options...
Justin Ewing Posted August 8, 2007 Share Posted August 8, 2007 1) ssh -D 1080 user@domain.com # Make sure the version of ssh you have supports both SOCKS v4 and SOCKS v5. The one I had was just v4, and it won't work. The best way to check is "man ssh" and see if it just mentions SOCKS or "SOCKS4 and SOCKS5" 2) Proxy Auto-Configuration (pac) File: This does NOT work: function FindProxyForURL(url, host) { if (dnsDomainIs(host, ".wherever.com")) return SOCKS localhost:1080; else return DIRECT; } This will work: (note SOCKS5 instead of SOCKS) function FindProxyForURL(url, host) { if (dnsDomainIs(host, ".wherever.com")) return SOCKS5 localhost:1080; else return DIRECT; } 3) Lastly, you need to make sure that the DNS queries for machines on the remote network get resolved on the remote-side of the ssh tunnel. Using Firefox, open a new tab or window, and go to URL "about:config" and change "network.proxy.socks_remote_dns" to "true". Those were the 3 key pieces of information I wasn't able to find in a single location, so hopefully this will do it. If the above doesn't work, let me know because I probably just forgot some little tidbit, as I'm currently using this very same setup right now. For what it's worth, I did all the above using the linux Ubuntu distribution as well as Windows XP. I'm sure it will work for MacOS as well. Quote Link to comment Share on other sites More sharing options...
HALEN666 Posted August 9, 2007 Author Share Posted August 9, 2007 hey man thank you, i already knew that about using cygwin in xp and get a ssh server, but you know, i wanted to get something a little bit nicer, i wonder if there is a program that would install a ssh proxy in a computer without having to install cygwin. something like cgi proxy which is only a file or the php proxy would be nice. i have somr servers lolĀ in which i would like to install a ssh proxy and be able to connect to them and then i would be able to hide my self with them. thank you anyway man if you know about a program for xp that does what i need please lemme know, i have found some programs but they are for linux and the severs are windows 2003 so they don't halp me lol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.