frp穿透教程

frp网址

https://github.com/fatedier/frp/releases

1.配置frp的服务端(外网租用服务器centos7.4)

1)下载linux端解压将frps frps.ini上传服务器/root下

frps.ini配置内容

[common]
bind_port = 7070    # 远程连接你时客户端使用的端口
vhost_http_port = 2034
2)编写s.sh启动脚本放在root下

脚本内容:

# 运行次脚本即可启动服务
#! /bin/bash
cd /root/frp_0.29.1_linux_amd64
screen ./frps -c ./frps.ini
3)复制s.sh启动脚本到系统自启文件夹下,并给予权限
cp s.sh /etc/init.d/
cd /etc/init.d/
chmod +x s.sh
4)重启服务器

2.配置frp的客户端(本地需要穿透的服务器)

1)centos7.4系统

将frpc frpc.ini拷贝至 /root

frpc.ini 配置内容如下

[common]
# 外网服务器的ip
server_addr = 49.235.255.29   
# frp连接的端口(和上面设置的一致)
server_port = 7070

[ssh]
# 连接方式
type = tcp
# 本地ip
local_ip = 10.10.27.42
# 本地需要穿透的端口
local_port = 25565
# 远程访问的端口
remote_port = 25565
运行frpc

2)winr2012系统

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值