A Rust-based command-line tool to manage server access control, track login activity, and export audit logs.
Description: Grants temporary access to an IP on a specific server.
cargo run -- grant-access <superuser> <ip> <server> --duration <minutes>Example:
cargo run -- grant-access admin 192.168.1.101 server2 --duration 60Description: Revokes access for an IP from a specific server.
cargo run -- revoke-access <superuser> <ip> <server>Example:
cargo run -- revoke-access admin 192.168.1.101 serverDescription: Removes all expired access records.
cargo run -- cleanup-expired <superuser>Example:
cargo run -- cleanup-expired adminDescription: Extends access duration for an IP on a server.
cargo run -- extend-access <superuser> <ip> <server> <duration_in_minutes>Example:
cargo run -- extend-access admin 192.168.1.101 server2 120Description: Logs user login timestamps for a given IP and server.
Usage:
cargo run -- login <IP_ADDRESS> <SERVER_ID>Example:
cargo run -- login 192.168.1.101 server1Description: Views all access records. Requires superuser.
Usage:
cargo run -- view-access <SUPERUSER>Example:
cargo run -- view-access adminDescription: Launches a monitored shell session for a given IP and server with logging of all commands executed.
Usage:
cargo run -- shell <IP_ADDRESS> <SERVER_ID>Example:
cargo run -- shell 192.168.1.101 server1