VibeCoding 了个 无需后台服务的 Windows 极简仿伙墙 netblock

5 月 26 日
 coffeeking

开源地址:github 点 com/ghking1/netblock 求 star

特性介绍

使用方法

C:\Windows\System32>netblock.exe -h

netblock <command> [options]

Commands:
  add    Add a blocking/filtering rule
  del    Delete rule(s)
  list   List all rules managed by netblock

Options for 'add':
  -n <name>         Rule name (for later management; default: auto-generated UUID)
  -p <path>         Program absolute path (include .exe; default: all programs)
  -a <ip/cidr>      Remote IP address (IPv4/IPv6, e.g. 192.168.1.1 or 2001:db8::/32)
  -l <port|range>   Local port (e.g. 80; 8000-9000; 81,82,83; 81,82-85; default: all)
  -r <port|range>   Remote port (same format as -l; default: all)
  -e <block|allow>  Action (default: block)
  -d <in|out|both>  Traffic direction (default: both)
  -t                Set as temporary rule (default: persistent)

Options for 'del':
  -n <name>         Delete by rule name (recommended)
  -p <path>         Delete all rules matching this program path (batch)

Note: 'add' requires at least one filter condition (-p, -a, -l, or -r).
773 次点击
所在节点    程序员
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1215645

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX