The installer adds the bashedge command. Run it as root.
Addresses
| Command | What 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
| Command | What it does |
bashedge mode [monitor|enforce] | Show or change the protection mode. |
bashedge status | Summary 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 version | The installed version. |
Dashboard sign-in (servers without a control panel)
| Command | What it does |
bashedge set-password [--user name] | Set the sign-in and its 6-digit code. |
bashedge set-code | Change the 6-digit code. |
bashedge whoami | Show the username. |
bashedge 2fa --status|--enable|--disable | Manage the authenticator app. |
bashedge login-unlock | Clear sign-in lockouts. |
bashedge login-allow <ip|cidr> | Never lock this address out of the dashboard. |
Removal
| Command | What it does |
bashedge failopen | Remove all BashEdge firewall state, in an emergency. |
bashedge uninstall --yes [--purge] | Remove BashEdge from the server. |