frp配置

frps配置

----------------------------------------------------------------------------------------------------

# [common] is integral section

[common]

# A literal address or host name for IPv6 must be enclosed

# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"

bind_addr = 0.0.0.0

bind_port = 7000

# if you want to support virtual host, you must set the http port for listening (optional)

vhost_http_port = 78

vhost_https_port = 79

# if you want to configure or reload frps by dashboard, dashboard_port must be set

dashboard_port = 7500

# dashboard assets directory(only for debug mode)

# assets_dir = ./static

# console or real logFile path like ./frps.log

log_file = ./frps.log

# debug, info, warn, error

log_level = info

log_max_days = 3

# if you enable privilege mode, frpc can create a proxy without pre-configure in frps when privilege_token is correct

privilege_mode = true

privilege_token = 12345678

# only allow frpc to bind ports you list, if you set nothing, there won‘t be any limit

privilege_allow_ports = 2000-3000,3001,3003,4000-50000,78,79

# pool_count in each proxy will change to max_pool_count if they exceed the maximum value

max_pool_count = 100

# ssh is the proxy name, client will use this name and auth_token to connect to server

[ssh]

type = tcp

auth_token = 123

bind_addr = 0.0.0.0

listen_port = 6000

[web01]

# if type equals http, vhost_http_port must be set

type = http

auth_token = 123

# if proxy type equals http, custom_domains must be set separated by commas

#custom_domains = web01.yourdomain.com,web01.yourdomain2.com

custom_domains = 127.0.0.1

[web02]

# if type equals https, vhost_https_port must be set

type = https

auth_token = 123

custom_domains = web02.yourdomain.com

frpc配置

----------------------------------------------------------------------------------------------------

[common]

# A literal address or host name for IPv6 must be enclosed

# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"

server_addr = 123.207.25.144

server_port = 7000

# console or real logFile path like ./frpc.log

log_file = ./frpc.log

# debug, info, warn, error

log_level = info

log_max_days = 3

# for authentication

auth_token = 123

# for privilege mode

privilege_token = 12345678

[web01]

privilege_mode = true

remote_port = 6000

type = http

local_port = 80

use_gzip = true

custom_domains = 123.207.25.144

host_header_rewrite = 127.0.0.1

时间: 2024-10-25 11:49:24

frp配置的相关文章

node微信接入

1.本地微信环境搭建(frp/路由器做端口映射) --服务器frp配置并启动:注意打开相应端口(如:7000和8888端口) # frps.ini [common] bind_port = 7000 vhost_http_port = 8888 --客户端frp配置: # frpc.ini [common] server_addr = 39.108.139.60 server_port = 7000 [web] type = http local_port = 8888 custom_domai

配置frp

一.下载 下载地址:https://github.com/fatedier/frp/releases 下载linux_amd64的,如果是32位系统就下载linux_386 二.安装 有公网IP的服务器为服务器端 内网的服务器为客户端 服务器和客户端安装都一样 tar zxvf frp_0.20.0_linux_amd64.tar.gzmv frp_0.20.0_linux_amd64 frpchmod -R 777 frp 目录下的文件,服务器端可以将客户端用的文件删掉,客户端可以将服务器用的

Ubuntu 16.04 -- 同时配置Nginx(转发)和frp(内网映射)和HTTPS(ca加密) - 端口转发

Ubuntu16.04下: sudo apt -get nginx 用这条命令安装完nginx之后, nginx在该目录下: 然后配置nginx: 如下: 红圈圈住的地方多写几个可以做负载均衡. 端口转发 什么是端口转发 当我们在服务器上搭建一个图书以及一个电影的应用,其中图书应用启动了 8001 端口,电影应用启动了 8002 端口.此时如果我们可以通过 localhost:8001 //图书 localhost:8002 //电影 但我们一般访问应用的时候都是希望不加端口就访问域名,也即两个

SimpleReact: 基于Java 8简单的FRP Fluent API

SimpleReact来自AOL的一个小型的支持并发的库包,其直接基于Java 8的CompletableFuture, JDK函数接口和Streams API构建,它的Fluent API能够提供解决90%的Reactive使用场景,重要的是没有带入任何复杂性.可以实现Functional Reactive Programming范式(简称:FRP,函数式响应编程) 使用SimpleReact能够方便扩展微服务,它能用于管理微服务的远程调用,能够应付高并发大型高性能平台的要求. 使用Simpl

centos6.8服务器配置之编译安装PHP、配置nginx

php version 5.6.31.nginx version: nginx/1.10.2 1.下载: wget http://cn2.php.net/distributions/php-5.6.31.tar.gz 2.安装组件 yum install -y gcc gcc-c++ make zlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libx

RedHat5.7+ice3.4.2+php5.2.17+nginx1.8.1环境配置

ICE的通讯结构: ICE有分为提供服务的一方Server和寻求服务的一方Client,两台机子上都需要安装ICE组件,他们的通信结构如上图 Client端应该事先知道Server端能提供的服务是什么,有什么格式?这就是图中的Proxy Code,在Proxy Code中定义好了类和接口.Server端中接口定义的就是 Skeleton,具体实现接口的是Server Application,Server Application可以是C++,java,C#等写的,但是ICE不提供PHP写Serve

CentOS 6.8 LAMP 安装配置

1.远程系统拒绝了连接: 需要关闭防火墙/etc/rc.d/init.d/iptables stop service iptables stop chkconfig iptables off setenforce 0 vi /etc/sysconfig/selinux    SELINUX=disabled      #enforcing改为disabled 依赖包安装 yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpn

zabbix3.x服务端安装和配置

一 简介 zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题zabbix由2部分构成,zabbix server与可选组件zabbix agentzabbix server可以通过SNMP,zabbix agent,ping,端口监视等方法提供对远程服务器/网络状态的监视,数据收集等功能,它可以运行在Linux,Solaris,HP-UX

Linux中PHP安装与配置(CentOS-6.5:php-5.2.13)

1 PHP简介 PHP(PHP: Hypertext Preprocessor的缩写,中文名:"超文本预处理器")是一种通用开源脚本语言.语法吸收了C语言.Java和Perl的特点,入门门槛较低,易于学习,使用广泛,主要适用于Web开发领域.PHP的文件后缀名为php. 2 下载地址 1)libmcrpyt ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz 2) php http://ww