历史1.0版本搭建 & web服务映射
历史1.0版本安全内容补充(新增token)
1[common]
2token = 123456
1.1 Ubuntu 18.04 使用FRP内网穿透,映射内网Web服务至公网
Ubuntu 18.04 使用FRP内网穿透,映射内网Web服务至公网
1.2 FRP内网穿透映射80&443提供web服务
使用Docker 启动frp
1,客户端(frpc)docker-compose 配置
docker-compose.frpc.yml
1version: "3.6"
2
3services:
4 frpc-server:
5 image: snowdreamtech/frpc
6 network_mode: "host"
7 container_name: frpc
8 restart: always
9 volumes:
10 - ./frpc.ini:/etc/frp/frpc.ini
11 logging:
12 driver: "json-file"
13 options:
14 max-size: "1m"
frpc.ini 配置
1[common]
2server_addr = 120.*.*.*
3server_port = 7000
4vhost_http_port=80
5vhost_https_port=443
6[ssh]
7type = tcp
8local_ip = 127.0.0.1
9local_port = 22
10remote_port = 6000
docker-compose.frpc.yml 客户端启动命令
1docker-compose -f docker-compose.frpc.yml up -d
2,服务端(frps)docker-compose 配置
docker-compose.frps.yml
1version: "3.6"
2
3services:
4 frps-server:
5 image: snowdreamtech/frps
6 network_mode: "host"
7 container_name: frps
8 restart: always
9 volumes:
10 - ./frps.ini:/etc/frp/frps.ini
11 logging:
12 driver: "json-file"
13 options:
14 max-size: "1m"
frps.ini 配置
1[common]
2bind_port = 7000
3vhost_http_port = 80
4vhost_https_port=443
docker-compose.frps.yml 客户端启动命令
1docker-compose -f docker-compose.frps.yml up -d