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

frp 使用 stcp 模式,如果一个 visitor 需要同时方便的访问 A, B, C 多台主机,如何设置

  •  
  •   1dian01 · 2020-05-21 17:48:09 +08:00 · 1903 次点击
    这是一个创建于 1648 天前的主题,其中的信息可能已经有所发展或是发生改变。
    [secret_tcp]
    # If the type is secret tcp, remote_port is useless
    # Who want to connect local port should deploy another frpc with stcp proxy and role is visitor
    type = stcp
    # sk used for authentication for visitors
    sk = abcdefg
    local_ip = 127.0.0.1
    local_port = 22
    use_encryption = false
    use_compression = false

    # user of frpc should be same in both stcp server and stcp visitor
    [secret_tcp_visitor]
    # frpc role visitor -> frps -> frpc role server
    role = visitor
    type = stcp
    # the server name you want to visitor
    server_name = secret_tcp
    sk = abcdefg
    # connect this address to visitor stcp server
    bind_addr = 127.0.0.1
    bind_port = 9000
    use_encryption = false
    use_compression = false


    visitor 中设置了 server_name,可以同时设置多个?
    2 条回复    2020-05-28 11:33:47 +08:00
    1dian01
        1
    1dian01  
    OP
       2020-05-22 17:26:21 +08:00
    # frpc.ini
    [common]
    server_addr = **** 服务器 ip
    server_port = **** 服务器端口

    [rdp_v111]
    type = stcp
    role = visitor
    server_name = **** 受控机器名称
    sk = **** 受控机器密码
    bind_addr = 127.0.0.1
    bind_port = ****

    [rdp_v2222]
    type = stcp
    role = visitor
    server_name = ***
    sk = ***
    bind_addr = 127.0.0.1
    bind_port = ***


    测试正常使用,填坑
    yuzhixin411416
        2
    yuzhixin411416  
       2020-05-28 11:33:47 +08:00
    这个有什么限制么,我在宿主机和虚拟机之间实验,仅仅一个 visitor,远程连接都没成功过,只有 tcp 模式能够成功,看输出都是正常连接到服务器了了,并且 visitor 也显示注册成功的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   6012 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 03:06 · PVG 11:06 · LAX 19:06 · JFK 22:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.