使用了 go-nfnetlink 纯Go 实现的 nfnetlink 库,不依赖 libnetfilter_queue Linux 系统库,编译后即可使用。 从iptables NFQUEUE 中接收 tcp 连接的 SYN 包,并从 SYN 包中解析得到源 IP 地址、源 tcp 端口、目的 IP 地址、目的 tcp 端口等信息。 q := nfqueue.NewNFQueue(1) ps, err := q.Open() if e...
logger_test.go proxy_tcp.go rules.go server.go userconnhandler_tcp.go README MIT license freki The ravenous and greedy one. Frekiis a tool for manipulating packets in userspace. Using iptable's raw table, packets are routed down into userspace wherefrekitakes over. A set of rules is ap...