View previous topic :: View next topic |
Author |
Message |
MarkYork n00b
Joined: 01 Feb 2011 Posts: 20
|
Posted: Sat Feb 09, 2013 8:37 pm Post subject: Socks5 |
|
|
I'm working on a business project to implement GNU/Linux as the main OS on a business unit in Argentina.
We connect to the client's network over SOCKS5 and I'm trying to sort out what is the best SOCKS client for my needs. I've been experimenting with tsock, which has worked out very well, but it has 1 main drop back, which is the luck of an ID prompt. I have no problems setting the user ID and password on the tsocks.conf file, but this will be shared machines and it's not a possibility to share the SOCKS ID.
Do you guys know a socks client that will prompt for a user ID and password instead of saving it to the main conf file? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sat Feb 09, 2013 10:05 pm Post subject: |
|
|
What about if you patch tsock to read a configuration file that is per-user, rather than per-machine? This would enable you to have private SOCKS IDs specified in configuration files in user home directories. |
|
Back to top |
|
|
MarkYork n00b
Joined: 01 Feb 2011 Posts: 20
|
Posted: Sun Feb 10, 2013 12:05 am Post subject: |
|
|
Sounds like a good alternative. But... I wouldn't know how to patch tsocks to perform such a task. What do you mean with patch it? you mean to add some lines to the code so that it reads the config from $HOME? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sun Feb 10, 2013 5:15 am Post subject: |
|
|
Yes. |
|
Back to top |
|
|
MarkYork n00b
Joined: 01 Feb 2011 Posts: 20
|
Posted: Mon Feb 11, 2013 2:44 am Post subject: |
|
|
Ok, and how would you do it? |
|
Back to top |
|
|
miket Guru
Joined: 28 Apr 2007 Posts: 488 Location: Gainesville, FL, USA
|
Posted: Thu Feb 28, 2013 6:35 am Post subject: |
|
|
MarkMan wrote: | Ok, and how would you do it? |
I wanted that too. While I can't say that I've any great success so far in making tsocks work (I'm searching for a solution for that), I have figured out the configuration-file problem: set the TSOCKS_CONF_FILE environment variable to the name of the configuration file. Here's an example:
Code: | TSOCKS_CONF_FILE=my_tsocks.conf tsocks midori |
I figured this out by examining the tsocks source code. I thought I was going to need to patch the code if I couldn't find an some undocumented hook. I found that undocumented hook, so I didn't bother modifying the code.
I still couldn't make tsocks work for me, but in my looking through the source I find another environment variable, TSOCKS_DEBUG, which sets the debug level. It was by examining the debug output that I found that tsocks indeed did pick up the configuration from the file I specified by TSOCKS_CONF_FILE.
Now if I can only get the thing to work... |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Thu Feb 28, 2013 8:46 am Post subject: Re: Socks5 |
|
|
You can set socks user + socks password with environment variables too. For my purpose I set them into a file, that I source it with just before I call something like |
|
Back to top |
|
|
|