OPENWRT IPTABLES U32模块


iptables u32模块介绍 http://www.stearns.org/doc/iptables-u32.current.html 由于OpenWrt默认不带u32模块故需要安装 Ver. OpenWrt 18.06.1

opkg update
opkg install iptables-mod-u32

使用案例(感谢某位行业大佬)

iptables -I INPUT -s 8.8.8.8 -p udp --sport 53 -m u32 --u32 "2&0xFFFF=0x0" -j DROP
iptables -I INPUT -s 8.8.8.8 -p udp --...

Read more

OPENWRT + DoH (DNS over HTTPS)


固件版本:OpenWrt 18.06.1 SSH登录路由器执行

#opkg update
#opkg install https_dns_proxy

程序默认使用google提供的DoH服务,可能会无法正常解析,我们将其修成国内rubyfish dns(cloudflare的也能用,速度一般)

vi /etc/config/https_dns_proxy
config https_dns_proxy
        option listen_addr '127.0.0.1'
        option listen_port '5053'
      ...

Read more

OpenWrt Wireguard配置备忘


服务端:

OS : Ubuntu 18.04

$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
$ umask 077
$ wg genkey | tee server_privatekey | wg pubkey > server_publickey //生成服务端密钥
$ wg genkey | tee client_privatekey | wg pubkey > client_publickey //生成客户端...

Read more

Ubuntu安装freeSWITCH步骤


OS:ubuntu 18.04.1

安装依赖

apt-get update apt-get install -y autoconf git libtool g++ zlib1g-dev libjpeg-dev libsqlite3-dev libcurl4-openssl-dev libpcre3-dev libspeex-dev libspeexdsp-dev libldns-dev libedit-dev libssl-dev pkg-config yasm liblua50-dev libopus-dev libsndfile1-dev libpq-dev libread...

Read more

ZTE F822 ONU 数图(digitmap)参数备忘


配置集客SIP业务中,有客户反映固话无法自助呼叫转,配置数图/拨号规则参数后可自助设置呼叫转移,具体参数如下:

ag
add-digitmap service 2 name sip body |11[049]|12[02]|9xxxx|100xx|12[35]xx|118xxx|168xxSxxx|400xxxxxxx|800xxxxxxx|600x.|700x.|1[358]xxxxxxxxx|[2-8]xxxxxx|059[2346-9][2-8]xxxxxx|01[358]xxxxxxxxx|0xxxxxxxxxxSx|x.F|[0-9].S|Exx.F|Exx.Ex.F|Fxx....

Read more

联想P2开启 B8 (FDD900) 教程


联想P2分为P2c72(国内)/P2a42(海外)两个版本,频段支持见下表

  1. P2a42 GSM: GSM850/ GSM900/ GSM1800/ GSM1900 3G: UMTS2100 (B1)/ UMTS1900 (B2)/ UMTS850 (B5)/ UMTS900 (B8) 4G: LTE2100 (B1)/ LTE1800 (B3)/ LTE1700/2100 (B4)/ LTE850 (B5)/ LTE2600 (B7)/ LTE900 (B8)/ LTE800 (B20)/ LTE700 (B28)/ TD-LTE2600 (B38)/ TD-LTE2300 (B40)...

Read more

联想P2 Bootloader 回锁(relock)教程


来自 xda https://forum.xda-developers.com/lenovo-p2/how-to/how-to-lock-bootloader-unlocked-t3718151

  1. 本教程默认你的设备已ROOT且安装好TWRP Recovery
  2. 直接使用fastboot oem relock 是无效的
  3. 警告:该操作会丢失全部数据,务必先备份

  1. 按住音量+/-开机进入TWRP Recovery 连接电脑 adb shell中执行以下命令 dd if=/dev/zero of=/dev/block/bootdevice/by-name/sp
  2. 从TWRP中进入fastbo...

Read more