frp内网穿透组建外网访问

内网穿透,frp介绍请移步搜索引擎,这里直接干货

1,下载地址 https://github.com/fatedier/frp/releases

  

2,复制除了window平台的文件

3,修改frps的执行权限

chmod u+x frps 

3,修改 frps.ini 做服务器配置

[common]
bind_addr = 0.0.0.0 -- 本机网卡
bind_port = 7000 -- 连接端口
vhost_http_port = 8888 -- http端口

4,启动服务

如下即可成功

[root@mini frp]# ./frps -c frps.ini
2020/04/23 09:31:12 [I] [service.go:141] frps tcp listen on 0.0.0.0:7000
2020/04/23 09:31:12 [I] [root.go:205] start frps success

查看  netstat -tunlp

tcp6 0 0 :::8888 :::* LISTEN 15792/./frps
tcp6 0 0 :::7000 :::* LISTEN 15792/./frps

5,客户端连接

[common]
server_addr = abeiyun
server_port = 7000

[web02]
type = http
local_ip = 127.0.0.1
local_port = 8887
use_encryption = false
use_compression = false
custom_domains = [your ip]

代理tcp如mysql

[tcp_mysql]
type = tcp
local_ip = 127.0.0.1
local_port = 3306
remote_port = 3306

服务器查看端口

tcp6       0      0 :::3306                 :::*                    LISTEN      15792/./frps     

*******************************************************************************************************************************

感谢阿贝云提供的免费云服务器和免费虚拟主机,1C1G5M配置,搭配内网穿透,真香,看视频听歌曲无压力,*

运行起来也相当流畅,网速个人使用是真的赞,欢迎大家使用

*******************************************************************************************************************************

猜你喜欢

转载自www.cnblogs.com/zqq1234/p/12763839.html