安装 Trojan
sudo apt install trojan
修改配置文件中的服务器地址与密码
sudo vi /etc/trojan/config.json
{
"run_type": "client",
"local_addr": "127.0.0.1",
"local_port": 1080,
"remote_addr": "example.com",
"remote_port": 443,
"password": [
"password"
],
"log_level": 1,
"ssl": {
"verify": flase,
"verify_hostname": flase,
"cert": "",
"cipher": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:RSA-AES128-GCM-SHA256:RSA-AES256-GCM-SHA384:RSA-AES128-SHA:RSA-AES256-SHA:RSA-3DES-EDE-SHA",
"sni": "",
"alpn": [
"h2",
"http/1.1"
],
"reuse_session": true,
"session_ticket": false,
"curves": ""
},
"tcp": {
"no_delay": true,
"keep_alive": true,
"fast_open": false,
"fast_open_qlen": 20
}
}
配置 trojan service
cat > /etc/systemd/system/trojan.service <<-EOF
[Unit]
Description=trojan
After=network.target
[Service]
Type=simple
PIDFile=/usr/src/trojan/trojan.pid
ExecStart=/usr/src/trojan/trojan -c /usr/src/trojan/config.json -l /usr/src/trojan/trojan.log
ExecReload=/bin/kill -HUP \$MAINPID
Restart=on-failure
RestartSec=1s
[Install]
WantedBy=multi-user.target
EOF
启动Trojan
systemctl start trojan
检查是否启动成功
ps aux | grep trojan | grep -v grep
设置为开机启动
systemctl enable trojan
Firefox 访问下面链接安装 SwitchYomega
https://addons.mozilla.org/zh-CN/firefox/addon/switchyomega/
配置 ProxySwitchOmega
在选项中设置prxoy里代理协议SOCKS5,代理服务器: 127.0.0.1,端口: 1080,选中 proxy 即可。
- 电脑网线连接路由器靠近WAN的那个LAN口,登录路由器管理页面,在系统升级里上传 openwrt-ulock-bootloader.bin,重启,登录密码 password,使用文件传输上传 pb-boot.img,注意上传后的文件位置。
- SSH登录路由器,执行命令写入Bootloader:
- write /tmp/upload/pb-boot.img Bootloader
(如需刷入Breed的文件是 breed-mt7621-xiaomi-r3g.bin)
- 重启捅屁股,用卡针按住路由器 reset 孔三秒钟,直到红灯慢闪。
- 电脑浏览器上登录 192.168.1.1 进入pb-boot, 执行刷机 JCG-Q20_Padavan3.4.3.9-007_Nonni.trx。
- 重启后默认登录信息:
nonni
nonnix2020
目前编译的版本里有科学去广告DDNS内网穿透等插件。
Enjoy!
刷机所需文件下载地址:
链接:https://pan.baidu.com/s/1Y-ui9tuelT42IdPNYyodaQ
提取码:8848
拉取镜像并运行:
docker run --restart=always --name speedtest -d -p 10000:8080 nonnichen/speedtest
浏览器访问:
http://IP:10000
TCP端口测试:
telnet ip port
UDP端口测试:
nc -vuz ip port
拉取安装镜像:
docker run --name nonniss --restart=always -e PASSWORD=xxxxxxxx -e METHOD=chacha20 -p 55555:8388 -p 55555:8388/udp -d nonnichen/nonniss
可选加密方法:
The default cipher is chacha20-ietf-poly1305.
All encrypt method:
rc4-md5
aes-128-gcm
aes-192-gcm
aes-256-gcm
aes-128-cfb
aes-192-cfb
aes-256-cfb
aes-128-ctr
aes-192-ctr
aes-256-ctr
camellia-128-cfb
camellia-192-cfb
camellia-256-cfb
bf-cfb
chacha20-ietf-poly1305
xchacha20-ietf-poly1305
salsa20
chacha20
chacha20-ietf
安装镜像并运行:
docker run --name=iperf3 -d --restart=unless-stopped -p 5201:5201/tcp -p 5201:5201/udp nonnichen/iperf3
Test on Windows:
Go to https://iperf.fr download iPerf3, then run test in CMD:
iperf3.exe -c IP -t 10
Test on Openwrt:
opkg install iperf3
iperf3 -c 207.148.69.145 -t 30