padavan使用freefrp

一、padavan版本为:h大的最新版本 https://opt.cn2qq.com/padavan/
二、这个padavan能用的frp好像只有最新版本0.37了。

三、frp页面配置如下:
1、打开frp,打开frpc

2、脚本配置(实际真正修改的就是客户端部分)

 

#!/bin/sh
export PATH='/etc/storage/bin:/tmp/script:/etc/storage/script:/opt/usr/sbin:/opt/usr/bin:/opt/sbin:/opt/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin'
export LD_LIBRARY_PATH=/lib:/opt/lib
killall frpc frps
rm -f /dev/null ; mknod /dev/null c 1 3 ; chmod 666 /dev/null;
mkdir -p /tmp/frp
#启动frp功能后会运行以下脚本
#frp项目地址教程: https://github.com/fatedier/frp/blob/master/README_zh.md
#请自行修改 token 用于对客户端连接进行身份验证
# IP查询: http://119.29.29.29/d?dn=github.com

cat > "/tmp/frp/myfrpc.ini" <<-\EOF
# ==========客户端配置:==========
[common]
#查询状态 http://freenat.bid:7500
server_addr = frp.freefrp.net
server_port = 7000
token = freefrp.net
#老版本配置token的名字
# privilege_token = freefrp.net
# protocol = kcp

log_file = /dev/null
#log_file = /tmp/frp.log
#log_level = info
#这个是最详细的日志级别,开启可以用来确认frp链接状态。(但是也要将log_file指向一个有效路径)
log_level = trace
#log_max_days = 3

[dzq_rr] type = tcp local_ip = 192.168.123.1 local_port = 80 # 开放端口 :80 / 443 , 10001 – 50000 remote_port = 38080
[dddzzzqqq] type = http local_ip = 192.168.123.1 local_port = 80 subdomain = dddzzzqqq #有的版本需要用下面参数 # custom_domains = dddzzzqqq.freenat.bid # use_compression = false # use_encryption = false #host_header_rewrite = 实际你内网访问的域名,可以供公网的域名不一致,如果一致可以不写 # ====================
EOF #请手动配置【外部网络 (WAN) - 端口转发 (UPnP)】开启 WAN 外网端口 cat > "/tmp/frp/myfrps.ini" <<-\EOF # ==========服务端配置:========== [common] bind_port = 7000 dashboard_port = 7500 # dashboard 用户名密码,默认都为 admin dashboard_user = admin dashboard_pwd = admin vhost_http_port = 88 token = 12345 subdomain_host = frps.com max_pool_count = 50 #log_file = /dev/null #log_level = info #log_max_days = 3 # ==================== EOF #启动: frpc_enable=`nvram get frpc_enable` frpc_enable=${frpc_enable:-"0"} frps_enable=`nvram get frps_enable` frps_enable=${frps_enable:-"0"} if [ "$frpc_enable" = "1" ] ; then frpc -c /tmp/frp/myfrpc.ini 2>&1 & fi if [ "$frps_enable" = "1" ] ; then frps -c /tmp/frp/myfrps.ini 2>&1 & fi

  

[donglintao_rr]type = tcplocal_ip = 192.168.50.1local_port = 80# 开放端口 :80 / 443 , 10001 – 50000remote_port = 38080

posted @ 2021-09-26 00:30  dzqabc  阅读(1260)  评论(0编辑  收藏  举报