انجمنهای فارسی اوبونتو
کمک و پشتیبانی => نصب، راهاندازی و بروزآوری => نویسنده: ارباب! در 28 تیر 1393، 02:11 قظ
-
سلام دوستان!
چه طوری می شه در Terminal از Socks استفاده کرد؟!
-
احتمالا این بدردتون بخوره: http://tsocks.sourceforge.net/about.php
-
export all_proxy=socks5://host:port
-
export all_proxy=socks5://host:port
سلام دوست عزیز!
سرویس Socks برای Tor در دستگاه من روی localhost:9150 هست...
می زنم:
export all_proxy=socks5://127.0.0.1:9150
elinks twitter.com
اما بازم می بینم سانسور شده...
مشکل از کجاست؟!
-
export all_proxy=socks5://host:port
سلام دوست عزیز!
از Fedora 20 استفاده می کنم...
tsocks رو با این دستور نصب کردم:
sudo yum install tsocks
سعی کردم با توجه به چیزی که این جا گفته عمل کنم: http://alexborisov.org/tunnel-your-apps-via-ssh-with-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.)
مشکل چیه؟!
-
باید برنامه ای که استفاده می کنید از socks پشتیبانی کنه.
curl نیازی به torsocks نداره. شما همون کاری که گفتم رو انجام بده curl بدون مشکل کار می کنه.
به جای torsocks هم از privoxy استفاده کن: https://wiki.archlinux.org/index.php/privoxy (https://wiki.archlinux.org/index.php/privoxy)