Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
专注

John Smith lbp0200

🎯
专注
View GitHub Profile
View 文章1
内容才是重要的
@lbp0200
lbp0200 / README.md
Created Dec 6, 2019 — forked from bwann/README.md
Tunnelling SSH over SSL/TLS
View README.md

How to tunnel SSH over SSL/TLS

laptop ssh -> laptop stunnel -> evil network -> internet -> your server -> your server ssh

Server (your shell server/home box/work box/whatever)

Sets up a stunnel process listening externally on port 2443/tcp, forwards to localhost 22/tcp

  • Install stunnel, e.g. yum install stunnel
  • Install server config snippet to /etc/stunnel/stunnel.conf
@lbp0200
lbp0200 / config.client.json
Last active Jan 19, 2021
免费分享我搭建的v2ray
View config.client.json
{
"log": {
"loglevel": "error"
},
"inbounds": [
{
"tag": "laVPSSocksIn",
"protocol": "socks",
"listen": "0.0.0.0",
"port": 1080,
@lbp0200
lbp0200 / route.json
Last active Dec 25, 2018
v2ray 4.9版本 智能自动路由配置 兲朝IP、网站直连
View route.json
```json
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
@lbp0200
lbp0200 / cn_ip.json
Created Dec 25, 2018
兲朝IP段 2018年12月25日 星期二更新
View cn_ip.json
{
"type": "field",
"ip": [
"1.0.1.0/24",
"1.0.2.0/23",
"1.0.8.0/21",
"1.0.32.0/19",
"1.1.0.0/24",
"1.1.2.0/23",
"1.1.4.0/22",
@lbp0200
lbp0200 / polipo.service
Created May 30, 2018
服务托管openrc下的polipo
View polipo.service
#!/sbin/openrc-run
pidfile="/run/$RC_SVCNAME.pid"
command="/usr/bin/polipo"
config="/etc/polipo.conf"
depend() {
need net
}
View 黑名单屏蔽广告.md

除下面的网站外,都可以显示广告

@@*$document,domain=~baidu.com|~91.com|~hao123.com
@lbp0200
lbp0200 / download.py
Created Apr 20, 2018
鸭题库主管护师复习包
View download.py
import os.path, requests, json
catalogList = [
{
"Name": "高频考点",
"items": [
{
"Icon": "1",
"CatalogId": "25",
"Taxis": "1",
@lbp0200
lbp0200 / client.py
Last active Feb 12, 2018
Python 3 TCP Server MultiProgress base on CPU Number and ThreadPool in per Progress
View client.py
from socket import socket, AF_INET, SOCK_STREAM
from random import randint
for i in range(5):
s = socket(AF_INET, SOCK_STREAM)
s.connect(('localhost', 19000))
r = randint(0,100)
s.send(b'Hello' )
print(s.recv(8192))
@lbp0200
lbp0200 / init.sh
Last active Jul 13, 2017
vultr startup script
View init.sh
apt update
#开启bbr
modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
#安装必要软件