export all_proxy=socks5://host:port
سلام دوست عزیز!
از Fedora 20 استفاده می کنم...
tsocks رو با این دستور نصب کردم:
sudo yum install tsocks
سعی کردم با توجه به چیزی که این جا گفته عمل کنم:
http://alexborisov.org/tunnel-your-apps-via-ssh-with-tsocksدر etc/tsocks.conf/ زدم:
server = 127.0.0.1
server_port = 9150
حالا وقتی اینو در Terminal می زنم:
tsocks curl wordpress.com
می گه:
23:03:59 libtsocks(6405): SOCKS V4 connect rejected:
23:03:59 libtsocks(6405): Unknown reason
501 Tor is not an HTTP Proxy
Content-Type: text/html; charset=iso-8859-1
<html>
<head>
<title>Tor is not an HTTP Proxy</title>
</head>
<body>
<h1>Tor is not an HTTP Proxy</h1>
<p>
It appears you have configured your web browser to use Tor as an HTTP proxy.
This is not correct: Tor is a SOCKS proxy, not an HTTP proxy.
Please configure your client accordingly.
</p>
<p>
See <a href="https://www.torproject.org/documentation.html">https://www.torproject.org/documentation.html</a> for more information.
<!-- Plus this comment, to make the body response more than 512 bytes, so IE will be willing to display it. Comment comment comment comment comment comment comment comment comment comment comment comment.-->
</p>
</body>
</html>
از اون طرف Tor هم در Terminal می نویسه:
Jul 19 23:03:59.000 [warn] Socks version 71 not recognized. (Tor is not an http proxy.)
مشکل چیه؟!