Interactive CLI

Smithproxy uses libcli2 for an interactive, context-aware administration shell. It supports command history, cursor movement, Tab completion and ? help over its Telnet-compatible TCP transport.

Connect

Use the wrapper installed by packages:

sudo sx_cli

Or connect directly to the configured CLI port (default 50000):

telnet 127.0.0.1 50000

Do not expose the management port to an untrusted network. Restrict it with host firewall rules and set an enable password when remote access is unavoidable.

Modes and discovery

smithproxy> enable
smithproxy# configure terminal
smithproxy(config:/)#
  • enable enters privileged mode.
  • configure terminal enters configuration mode.
  • exit moves back one level or closes the session.
  • Tab completes the current token.
  • ? lists valid continuations or contextual help.

Session diagnostics

diag proxy session list
diag proxy session list active
diag proxy session list tls
diag proxy session list io
diag proxy session list ips
diag proxy session list 7

Arguments may be combined. Numeric arguments select verbosity. active filters idle sessions, tls includes TLS state, io adds queue information and ips retains the destination IP next to a resolved SNI.

Other useful diagnostics:

diag proxy policy list
diag workers proxy list
diag writer stats
diag tls cache stats
diag api info
show event list

Editing configuration

The schema-aware CLI exposes only operations valid for the current path. A typical flow is:

configure terminal
edit content_profiles
edit default
set write_payload true
exit

Review the prompt for the unsaved-change marker. Validate and save deliberately before reload or restart.

Terminal behavior

The socket editor uses ANSI/VT escape sequences for line redraw and cursor movement. Standard Linux telnet, xterm-compatible terminals and xterm.js display them correctly. Automated clients should strip Telnet negotiation bytes and ANSI sequences or use the HTTP API instead of screen-scraping CLI output.