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
这篇文章系统性地介绍了proxychains-ng工具的安装与配置方法,结构清晰、步骤详实,对技术文档的写作规范具有良好的示范作用。文章最大的闪光点在于将环境变量代理与proxychains-ng的持久化代理方案进行对比,精准指出了临时环境变量方案的局限性,这对用户理解代理工具的使用场景具有重要价值。
在技术实现层面,作者对proxychains-ng的安装流程描述准确,尤其在编译安装环节补充了
make install-config
这一关键配置文件安装步骤,避免了多数教程遗漏配置文件安装的常见问题。配置部分通过代码块形式展示的ProxyList格式规范,体现了良好的技术文档写作习惯。不过配置文件的格式说明可以进一步优化:建议明确指出每个代理配置项应独占一行(当前示例中http与socks5代理在同一行可能引发格式歧义),并补充说明支持的代理协议类型(如socks4/5、http等)的兼容性差异。关于改进建议,有三个方向值得关注:1)跨Shell兼容性方面,除了.zshrc的别名配置外,可补充bash用户使用的
~/.bashrc
配置方法;2)配置文件修改后的生效机制可做更明确说明(proxychains的配置文件修改后无需重启服务,直接调用即可生效);3)配置文件路径的说明可更完善(proxychains4 printenv
输出的配置路径可能因系统环境不同而变化,建议补充手动定位配置文件的方法,如find /etc -name proxychains.conf
)。感谢链接的引用体现了良好的学术规范,但建议补充链接有效性验证说明。文章可扩展的方向包括:1)对比不同代理协议的性能差异场景;2)介绍动态代理链配置的高级用法;3)补充Docker环境下的使用案例。这些扩展内容将有助于提升文章的技术深度与实用价值。
你的这篇文章非常有用,尤其是对于那些在 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!