Skip to content

Instantly share code, notes, and snippets.

@ylx2016
ylx2016 / openvz使用加速.md
Created December 2, 2021 09:54 — forked from simonid/openvz使用加速.md
OPENVZ使用加速插件

OpenVZ使用加速插件

注意,有些双倍发包的加速插件是不符合IDC的规定的,如果过度使用可能会被封

补充说明:OVZ都会有超售的情况,实际体验上还是远不如KVM,所以会出现装了插件,但是提速不明显的情况

OpenVZ使用魔改BBR

openvz使用魔改的BBR大致有2个版本:UML、LKL
它们都要求升级内核(最新版本的Linux内核(4.9-rc8)内部集成了BBR)

;”;” “#”为注释符号,去掉前面的符号,该行才会生效
; 基于lhie1和KOP-XIAO配置整理
; 自用规则,随缘更新。欢迎访问 https://merlinblog.xyz/
; Modified by phlinhng
[general]
excluded_routes=192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 17.0.0.0/8
server_check_url=http://www.gstatic.com/generate_204
@ylx2016
ylx2016 / wgcf-tutorial.md
Created March 16, 2021 09:10 — forked from phlinhng/wgcf-tutorial.md
WGCF 筆記

1. 更換內核至 5.6 以上版本

Debian / Ubuntu 系可直接運行以下指令,安裝 xanmod-edge 內核後重啟。此內核安裝完後會自動啟用 BBR,無需手動配置。

echo 'deb http://deb.xanmod.org releases main' | tee /etc/apt/sources.list.d/xanmod-kernel.list
wget -qO - https://dl.xanmod.org/gpg.key | apt-key --keyring /etc/apt/trusted.gpg.d/xanmod-kernel.gpg add -
apt update && apt upgrade -y && apt install linux-xanmod-edge -y

2. 安裝 wireguard-tools

apt install wireguard-tools -y
@ylx2016
ylx2016 / dnscrypt-proxy.sh
Last active November 9, 2020 04:32
dnscrypt-proxy
dnsmasq_install=1
if [[ ${dnsmasq_install} == 1 ]]; then
if [[ ! -d /etc/dnscrypt-proxy/ ]]; then
mkdir /etc/dnscrypt-proxy/
fi
cat > '/etc/dnscrypt-proxy/blacklist.txt' << EOF
#!!! Do not change these settings unless you know what you are doing !!!
###########################
# Blacklist #
###########################
@ylx2016
ylx2016 / CentOS-Base.repo
Last active June 4, 2020 10:29
linux_tcp
[base]
name=CentOS-5 - Base
baseurl=http://vault.centos.org/5.11/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
[updates]
name=CentOS-5 - Updates
baseurl=http://vault.centos.org/5.11/updates/$basearch/
gpgcheck=1