BashEdge command line reference

Summary: The bashedge command, run as root on the server.

The installer adds the bashedge command. Run it as root.

Addresses

CommandWhat it does
bashedge check <ip>Is this address blocked, challenged or allowed?
bashedge block <ip|cidr> [--ttl 24h] [--reason "..."]Block an address or range.
bashedge unblock <ip|cidr>Remove a block.
bashedge challenge <ip|cidr>Send it to the verification page.
bashedge release <ip|cidr>Stop challenging it.
bashedge allow <ip|cidr> [--reason "..."]Never act on this address.
bashedge unallow <ip|cidr>Remove it from the allowlist.
bashedge list [blocked|challenged|allowed]List addresses.

Protection and status

CommandWhat it does
bashedge mode [monitor|enforce]Show or change the protection mode.
bashedge statusSummary of what BashEdge has recorded.
bashedge top [-n 20]The top addresses BashEdge has recorded.
bashedge show <ip>What BashEdge knows about one address.
bashedge versionThe installed version.

Dashboard sign-in (servers without a control panel)

CommandWhat it does
bashedge set-password [--user name]Set the sign-in and its 6-digit code.
bashedge set-codeChange the 6-digit code.
bashedge whoamiShow the username.
bashedge 2fa --status|--enable|--disableManage the authenticator app.
bashedge login-unlockClear sign-in lockouts.
bashedge login-allow <ip|cidr>Never lock this address out of the dashboard.

Removal

CommandWhat it does
bashedge failopenRemove all BashEdge firewall state, in an emergency.
bashedge uninstall --yes [--purge]Remove BashEdge from the server.

Last updated · Applies to BashEdge