LOADING . . .

通过squid将本地作为代理让不可联网的远端服务器联网

  一种方法 https://unix.stackexchange.com/questions/116191/give-server-access-to-internet-via-client-connecting-by-ssh

  以上方法在我这里不太行。尝试了另一种方式,连上了:

  1、远端服务器需要能ping到我们本地ip,windows通过ipconfig查看。

  2、如果本地能ping到远端,而远端ping不到本地,很有可能是本地防火墙的原因,关闭防火墙再试。

  3、本地的squid软件按网页中方式配置好。

  4、直接在远端服务器设置网络代理即可:

export http_proxy=http://<local_ip>:<squid_port_default_3128>
export https_proxy=http://<local_ip>:<squid_port_default_3128>

 

posted @ 2024-02-06 11:57  颀周  阅读(45)  评论(0编辑  收藏  举报
很高兴能帮到你~
点赞