Giter Site home page Giter Site logo

frp_plugin_allowed_ports's Introduction

frps_allowed_ports

frp server plugin to define allowed ports for a specific user for frp.

Features

  • Support the verification of the port used by the users by ports & subdomain saved in a file.
  • Won't valid stcp type as it does authentication via sk

Depends on fp-multiuser

Download

Download frps_allowed_ports binary file from Release.

Requirements

frp version >= v0.42.0

It is possible that the plugin works for older version even though it has not been tested.

Usage

It works with custom_domains, tcp and subdomains.

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

    user1=65536
    user2=80
    user2=525
    user1=6980
    user2=subdomain
    user1=subdomain2
    user1=service.masternetwork.us
    

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

  2. Run frp and the plugin:

    ./frps -c ./frps.ini ./frp_plugin_allowed_ports -c ./ports.ini

  3. Register plugin in frps.

[common]
bind_port = 7000
vhost_http_port = 80
dashboard_port = 7500

dashboard_user = admin
dashboard_pwd = admin
subdomain_host = masternetwork.us

[plugin.multiuser]
addr = 127.0.0.1:8000
path = /handler
ops = Login

[plugin.frp_plugin_allowed_ports]
addr = 127.0.0.1:9001
path = /handler
ops = NewProxy
  1. Frpc file :

    User field is required

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

frp_plugin_allowed_ports's People

Contributors

gainskills avatar parmicciano avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.