Skip to content

SWRedirector使用教程

SWRedirector 是一个命令行程序,并且需要以管理员权限运行来加载驱动,用法如下:

Usage:
  swredirector.exe <host:port> [options]
  swredirector.exe pass [options]

Arguments:
  host:port        Target MQTT broker address (local or remote, e.g. 192.168.1.1:8883)
  pass             Keep MQTT destination as the official broker, perform TLS upstream, and pass all downstream packets through

Options:
  --ignore <rule>  Semicolon-separated process filter key=value pairs.
                   Keys: fp (full exe path), pn (process name), pid (number)
                   Multiple rules: separate with comma
                   Example: fp=C:\app.exe;pn=app.exe,pid=1234
  --override <deviceId> <deviceSecret>
                   Enable register response override: return the given device info.
  --capture <file> Save MQTT packets as virtual pcapng and compress with zstd.