From 74fec824fe6f028369adfccb3ab54f672e6dcf82 Mon Sep 17 00:00:00 2001 From: supphakitd <67319010028@technictrang.ac.th> Date: Tue, 2 Dec 2025 21:16:28 +0700 Subject: [PATCH] check-port: added --- check-port | 4 ++++ install.sh | 1 + 2 files changed, 5 insertions(+) create mode 100755 check-port diff --git a/check-port b/check-port new file mode 100755 index 0000000..04bb328 --- /dev/null +++ b/check-port @@ -0,0 +1,4 @@ +#!/bin/bash + +[ -v "$1" ] && ss -tunple | grep "$1" +[ -z "$1" ] && ss -tunple diff --git a/install.sh b/install.sh index 5f3945b..4b87523 100755 --- a/install.sh +++ b/install.sh @@ -11,3 +11,4 @@ install -m 0775 ./dps /usr/bin/dps install -m 0775 ./dde /usr/bin/dde install -m 0775 ./ufw-status /usr/bin/ufw-status install -m 0775 ./ufw-delete /usr/bin/ufw-delete +install -m 0775 ./check-port /usr/bin/check-port