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
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!