← 返回
效率工具 中文

little-snitch

Control Little Snitch firewall on macOS. View logs, manage profiles and rule groups, monitor network traffic. Use when the user wants to check firewall activity, enable/disable profiles or blocklists, or troubleshoot network connections.
在 macOS 上控制 Little Snitch 防火墙。查看日志、管理配置文件和规则组、监控网络流量。用于用户想要检查防火墙活动、启用/禁用配置文件或黑名单、排查网络连接问题时。
gumadeiras
效率工具 clawhub v1.0.1 1 版本 99803.7 Key: 无需
★ 2
Stars
📥 2,502
下载
💾 3
安装
1
版本
#latest

概述

Little Snitch CLI

Control Little Snitch network monitor/firewall on macOS.

Setup

Enable CLI access in Little Snitch → Preferences → Security → Allow access via Terminal

Once enabled, the littlesnitch command is available in Terminal.

⚠️ Security Warning: The littlesnitch command is very powerful and can potentially be misused by malware. When access is enabled, you must take precautions that untrusted processes cannot gain root privileges.

Reference: https://help.obdev.at/littlesnitch5/adv-commandline

Commands

CommandRoot?Description
-----------------------------
--versionNoShow version
restrictionsNoShow license status
logNoRead log messages
profileYesActivate/deactivate profiles
rulegroupYesEnable/disable rule groups & blocklists
log-trafficYesPrint traffic log data
list-preferencesYesList all preferences
read-preferenceYesRead a preference value
write-preferenceYesWrite a preference value
export-modelYesExport data model (backup)
restore-modelYesRestore from backup
capture-trafficYesCapture process traffic

Examples

View Recent Logs (no root)

littlesnitch log --last 10m --json

Stream Live Logs (no root)

littlesnitch log --stream

Check License Status (no root)

littlesnitch restrictions

Activate Profile (requires root)

sudo littlesnitch profile --activate "Silent Mode"

Deactivate All Profiles (requires root)

sudo littlesnitch profile --deactivate-all

Enable/Disable Rule Group (requires root)

sudo littlesnitch rulegroup --enable "My Rules"
sudo littlesnitch rulegroup --disable "Blocklist"

View Traffic History (requires root)

sudo littlesnitch log-traffic --begin-date "2026-01-25 00:00:00"

Stream Live Traffic (requires root)

sudo littlesnitch log-traffic --stream

Backup Configuration (requires root)

sudo littlesnitch export-model > backup.json

Log Options

OptionDescription
---------------------
`--last h\d]`Show entries from last N minutes/hours/days
--streamLive stream messages
--jsonOutput as JSON
--predicate Filter with predicate

Notes

  • macOS only
  • Many commands require sudo (root access)
  • Profiles: predefined rule sets (e.g., "Silent Mode", "Alert Mode")
  • Rule groups: custom rule collections and blocklists

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-28 14:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

browsh

gumadeiras
现代文本浏览器,使用无头 Firefox 在终端渲染网页。
★ 8 📥 8,820
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,267
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,824