From b80bdd309ce2dedf8e2046674aeed4e9aa1bb77b Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Sun, 11 Jul 2021 10:32:28 +1000 Subject: [PATCH] update readme with tcpdump example --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f30ed5..a5ad5d5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Overview -Script to manage custom./etc/services entries. +Script to manage custom /etc/services entries. # Usage Show usage @@ -59,6 +59,22 @@ Update system /etc/services with custom services myservice 34777/udp rpearce@crom:serv$ +Confirm updates are working + + rpearce@crom:serv$ sudo tcpdump -i lo0 port 34777 & + [1] 54039 + rpearce@crom:serv$ nc -v -u 127.0.0.1 34777 + 10:28:38.061303 IP localhost.58916 > localhost.myservice: UDP, length 1 + 10:28:38.061314 IP localhost.58916 > localhost.myservice: UDP, length 1 + 10:28:38.061318 IP localhost.58916 > localhost.myservice: UDP, length 1 + 10:28:38.061323 IP localhost.58916 > localhost.myservice: UDP, length 1 + Connection to 127.0.0.1 port 34777 [udp/myservice] succeeded! + + rpearce@crom:serv$ sudo kill 54039 + 4 packets captured + 178 packets + rpearce@crom:serv$ + Remove a custom service, and also update /etc/services rpearce@crom:serv$ ./serv.sh -w rm myservice