1.安装tinyproxy

1.1Ubuntu系统

apt-get install tinyproxy

1.2Centos7系统​​​​​​​

yum -y install tinyproxy

2.修改tinyproxy配置

vi /etc/tinyproxy/tinyproxy.conf

主要有两处配置 

2.1端口配置 

注意需要在你的防火墙中开启你设置的端口号

这是默认端口号8888,可以修改为你需要的
Port 9999

2.2访问IP配置

这是允许访问代理的IP地址,使用#注释掉Allow就是表示允许所有电脑IP都可以访问代理,较为方便
或者设置你自己需要代理的电脑的IP地址,只有该IP地址下的电脑能访问代理,较为安全。

#Allow 127.0.0.1
#Allow 192.168.0.0/16
#Allow 172.16.0.0/12
#Allow 10.0.0.0/8

3. 启动 TinyProxy 

service tinyproxy start       #启动

更多命令如下:
service tinyproxy restart     #重启
service tinyproxy stop        #停止
service tinyproxy status      #查看状态
tail -f /var/log/tinyproxy/tinyproxy.log  #查看tinyproxy日志
systemctl enable tinyproxy.service #开机启动

4.此时代理服务器就搭建好了。然后就是用自己的电脑连接了。

如ToDesk代理

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐