峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
您正在查看: Net 分类下的文章

amy-apple.png

安装 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 即可。

Padavan.png

  1. 电脑网线连接路由器靠近WAN的那个LAN口,登录路由器管理页面,在系统升级里上传 openwrt-ulock-bootloader.bin,重启,登录密码 password,使用文件传输上传 pb-boot.img,注意上传后的文件位置。
  2. SSH登录路由器,执行命令写入Bootloader:
  3. write /tmp/upload/pb-boot.img Bootloader

(如需刷入Breed的文件是 breed-mt7621-xiaomi-r3g.bin)

  1. 重启捅屁股,用卡针按住路由器 reset 孔三秒钟,直到红灯慢闪。
  2. 电脑浏览器上登录 192.168.1.1 进入pb-boot, 执行刷机 JCG-Q20_Padavan3.4.3.9-007_Nonni.trx。
  3. 重启后默认登录信息:

nonni
nonnix2020

目前编译的版本里有科学去广告DDNS内网穿透等插件。

Enjoy!

刷机所需文件下载地址:
链接:https://pan.baidu.com/s/1Y-ui9tuelT42IdPNYyodaQ
提取码:8848

Hacking.jpg

拉取镜像并运行:

docker run --restart=always --name speedtest -d -p 10000:8080 nonnichen/speedtest

浏览器访问:

http://IP:10000

TCP端口测试:

telnet ip port

UDP端口测试:

nc -vuz ip  port

tmp_img_1594995756512.jpeg
拉取安装镜像:

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

2021-08-06 |Nonni

1-160H0124939.jpg
安装镜像并运行:

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