1 修改配置frp server配置文件
cat frps.ini
[common]
bind_port = 7000
token = password2020
systemd配置文件
cat /lib/systemd/system/frps.service
[Unit]
Description=fraps service
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
ExecStart=/root/frp/frps -c /root/frp/frps.ini #此处安实际情况修改
[Install]
WantedBy=multi-user.target
2 配置客户端
cat frpc.ini
[common]
server_addr = 47.52.34.64
server_port = 7000
token = password2020
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
vi /lib/systemd/system/frpc.service
i[Unit]
Description=fraps service
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
ExecStart=/root/frp/frpc -c /root/frp/frpc.ini #此处安实际情况修改
[Install]
WantedBy=multi-user.target