代理(tinyproxy)和内网穿透(ngrok,frp)



代理

tinyproxy

Platform:

  • Ubuntu 18.04

安装和配置:

$ sudo apt install tinyproxy -y
$ sudo vim /etc/tinyproxy/tinyproxy.conf
#### 1. 根据需要修改 port
#### 2. 修改 Allow <IP[/mask]>; 例:
####    Allow 172.0.0.1
####    Allow 192.168.1.0/24
####    Allow 111.112.113.123    ## 假设你需要被代理的上网电脑(它的)公网 IP 是 111.112.113.123
####    ## 注:Allow 后面的 IP 不是作为代理服务器 Ubuntu 18.04 的公网 IP,
####    ## 而是想要使用代理服务器的上网电脑的(公网)IP。

启动运行:

$ sudo service tinyproxy restart
$ sudo netstat -antp | grep tinyproxy  # 要确保看到 tinyproxy -- 运行着
$ [sudo service tinyproxy start]       # 如果上面 netstat 命令没有看到 tinyproxy

需要被代理的电脑配置代理服务器即可。

注:

如果在云主机上配置启动好了之后,但是连上代理却上不了网,可能的原因之一是因为所在的内网策略限制 – 总之配置对了之后,代理是可用的。



内网穿透 – 待补

ngrok

n/a

frp

n/a



Reference



发布了164 篇原创文章 · 获赞 76 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/qq_29757283/article/details/101027276
今日推荐