配置多个 路由端口代理. + 局域网 网盘+ samba 配置! 密码配置!

配置多个 

路由端口代理  

kcptun — socksshow

kcptun — frps sever 

https://github.com/xtaci/kcptun/releases

路由器

kcptun-linux-mipsle-20190428.tar.gz

kcptun-linux-mipsle-20190428.tar.gz  // 链接 for 路由端

服务器

https://www.yuxuyi.com/?p=24

Linux利用Kcptun加速ShadowsocksLinux利用Kcptun加速Shadowsocks

 cp  /root/kcptun/server-config.json  /root/kcptun/kcp2frp.json

cp /etc/systemd/system/kcptun.service   /etc/systemd/system/kcp2frp

vi  /etc/systemd/system/kcp2frp

[Unit]

Description=kcp2frp service

After=network.target

[Service]

Type=simple

ExecStart=/PATH/server_linux_amd64 -l ":29900" -t "127.0.0.1:8838" --key"test" --mode "fast2"

Restart=on-abort

[Install]

WantedBy=multi-user.target

加入开机启动:systemctl enable kcptun.service

查看服务状态:systemctl status kcptun.service

关闭服务:systemctl stop kcptun.service

重启服务:systemctl restart kcptun.service

启动命令:systemctl start kcptun.service

通过netstat -an命令检查端口是否已开启或者是否被占用。

start /b client_windows_amd64.exe -l ":2000" -r "xxx.xxx.xxx.xxx:29900" --key "test" --mode "fast2" > kcptun.log 2>&1

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

vim /etc/systemd/system/frps.service

加入开机启动:systemctl enable frp.service

查看服务状态:systemctl status frp.service

关闭服务:systemctl stop frp.service

重启服务:systemctl restart frp.service

启动命令:systemctl start frp.service

通过netstat -an命令检查端口是否已开启或者是否被占用。

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

kcptun 如何多端口加速?

https://www.v2ex.com/t/375611

nohup ./server_linux_amd64 -c /path/to/server-config1.json > /path/to/1.log 2>&1 &

nohup ./server_linux_amd64 -c /path/to/server-config2.json > /path/to/2.log 2>&1 &

https://saodaye.com/zz/1122.html

BBR+魔改BBR+暴力魔改BBR+Lotsever(锐速)一键开启脚本,支持Centos/Debian/Ubuntu

Ubuntu 18.04 魔改BBR暂时有点问题,可使用以下命令安装

首先测试 手机端 的 19999, 文件, +  ss 安装, 测试!

-

key=test;crypt=aes;mode=fast2;mtu=1350;sndwnd=1024;rcvwnd=1024;datashard=70;parityshard=30;dscp=46;nocomp=false;acknodelay=false;nodelay=0;interval=40;resend=0;nc=0;sockbuf=4194304;keepalive=10

  131  wget https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_amd64.tar.gz

  133  tar -zxvf *.gz

  135  cd frp_0.27.0_linux_amd64/

  144  ls   /etc/systemd/system/

  147  cp  frps.service /etc/systemd/system/

vim /etc/systemd/system/frps.service

ExecStart=/root/frps/frps -c /root/frps/frps.ini

57000

{

"listen": ":41866",

"target": "127.0.0.1:57000",

"key": "test",

"crypt": "aes",

"mode": "fast2",

"mtu": 1350,

"sndwnd": 1024,

"rcvwnd": 1024,

"datashard": 70,

"parityshard": 30,

"dscp": 46,

"nocomp": false,

"acknodelay": false,

"nodelay": 0,

"interval": 40,

"resend": 0,

"nc": 0,

"sockbuf": 4194304,

"keepalive": 10,

"log": "/root/kcptun/frp-tcp.log"

}

ExecStart=/root/kcptun/server_linux_amd64 -c /root/kcptun/kcp2frp.json

加入开机启动:systemctl enable kcp2frp.service

查看服务状态:systemctl status kcp2frp.service

关闭服务:systemctl stop kcp2frp.service

重启服务:systemctl restart kcp2frp.service

启动命令:systemctl start kcp2frp.service

通过netstat -an命令检查端口是否已开启或者是否被占用。

/etc/systemd/system/kcp2frp

////////////////////////////////////////////////配置路由器////////////////////////////////////////////////////////////////

=========

#!/bin/sh /etc/rc.common

START=95

PROG=/opt/sbin/client_linux_mipsle

CONF=/opt/bin/kcp.json

start() {

        $PROG -c $CONF  >/dev/null 2>&1 &

}

stop() {

        killall -9 client_linux_mipsle

}

=============

{

"localaddr": ":1866",

"remoteaddr": "airplay.ddns.net:41866",

"key": "test",

"crypt": "aes",

"mode": "fast2",

"conn": 4,

"mtu": 1350,

"sndwnd": 1024,

"rcvwnd": 1024,

"datashard": 70,

"parityshard": 30,

"dscp": 46,

"nocomp": false,

"acknodelay": false,

"nodelay": 0,

"interval": 40,

"resend": 0,

"nc": 0,

"sockbuf": 4194304,

"keepalive": 10,

"log": /tmp/frp-tcp.log"

}

=========================================

{

    "localaddr": ":8388", //本地使用的端口

    "remoteaddr": "********:29900", //服务器的kcptun服务的ip地址加端口

    "key": "*****", //你设定的加密密码

    "crypt": "aes", //加密方式

    "mode": "fast2", //加速模式

    "conn": 1, //从这以下的参数,你需要根据你在服务器端的配置参数进行设置

    "autoexpire": 60,

    "mtu": 1350,

    "sndwnd": 1024,

    "rcvwnd": 1024,

    "datashard": 10,

    "parityshard": 3,

    "dscp": 0,

    "nocomp": false,

    "acknodelay": false,

    "nodelay": 0,

    "interval": 20,

    "resend": 2,

    "nc": 1,

    "sockbuf": 4194304,

    "keepalive": 10

}

////////////////////////. 参考系

PROG=/opt/sbin/client_linux_mipsle

CONF=/opt/bin/kcp.json

start() {

        /opt/sbin/client_linux_mipsle -c  /opt/bin/kcp.json  >/dev/null 2>&1 &

}

/opt/sbin/client_linux_mipsle -c  /opt/bin/kcp.json

参考

https://ssr.tools/637

KCPTUN安卓客户端下载安装及使用教程 为手机SS/Shadowsocks加速-SSR中文网

https://ssr.tools/614

https://webcache.googleusercontent.com/search?q=cache:BSdnrjssukAJ:https://www.maxsky.cc/2017/03/26/MacOS-Use-KcpTun-Acc-SS/+&cd=1&hl=zh-CN&ct=clnk&gl=us

Mac OS X 使用 KcpTun 加速 Shadowsocks【开机自启】

Kcptun配置

https://lymsaga.top/2018/11/05/kcptun-config/

bbr+kcptun+ss 搭建(ubuntu14

https://blog.csdn.net/zhanhailiu/article/details/80287814

https://blog.kuoruan.com/111.html

[内网穿透] ubuntu上搭建frp

https://blog.csdn.net/sinat_29963957/article/details/83591264

frp实现内网穿透并配置自动启动

LinuxKcptunSS进行上网加速

https://www.jianshu.com/p/f32a5feaa4eb

https://ssr.tools/607

KCPTUN Windows客户端下载安装及使用教程 带图形化界面-SSR中文网

https://ssr.tools/622

KCPTUN Mac客户端下载及使用教程 Mac OS Shadowsocks提速-SSR中文网

"log": /tmp/frp-tcp.log"

"log": "/opt/bin/frp-tcp.log"

/opt/bin/frpc -c  /opt/bin/frpc.ini

/opt/sbin/client_linux_mipsle -c  /opt/bin/kcp.json

vim  /opt/bin/frpc.ini

////// 服务器端!

[Unit]

Description=FrpS1 Service

After=network.target

Wants=network.target

[Service]

# This service runs as root. You may consider to run it as another user for security concerns.

# By uncommenting the following two lines, this service will run as user v2ray/v2ray.

# More discussion at https://github.com/v2ray/v2ray-core/issues/1011

# User=v2ray

# Group=v2ray

Type=simple

PIDFile=/run/frps1.pid

ExecStart=/root/frps/frps -c /root/frps/frps1.ini

Restart=on-failure

# Don't restart in the case of configuration error

RestartPreventExitStatus=23

[Install]

WantedBy=multi-user.target

==========================

[common]

bind_port = 57001

vhost_http_port = 1999

[common]

dashboard_port = 45866

dashboard_user = piazza1@sina.com

dashboard_pwd = 7ph/6}ab^

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

vim /etc/systemd/system/frps1.service

加入开机启动:systemctl enable frp1.service

查看服务状态:systemctl status frp1.service

关闭服务:systemctl stop frp1.service

重启服务:systemctl restart frp1.service

启动命令:systemctl start frp1.service

通过netstat -an命令检查端口是否已开启或者是否被占用。

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

// 路由端

[common]

server_addr = airplay.ddns.net

server_port = 57001

[webdav-1999]

type = http

local_port = 100

custom_domains = airplay.ddns.net

[http-2082]

type = tcp

local_ip = 192.168.1.1

local_port = 80

remote_port = 2082

[openwrt-web]

type = tcp

local_ip = 192.168.1.1

local_port = 8081

remote_port = 2083

[ssh]

type = tcp

local_ip = 192.168.1.1

local_port = 22

remote_port = 2023

加速端 ——

webdav 1998

Php-mysql 2080

Router-man 2081

Router-ssh  2022

备份端 ——

webdav 1999

Php-mysql 2082

Router-man 2083

Router-ssh  2023