Skip to content

Commit

Permalink
nixos-firewall-tool: add man page
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Dec 28, 2024
1 parent d9fd3dc commit d57da57
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkgs/by-name/ni/nixos-firewall-tool/nixos-firewall-tool.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.TH nixos-firewall-tool 1
.SH NAME
nixos-firewall-tool \- a tool to temporarily manipulate the NixOS firewall
.SH SYNOPSIS
nixos-firewall-tool \fIsubcommand\fR

Open TCP port:
nixos-firewall-tool open tcp 8888

Open UDP port:
nixos-firewall-tool open udp 51820

Show all firewall rules:
nixos-firewall-tool show

Reset firewall configuration to system settings:
nixos-firewall-tool reset
1 change: 1 addition & 0 deletions pkgs/by-name/ni/nixos-firewall-tool/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ stdenvNoCC.mkDerivation rec {

installPhase = ''
installBin nixos-firewall-tool
installManPage nixos-firewall-tool.1
installShellCompletion nixos-firewall-tool.{bash,fish}
'';

Expand Down

0 comments on commit d57da57

Please sign in to comment.