frps内网穿透

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

2、下载对应的安装包,解压,在服务器上直接配置frps.ini文件即可

[common]
bind_port = **** // 服务端与客户端对应的端口
vhost_http_port = **** //客户端http端口
token = **** //服务端与客户端密匙
dashboard_port = *** //frps服务端面板端口
dashboard_user = *** //frps服务端面板登陆用户名
dashboard_pwd = **** //frps服务端面板登陆密码

3、配置服务自启动,在下载安装包里有个sytemd文件夹,修改frps.services里对应的frps.ini文件路径,将frps.service拷贝到/etc/systemd/system文件夹中,运行systemctl enable frps systemctl start frps即可,这样服务端就配置完成了。

4、客户端也同样下载对应的版本,然后配置frpc.ini文件即可

[common]
server_addr = 服务器IP地址
server_port = ** //同服务器端一样
token = ** //同服务器端一样

[web]
type = http
local_port = 80
custom_domains = ***.shaogroup.com

[static_file]
type = tcp
remote_port = 8090
plugin = static_file
plugin_local_path = /mnt/movie 暴露的文件夹
plugin_strip_prefix = static
plugin_http_user = *** 访问的用户名
plugin_http_passwd = **** 访问的密码

评论

此博客中的热门博文

FreeBSD安装Pure-FTPd及user manager for PureFTPd

debian lighttpd php ssl

解决nginx出现File not found的问题