Date

在虚拟机安装kubernetes时遇到网络阻碍,解决方法如下:

1、windows安装psiphon3(略)

2、修改psiphon3监听地址(失败)

3、开启windows端口转发

netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=50000 connectaddress=127.0.0.1 connectport=psiphon3(localproxyport)  #windows转发psiphon3,注意listenaddress,不要写反!

netsh interface portproxy show v4tov4(netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=50000)

netstat -an|findstr 50000

当然,这个转发用ccproxy来做同样可以。

4、linux开启全局代理

vi /etc/profile

http_proxy=主机ip:50000

https_proxy=主机ip:50000

#no_proxy=

export http_proxy https_proxy

source /etc/profile

curl httpbin.org/ip

结果:成功


Comments