Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 1.73 KB

README.md

File metadata and controls

76 lines (51 loc) · 1.73 KB

ufw-cli

A command-line interface tool to simplify the management of UFW (Uncomplicated Firewall) on Linux systems. For more detailed information on UFW, please refer to the UFW documentation.

Features

  • Easy UFW installation
  • Quick setup of common firewall rules
  • Custom port configuration
  • Simple enable/disable commands
  • Status checking

Installation

To install the tool globally, run the following commands:

go install github.com/thatbeautifuldream/ufw-cli@latest

Usage

  • Install UFW:
ufw-cli install
  • Set up basic UFW rules:
ufw-cli setup
  • Configure additional ports interactively:
ufw-cli configure
  • Check the current UFW status:
ufw-cli status

Development

Clone the repository:

git clone --depth 1 https://github.com/thatbeautifuldream/ufw-cli.git

Navigate to the project directory:

cd ufw-cli

Build and Run Locally

The project includes several Make commands for building and running the application:

Command Description
make build Builds the binary in the build directory
make run Runs the application directly
make clean Removes build artifacts and cleans the build directory
make install Builds and installs the binary to /usr/local/bin
make all Runs clean and then builds the application
make help Displays all available make commands

Contributing

Contributions are welcome! Please feel free to submit a pull request.