frp 内网穿透
config server side
login into vps
ssh root@155.254.193.168
cat frps.ini
[common]
bind_port = 7000
token = areyouok
dashboard_port = 7500
dashboard_user = maksim
dashboard_pwd = zxc123123
config auto start in deamon mod
ubuntu or centos both support the configruation like this
cat /etc/systemd/system/frps.service
[Unit]
Description=frps daemon
After=syslog.target network.target
Wants=network.target
[Service]
Type=simple
ExecStart=/root/frp/frps -c /root/frp/frps.ini
Restart= always
RestartSec=1min
[Install]
WantedBy=multi-user.target
config client side
[common]
server_addr = some_ip
server_port = 7000
token = some_secret_string
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
cat /etc/systemd/system/frpc.service
[Unit]
Description=frpc daemon
After=syslog.target network.target
Wants=network.target
[Service]
Type=simple
ExecStart=/home/maxbee/frp/frpc -c /home/maxbee/frp/frpc.ini
Restart= always
RestartSec=1min
ExecStop=/usr/bin/killall frpc
[Install]
WantedBy=multi-user.target