This is an example of configuring transparent proxy(tproxy) with nftables. The tproxy application ishev-socks5-tproxyNetfilter rulesDON’T FORGOT TO ADD UPSTREAM ADDRESS TO BYPASS IPSET!!Or use nftables skuid/skgid match to exclude proxy process.table inet mangle {
set byp4 {
typeof ip daddr
flags interval
elements = { 0.0.0.0/8, 10.0.0.0/8,
127.0.0.0/8, 169.254.0.0/16,
172.16.0.0/12, 192.0.0.0/24,
192.0.2.0/24, 192.88.99.0/24,
192.168.0.0/16, 198.18.0.0/15,
198.51.100.0/24, 20
...
继续阅读
(43)