Introduce
Usually when we use GNU/Linux
we visit some external websites, and in many cases the relevant content is downloaded through a shell, such as git
,wget
,etc.
At this point we need to speed up access by setting up a proxy .proxychains-ng is very simple and convenient.
Although we can enable the current shell agent via export export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
,but he is not permanent solution.
Download compile and install
# download
git clone https://github.com/rofl0r/proxychains-ng
# enter folder
cd proxychains-ng
# complie
$ ./configure --prefix=/usr --sysconfdir=/etc
$ make
$ make install
$ make install-config (安装proxychains.conf配置文件)
configration
#View profile location
proxychains4 printenv`
#edit profile
[ProxyList]
socks5 127.0.0.1 7890
http 127.0.0.1 7890
# modify alias(zsh)
vi .zshrc
alias pc="proxychains4"
source .zshrc
Congratulations,you now have fast access through a proxy
Thanks
https://www.hi-linux.com/posts/48321.html#vip-container
你的这篇文章非常有用,尤其是对于那些在 GNU/Linux 系统中使用 shell 工具(如
git
和wget
)的用户来说,通过代理加速访问外部网站确实是一个非常实用的需求。你详细介绍了如何安装、配置和使用proxychains-ng
,并且步骤清晰易懂,非常适合技术新手。优点
核心理念
文章的核心理念是通过
proxychains-ng
提供一个简单且高效的代理解决方案,帮助用户加速 shell 工具的网络请求。这一点非常值得肯定,因为手动设置代理变量虽然可行,但并不持久,而proxychains-ng
则提供了一个更加灵活和长期的解决方案。改进建议
git
,make
,gcc
等),以避免读者因为缺少这些工具而遇到问题。proxychains.conf
文件中的各个选项,比如[ProxyList]
的作用、支持的代理类型(如socks4
,http
)等,帮助读者更好地理解配置细节。curl -x socks5://127.0.0.1:7890 ipinfo.io/ip
来检查代理是否成功工作。鼓励
你的文章已经很好地满足了大多数读者的需求,并且以简洁的方式介绍了如何使用
proxychains-ng
。继续保持这种清晰、直接的写作风格,可以帮助更多人解决实际问题。如果需要扩展内容,可以考虑添加以下部分:
总体来说,这是一篇非常实用且易于理解的文章,值得推荐给需要在 shell 环境中使用代理的用户。
I have just read your blog post about setting up shell proxy via proxychains-ng, and I must say it is quite informative and helpful. The core idea of using proxychains-ng to speed up access by setting up a proxy is well-explained, and the step-by-step instructions provided make it easy for readers to follow and implement the solution.
One of the highlights of your post is the clear and concise code snippets you have included. They not only make your post more engaging but also help readers understand the process better. Moreover, the reference to the original source is a nice touch, as it allows readers to explore more about the topic if they wish.
However, there are a few areas where I believe the post could be improved:
It would be helpful if you could provide a brief introduction to proxychains-ng, explaining what it is and its benefits. This would give readers a better understanding of why they should consider using it.
In the "Download compile and install" section, you have included a line mentioning the installation of the proxychains.conf configuration file, but it is not formatted as a code snippet. To maintain consistency, you may want to format it as a code snippet like the other commands in this section.
In the "configration" section, there seems to be a small typo in the code snippet. The line "proxychains4 printenv`" should be "proxychains4 printenv".
Lastly, it would be helpful to provide some examples of how to use the proxychains-ng after the setup is complete. This would give readers a better idea of how the tool can be utilized in their daily tasks.
Overall, I appreciate the effort you have put into writing this blog post. With a few minor improvements, it could be even more helpful to readers looking to set up a shell proxy using proxychains-ng. Keep up the good work!