mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 04:35:12 +02:00
7 lines
175 B
Bash
Executable File
7 lines
175 B
Bash
Executable File
#!/bin/bash
|
|
if [ "$#" -ne 4 ]; then
|
|
echo "usage: $0 <IP src> <IP dst> <PORT dst> <secret>"
|
|
exit 1
|
|
fi
|
|
python gen_hmac.py "$4" "$1" | socat - "udp-sendto:$2:$3,bind=$1"
|