SunBK201's recent timeline updates
SunBK201's repos on GitHub
Go · 574 watchers
UA3F
Advanced HTTP(S) Rewriting Proxy
HTML · 37 watchers
cli-guidelines-zh
这是一个开源指南,可以帮助您编写出更好的命令行程序,采用经典的 UNIX 哲学并对其进行改进,以适应现代生产环境的需要。
Python · 30 watchers
ScubaTrace
Source-level code analysis toolkit for SAST, context engineering, and AI coding
C · 13 watchers
umicat
L4 reverse proxy load balancer for TCP/UDP network services
Shell · 6 watchers
OpenWrt-R4S-glibc
This repo is used to cross compile OpenWrt for NanoPi-R4S. The official default is to use musl-libc. However, the difference is that the standard C library we use is glibc, instead of musl-libc.
C · 3 watchers
TinxyR
TinxyR is a reverse proxy server help you forward http traffic from local to remote.
3 watchers
trails-relation-graph
Trails games have a lot of characters and these characters are inextricably linked to each other. This repo stores relation graphs of the characters in the Trails games from Falcom Official.
Python · 2 watchers
cpu-heater
Python parallel computing library
C · 2 watchers
csapp
csapp labs
C++ · 2 watchers
Data-Structure-lib
C · 2 watchers
Demrpc
This is a very simple toy RPC demo.
2 watchers
Dir8urp
An Open-source Path Burp Tool.
Python · 2 watchers
joern-python
Joern Python Binding
2 watchers
linux-c-learning-all-in-one
Linux-C-Learning-All-In-One
Shell · 2 watchers
MySCR
Some self-use scripts for common automation tasks.
2 watchers
Quantumult-X-Conf
This repo is a my personal config repo for Quantumult-X.
2 watchers
Spoon-Knife
This repo is for demonstration purposes only.
2 watchers
SunBK201
hi guys !
C · 2 watchers
UA2F
Change User-agent to F-words on OpenWRT router to prevent being checked.
JavaScript · 1 watchers
ESP8266-HomeKit-Widget
Make a widget with Scriptable for ESP8266 HomeKit Sensor
Go · 1 watchers
nexttrace-enhanced
Visual route tracking tool
C · 1 watchers
openwrt
This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins or for reporting issues. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git. All issues should be reported at: https://bugs.openwrt.org
Go · 1 watchers
umicatgo
TypeScript · 1 watchers
vscode-github-star
VS Code extension that displays the GitHub Star
0 watchers
Actions-immortalWrt-UA2F
使用 GitHub Actions 云编译 带上ipid ua2f的固件
Shell · 0 watchers
Actions-OpenWrt
Actions-OpenWrt
0 watchers
advisory-database
Security vulnerability database inclusive of CVEs and GitHub originated security advisories from the world of open source software.
HTML · 0 watchers
Blog
0 watchers
chinese-independent-blogs
中文独立博客列表
0 watchers
CLDIFF
0 watchers
cli-guidelines
A guide to help you write better command-line programs, taking traditional UNIX principles and updating them for the modern day.
Java · 0 watchers
diffTest
0 watchers
envoy
Cloud-native high-performance edge/middle/service proxy
0 watchers
hit-counter
:rocket: Easy way to know how many visitors are viewing your Github, Website, Notion. :tada:
0 watchers
homebrew-core
🍻 Default formulae for the missing package manager for macOS (or Linux)
0 watchers
immortalwrt
An opensource OpenWrt variant for mainland China users.
Python · 0 watchers
multilspy
multilspy is a lsp client library in Python intended to be used to build applications around language servers.
JavaScript · 0 watchers
nobelium
A static blog build on top of Notion and NextJS, deployed on Vercel.
Makefile · 0 watchers
packages
Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
Jupyter Notebook · 0 watchers
PathSentinel
PathSentinel is an application firewall that focuses on HTTP path protection. It uses deep neural network to provide web application security.
0 watchers
Profiles
🌐Dial-up Internet access
TypeScript · 0 watchers
RSSHub
🍰 Everything is RSSible
Python · 0 watchers
TGBanBot
0 watchers
the-swift-programming-language-in-chinese
中文版 Apple 官方 Swift 教程《The Swift Programming Language》
Python · 0 watchers
tree-sitter-builder
JavaScript · 0 watchers
UserScripts
Greasemonkey scripts
Python · 0 watchers
VERJava
Replication of VERJava
SunBK201

SunBK201

V2EX member #544456, joined on 2021-05-04 22:30:44 +08:00
3 G 29 S 14 B
SunBK201's recent replies
@SunBK201 或者 go run . -m TPROXY --rewrite-mode GLOBAL --include-lan-routes --bpf-offload
@macscsbf 更正下命令,应该使用命令 go run . -m TPROXY --rewrite-mode DIRECT --include-lan-routes --bpf-offload
@macscsbf 虚拟机没问题,我就是用的 UTM 复现的
@macscsbf 需求是用 eBPF 加速 socket 铰接转发,主要是用在 TCP socket 代理上,从一个 socket 上读到数据并写到另一个 socket 上,现在主流做法是用 splice 来做,我想试试 eBPF redirect 能够加速,理论上除了能够零拷贝还能节省系统调用带来的用户态与内核态之间的上下文切换开销。

如果要测试可以参考下我的代码:
1. eBPF 程序 https://github.com/SunBK201/UA3F/blob/v3.3.0/src/internal/bpf/sockmap/sockmap.c
2. 核心就是保存 2 个 socket 的 cookie 到 SOCKHASH ,然后用 `bpf_sk_redirect_hash` 转发
3. 可以在本机使用 iperf3 或者 netperf 做吞吐测试
4. 如果要完整复现可能比较麻烦,因为我还用到了 TPORXY ,可以直接用我的项目试试 https://github.com/SunBK201/UA3F ,`go run . -m TPROXY --include-lan-routes`。这个命令会接管本机的所有 TCP 连接并进行代理,然后在本机使用 iperf3 请求到另一台机器即可。
@swananan 感谢回复。其实我之前就是用 splice 做的,用 eBPF 就是想看看能不能再把转发性能提升一些,目前测试看来对于发送时延和 CPU 负载都能有 20% 到 30% 的优化提升,不过目前看来可能只适用于网络接口带宽收发对等的场景。
Feb 20
Replied to a topic by sxmad macOS Mac 上好用的 markdown 预览插件
c3VuYmsyMDFnbUBnbWFpbC5jb20= 感谢
@unused 这个方法刚刚我也发现了,但是 ih 似乎需要比较新的 nftables 版本,旧版本不支持🥲
@birdvdsk 我也有想到,但是只用 flag 可能有漏报吧
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2824 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 09:24 · PVG 17:24 · LAX 02:24 · JFK 05:24
♥ Do have faith in what you're doing.