Ale*_*exP 6 ssh networking proxy port-forwarding socks5
我已经成功地从 Linux 向另一台服务器设置了ocks5代理服务器,如下所示:
\nssh -D 9090 -N -f user@192.168.76.102\n然后我更改了mozilla浏览器中的设置以使用socks代理,并且它有效,我可以上网。我想要做的是在 Linux 命令行中设置此设置,这样我就可以从那里访问互联网,如下所示:wget www.google.com \n首先我尝试编辑 /etc/environmental 文件:
export http_proxy=socks5://127.0.0.1:9090 \n\nRun Code Online (Sandbox Code Playgroud)\n但它不起作用:
\nwget www.google.com \nError parsing proxy URL socks5://127.0.0.1:9090: Unsupported scheme \xe2\x80\x98socks5\xe2\x80\x99.\n\nRun Code Online (Sandbox Code Playgroud)\n然后我安装了 proxychains4 ,并在 /etc/proxychains4.conf 中添加:
\nsocks5 127.0.0.1 9090
但仍然不起作用:
\nResolving www.google.com (www.google.com)... failed: Temporary failure in name resolution.\nwget: unable to resolve host address \xe2\x80\x98www.google.com\nRun Code Online (Sandbox Code Playgroud)\n您对我如何完成这项工作有什么想法吗?
\n谢谢。
\n