V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
tyhunter
V2EX  ›  问与答

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

  •  
  •   tyhunter · 2017-06-04 14:03:24 +08:00 · 3774 次点击
    这是一个创建于 2727 天前的主题,其中的信息可能已经有所发展或是发生改变。
    客户端配置如下:
    #客户端配置:
    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 条回复    2018-03-10 01:12:23 +08:00
    Silently
        1
    Silently  
       2018-03-10 01:12:23 +08:00
    服务端的域名配置呢?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4208 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 01:02 · PVG 09:02 · LAX 17:02 · JFK 20:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.