Skip to content

Commit

Permalink
feat: new config fields in v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyxdd committed Oct 28, 2024
1 parent 8ad9068 commit b53b02f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/docs/build-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ opkg install nftables kmod-nft-queue kmod-nf-conntrack-netlink
```yaml
io:
queueSize: 1024
queueNum: 100 # (6)!
table: opengfw # (7)!
connMarkAccept: 1001 # (8)!
connMarkDrop: 1002 # (9)!
rcvBuf: 4194304
sndBuf: 4194304
local: true # (1)!
Expand Down Expand Up @@ -69,3 +73,7 @@ replay:
3. Recommended to be no more than the number of CPU cores
4. How long a connection is considered dead when no data is being transferred. Dead connections are purged from TCP reassembly pools once per minute.
5. Set to true if you want to replay the packets in the pcap file in "real time" (instead of as fast as possible)
6. nfqueue queue number
7. nftables table name
8. connmark value for accepted connections
9. connmark value for dropped connections
8 changes: 8 additions & 0 deletions docs/docs/build-run.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ opkg install nftables kmod-nft-queue kmod-nf-conntrack-netlink
```yaml
io:
queueSize: 1024
queueNum: 100 # (6)!
table: opengfw # (7)!
connMarkAccept: 1001 # (8)!
connMarkDrop: 1002 # (9)!
rcvBuf: 4194304
sndBuf: 4194304
local: true # (1)!
Expand Down Expand Up @@ -69,3 +73,7 @@ replay:
3. 建议不超过 CPU 核心数
4. 一个连接多久没有数据传输后会被认为是死连接。TCP 重组的连接池会以每分钟一次的频率清理死连接
5. 如果希望以实时速度(pcap 文件中的时间戳)回放 pcap 中的数据包(而不是以能处理的最快速度),设置为 true
6. nfqueue 队列序号
7. nftables 表名
8. 放行连接的 connmark 值
9. 阻断连接的 connmark 值

0 comments on commit b53b02f

Please sign in to comment.