This file contains 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
#!/bin/bash | |
#install teleport node | |
cd /root | |
wget --no-check-certificate https://get.gravitational.com/teleport-v2.6.1-linux-amd64-bin.tar.gz | |
tar zxfv teleport-v2.6.1-linux-amd64-bin.tar.gz | |
rm teleport-v2.6.1-linux-amd64-bin.tar.gz | |
cd teleport | |
cp teleport /usr/bin | |
cd .. | |
rm -rf teleport |
This file contains 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.Checkout | |
git checkout --orphan latest_branch | |
2. Add all the files | |
git add -A | |
3. Commit the changes |
This file contains 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
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
# Description: Auto test download & I/O speed script | |
# Thanks: LookBack <admin@dwhd.org>; Nils Steinger; Teddysun | |
# Toyo: https://doub.io | |
# H2YTech: https://minecloud.asia | |
# For https://VPS.BEST | |
RED='\033[0;31m' && GREEN='\033[0;32m' && YELLOW='\033[0;33m' && PLAIN='\033[0m' |
This file contains 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
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
# Description: Auto test download & I/O speed script | |
# Thanks: LookBack <admin@dwhd.org>; Nils Steinger; Teddysun | |
# Toyo: https://doub.io | |
# H2YTech: https://minecloud.asia | |
# For https://VPS.BEST | |
RED='\033[0;31m' && GREEN='\033[0;32m' && YELLOW='\033[0;33m' && PLAIN='\033[0m' |
This file contains 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
curl -H "Content-Type: application/json" --data '{"source_type": "Tag", "source_name": "v6.9"}' -X POST <trigger_url> |
This file contains 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
---- | |
Linux 基于策略的路由(Linux Policy Routing) | |
Linux 有传统的基于数据包目的地址的路由算法,和新的基于策略的路由算法 | |
新算法优点:支持多个路由表,支持按数据报属性(源地址、目的地址、协议、端口、数据包大小、内容等)选择不同路由表 | |
# 查看规则命令,后面可跟其它参数,默认为 show(list) 显示全部 | |
ip rule |
This file contains 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.linux 需要libpcap库 | |
sudo apt-get install libpcap0.8-dev | |
2.windows 64位系统需要 | |
go_amd64 | |
使用winpcap无法抓取127.0.0.1通讯的流量,如果要抓取127.0.0.1的流量需要Npcap | |
Npcap 是对当前最流行的 WinPcap 工具包进行改进的一个项目,兼容winpcap api. | |
安装x86_64-w64-mingw32-8.1.0-crt-5.0.4.7z |
This file contains 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 ( | |
"bufio" | |
"errors" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |
This file contains 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.下载二进制包:https://get.gravitational.com/teleport-v2.6.1-linux-amd64-bin.tar.gz | |
解压得到用到的是里面的三个二进制: | |
1.1 tctl (管理工具) | |
1.2 teleport (认证服务中心) | |
1.3 tsh (类似ssh客户端) | |
tctl和teleport必须在一个服务器上 | |
安装: | |
mkdir -p /var/lib/teleport | |
cp tctl teleport tsh /usr/bin |
This file contains 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
[General] | |
loglevel = notify | |
skip-Proxy = 192.168.0.0/16, 193.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 127.0.0.1, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1, localhost, *.local | |
bypass-system = true | |
dns-server = system,119.28.28.28,223.6.6.6,208.67.222.222 | |
allow-wifi-access = true | |
collapse-policy-group-items = true | |
enhanced-mode-by-rule = false | |
exclude-simple-hostnames = true | |
hide-crashlytics-request = true |
NewerOlder