Code Monkey home page Code Monkey logo

docker-frp's Introduction

frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

Docker image for fatedier/frp.

DockerHub Badge

Tags

  • latest
  • v0.44.0
  • v0.43.0
  • v0.42.0
  • v0.41.0
  • v0.40.0
  • v0.39.1
  • v0.39.0
  • v0.38.0
  • v0.38.0
  • v0.37.1
  • v0.37.0
  • v0.36.2
  • v0.36.1
  • v0.35.1
  • v0.34.3
  • v0.34.2
  • v0.34.1
  • v0.34.0
  • v0.33.0
  • v0.32.1
  • v0.32.0
  • v0.31.2
  • v0.31.1
  • v0.31.0
  • v0.30.0

Usage

frp server

Start a frp server with connection port 7000 and reverse proxy port 6000, expose 6000 and 7000 ports in your internet firewall or load balancer which resole frp.example.com to.

docker run -itd --name frps -p 7000:7000 -p 6000:6000 zhangsean/frp

frp client

Start a frp client, expose local port 22 of server 192.168.1.20 to remote port 6000 of server frp.example.com.

docker run -itd --name frpc -e MODE=client -e SERVER_ADDR=frp.example.com -e SERVER_PORT=7000 -e PROTO=tcp -e LOCAL_IP=192.168.1.20 -e LOCAL_PORT=22 -e REMOTE_PORT=6000 zhangsean/frp

remote connect

Then you can ssh to frp.example.com:6000 from internet, just like directly ssh to your server 192.168.1.20:22 from internal.

ssh -p 6000 [email protected]

Environment variables

Name Type Default Description
MODE server or client server running model
BIND_PORT Port 7000 server bind port
PROXY_NAME String ssh proxy name, unique name is required in same server
SERVER_ADDR Domain or IP 127.0.0.1 server address
SERVER_PORT Port 7000 remote server port
PROTO tcp / udp / http / https / stcp / xtcp tcp local proto
LOCAL_IP IP 127.0.0.1 local server IP
LOCAL_PORT Port 22 local service port
REMOTE_PORT Port 6000 remote reverse port

Find more

Please visit fatedier/frp for more.

docker-frp's People

Contributors

zhangsean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-frp's Issues

Use only frpc in docker

Can I use frps from fatedier article and use your docker file for frpc to connect to frps server?

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.