跳转至

frp 配置

  • 创建 frps.service 文件

    [Unit]
    # 服务名称,可自定义
    Description = frp server
    After = network.target syslog.target
    Wants = network.target
    
    [Service]
    Type = simple
    # 启动frps的命令,需修改为您的frps的安装路径
    ExecStart = /path/to/frps -c /path/to/frps.toml
    
    [Install]
    WantedBy = multi-user.target
    

  • frpc配置

    serverAddr = "ip addr"
    serverPort = 7000
    
    [[proxies]]
    name = "ssh"
    type = "tcp"
    localPort = 22
    remotePort = 6000
    
    [[proxies]]
    name = "gitlab"
    type = "http"
    localPort = 80
    customDomains = ["aaa.bbb.ccc"]
    
    [[proxies]]
    name = "gitlab ssh"
    type = "tcp"
    localPort = 2222
    remotePort = 2222
    

  • frps配置

    bindPort = 7000
    vhostHTTPPort = 8080