Skip to content

yangshun2005/fp-multiuser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fp-multiuser

frp version >= v0.31.0

Usage

  1. Create file tokens including all support usernames and tokens.

    user1=123
    user2=abc
    

    One user each line. Username and token are split by =.

  2. Run fp-multiuser:

    ./fp-multiuser -l 127.0.0.1:7200 -f ./tokens

  3. Register plugin in frps.

    # frps.ini
    [common]
    bind_port = 7000
    
    [plugin.multiuser]
    addr = 127.0.0.1:7200
    path = /handler
    ops = Login
    
  4. Specify username and meta_token in frpc configure file.

    For user1:

    # frpc.ini
    [common]
    server_addr = x.x.x.x
    server_port = 7000
    user = user1
    meta_token = 123
    
    [ssh]
    type = tcp
    local_port = 22
    remote_port = 6000
    

    For user2:

    # frpc.ini
    [common]
    server_addr = x.x.x.x
    server_port = 7000
    user = user2
    meta_token = abc
    
    [ssh]
    type = tcp
    local_port = 22
    remote_port = 6000
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published