V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
tyhunter
V2EX  ›  问与答

配置 Frps 内网穿透有点迷糊,求高手指点下哪里出错了

  •  
  •   tyhunter · Jun 4, 2017 · 4139 views
    This topic created in 3261 days ago, the information mentioned may be changed or developed.
    客户端配置如下:
    #客户端配置:
    cat > "/tmp/frp/myfrpc.ini" <<-\EOF
    [common]
    server_addr = 45.123.*.*
    server_port = 5555
    privilege_token = 1234567890

    [ROUTER]
    type = http
    local_ip = 192.168.123.1
    local_port = 80
    use_gzip = true
    use_encryption = true
    pool_count = 20
    privilege_mode = true
    custom_domains = router.******.net
    EOF

    [Aria2]
    type = http
    local_ip = 192.168.123.1
    local_port = 6800
    use_gzip = true
    use_encryption = true
    pool_count = 20
    privilege_mode = true
    custom_domains = aria2.*****.net
    EOF


    #服户端配置:
    # [common] is integral section
    [common]
    # A literal address or host name for IPv6 must be enclosed
    # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
    bind_addr = 0.0.0.0
    bind_port = 5555
    # if you want to configure or reload frps by dashboard, dashboard_port must be set
    dashboard_port = *****
    # dashboard assets directory(only for debug mode)
    dashboard_user = admin
    dashboard_pwd = ******
    # assets_dir = ./static

    vhost_http_port = 81
    vhost_https_port = 443
    # console or real logFile path like ./frps.log
    log_file = ./frps.log
    # debug, info, warn, error
    log_level = info
    log_max_days = 3
    # if you enable privilege mode, frpc can create a proxy without pre-configure in frps when privilege_token is correct
    privilege_mode = true
    privilege_token = 1234567890
    # only allow frpc to bind ports you list, if you set nothing, there won't be any limit
    #privilege_allow_ports = 1-65535
    # pool_count in each proxy will change to max_pool_count if they exceed the maximum value
    max_pool_count = 200

    在域名解析添加了两条 A 记录,分别是 router 和 aria2 都解析到 VPS IP

    但是这样还是没法用,实在有点犯晕
    1 replies    2018-03-10 01:12:23 +08:00
    Silently
        1
    Silently  
       Mar 10, 2018
    服务端的域名配置呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4798 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
    ♥ Do have faith in what you're doing.