frp
# 服务端简易版配置
bind_port = 7000
# http和https
vhost_http_port = 8090
vhost_https_port = 443
# 连接认证token
#token = 12345678
# 子域名
#subdomain_host = frp.ggball.top
# 自定义404 页面,要用绝对路径哦!
custom_404_page = /usr/local/frp_0.34.2_linux_amd64/404.html
# dashboard图形管理页面
dashboard_port = 81
dashboard_user = admin
dashboard_pwd = admin
~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 客户端简易版配置
[common]
server_addr = 1.15.141.114
server_port = 7000
# 配置ssh服务
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 23
#skywalking
[skywalking]
type = tcp
local_ip = 127.0.0.1
local_port = 9010
remote_port = 10000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[common]
server_addr = 1.15.141.114
server_port = 7000
# 如果服务端设置了token,这里也要加上
#token = 1234568
# 内网穿透名称
[gitlab_8090]
type = tcp
local_ip = 127.0.0.1
local_port = 8090
remote_port = 8090
[ssh_24]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 24
[code_server_8083]
type = tcp
local_ip = 127.0.0.1
local_port = 8083
remote_port = 8083
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 利用systemctl 自启动
# 服务端
# 创建后台启动模版
vi /etc/systemd/system/frps.service
# 内容如下:
[Unit]
Description=frps
After=network.target
[Service]
# /usr/local/src/frp_0.34.2_linux_amd64 frp所在位置
ExecStart=/usr/local/src/frp_0.34.2_linux_amd64/frps -c /usr/local/src/frp_0.34.2_linux_amd64/frps.ini
[Install]
WantedBy=multi-user.target
# 启动测试
systemctl start frps.service
# 查看启动状态
systemctl status frps.service
# 开机自启
systemctl enable frps.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 客户端
# 创建后台启动模版
vi /etc/systemd/system/frpc.service
# 内容如下:
[Unit]
Description=frpc
After=network.target
[Service]
# /opt/frp/frp_0.34.2_linux_amd64 frp所在位置
ExecStart=/opt/software/frp_0.34.2_linux_amd64/frpc -c /opt/software/frp_0.34.2_linux_amd64/frpc.ini
[Install]
WantedBy=multi-user.target
# 启动测试
systemctl start frpc.service
# 查看启动状态
systemctl status frpc.service
# 开机自启
systemctl enable frpc.service
systemctl restart frpc.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
demo
# 创建后台启动模版
vi /etc/systemd/system/code_server.service
# 内容如下:
[Unit]
Description=code_server
After=network.target
[Service]
ExecStart=/opt/frp/frp_0.34.2_linux_amd64/frpc -c /opt/frp/frp_0.34.2_linux_amd64/frpc.ini
[Install]
WantedBy=multi-user.target
# 启动测试
systemctl start frpc.service
# 查看启动状态
systemctl status frpc.service
# 开机自启
systemctl enable frpc.service
#
systemctl restart skywaking.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 外网地址
# no_docker
[ssh]
host:1.15.141.114
port:23
[skywalking]
host:1.15.141.114
port:10000
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
上次更新: 2022/01/03, 23:02:56