This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure you have these installed | |
yum install -y make gcc perl pcre-devel zlib-devel | |
# Download/Extract source | |
wget -O /tmp/haproxy.tgz http://www.haproxy.org/download/1.7/src/haproxy-1.7.2.tar.gz | |
tar -zxvf /tmp/haproxy.tgz -C /tmp | |
cd /tmp/haproxy-* | |
# Compile HAProxy | |
# https://github.com/haproxy/haproxy/blob/master/README | |
make \ | |
TARGET=linux2628 USE_LINUX_TPROXY=1 USE_ZLIB=1 USE_REGPARM=1 USE_PCRE=1 USE_PCRE_JIT=1 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/letsencrypt/letsencrypt | |
cd letsencrypt | |
./letsencrypt-auto certonly --standalone --email [email protected] -d test.domain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"crypto/rand" | |
"fmt" | |
"github.com/aead/ecdh" | |
"log" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Rule] | |
URL,203.205.146.59:80,DIRECT | |
URL,203.205.128.103:443,DIRECT | |
IP-CIDR,113.0.0.0/13,DIRECT | |
IP-CIDR,113.96.0.0/16,DIRECT | |
IP-CIDR,183.0.0.0/10,DIRECT | |
IP-CIDR,14.0.0.0/21,DIRECT | |
IP-CIDR,203.205.0.0/16,DIRECT | |
IP-CIDR,101.0.0.0/22,DIRECT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"fmt" | |
) | |
func EncryptAESCFB(dst, src, key, iv []byte) error { | |
aesBlockEncrypter, err := aes.NewCipher([]byte(key)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=tunlink | |
Documentation=tunlink | |
After=network.target | |
[Service] | |
Type=simple | |
StandardError=journal | |
ExecStart=/usr/local/sbin/haproxy -f /etc/haproxy/haproxy.cfg | |
ExecReload=/bin/kill -HUP $MAINPID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.卸载云盾 | |
curl -sSL http://update.aegis.aliyun.com/download/quartz_uninstall.sh | sudo bash | |
rm -rf /usr/local/aegis | |
rm /usr/sbin/aliyun-service | |
rm /lib/systemd/system/aliyun.service | |
阿里云其他进程 | |
sudo systemctl stop accounts-daemon.service | |
sudo systemctl disable accounts-daemon.service | |
sudo systemctl stop aliyun-util.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Download Boost Library: http://www.boost.org (Choose the expected version) | |
``` | |
wget https://cfhcable.dl.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.gz | |
wget https://phoenixnap.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.gz | |
wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz | |
wget https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.gz | |
wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz | |
wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.gz | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
client_max_body_size 100m; | |
proxy_read_timeout 300; | |
proxy_connect_timeout 300; | |
proxy_redirect off; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"golang.org/x/crypto/chacha20poly1305" | |
"log" | |
) | |
func main() { | |
key := []byte("D403842636B7D8E66FE5FB4E7BE6973A") |