According to the answer of this question, I have my /etc/tsocks.conf
containing these lines:
path {
server = localhost
server_port = 1081
reaches = <ip-address-of-server-b>/32
}
path {
server = localhost
server_port = 1082
reaches = <ip-address-of-server-d>/32
}
and I have run these two commands:
ssh -fND :1081 server-a
ssh -fND :1082 server-b
Now I want to use tsocks
to do a wget of a page first using the socks'
service listening to 1081 port and then using the other one listening to 1082 port. If I had only one service I know that I can do that through this command:
tsocks wget http://www.google.com
Now that I have more than one tsocks
services how can I do that? Can I provide for example the forwarding port through an option? I can't find something in the man pages of tsocks
. I want something like that:
tsocks --forwarding_port=1081 wget http://www.google.com
tsocks --forwarding_port=1082 wget http://www.google.com
TSOCKS_CONFFILE
withTSOCKS_CONF_FILE
. It should be a typo in the manual.. For more information you can see this page: https://bugzilla.redhat.com/show_bug.cgi?id=702864Thank you very much for the answer! :) Please update your answer with the right configuration file token!
– Thanasis Petsas Apr 01 '12 at 14:57