內網穿透frp配置

frps.toml  frps配置文件

bindPort = 7000         
log.to = "console"      
vhostHTTPPort = 7100    
vhostHTTPSPort = 7200 

auth.method = "token"   
auth.token = "password" 

[common]  
dashboard_port = 7500  
# dashboard 用戶名密碼,默認都爲 admin  
dashboard_user = admin  
dashboard_pwd = admin  


docker run --restart=always --network host -d -p 7000:7000 -p 7300:7300 -p 6000:6000 -v /data/frps.toml:/etc/frp/frps.ini --name frps snowdreamtech/frps

frpc.toml  frpc配置文件

# frpc.toml
[common]
server_addr = "frps地址"
server_port = 7000

log.to = "console"               
auth.token = "password"

[ssh]
name = "ssh"
type = "tcp"
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000

[web]
name = "web"
type = "tcp"
local_ip = 127.0.0.1
local_port = 8080
remote_port = 8080
custom_domains = class.swl.ink

[web4]
type = "http"
local_ip = 127.0.0.1
local_port = 80
custom_domains = shdkt2.wxy.kim #域名不能用泛解析域名,否則無法穿透
 

docker run --restart=always --network host -d -v /data/frpc.toml:/etc/frp/frpc.ini --name frpc snowdreamtech/frpc

 

version: "2.3"
services:
  frps:
    image: frps:0.49.0
    container_name: frps
    restart: always
    #直接使用主機網絡模式
    network_mode: host
    volumes:
      - ./frps/conf/frps.ini:/frps/frps.ini:ro

 

version: "2.3"
services:
  frpc:
    image: frpc:0.49.0
    container_name: frpc
    restart: always
    #直接使用主機網絡模式
    network_mode: host
    volumes:
      - ./frpc/conf/frpc.ini:/frpc/frpc.ini:ro

docker-compose搭建FRP內網穿透_docker安裝frp-CSDN博客

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章