summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-12 00:25:12 -0500
committerJeff Carr <[email protected]>2023-04-12 00:25:12 -0500
commit2a80f90f38dc482021ca0b4dc4680f179bce9173 (patch)
treeaef1e0c8c9f686e48c74bfe821ee5f23b9ed0aeb
parentc81b8f8ac6cb1f0e37e3f8eb6ed5babf3c61bbfd (diff)
bastion
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--Makefile13
-rwxr-xr-xgo-nsupdatebin0 -> 6921708 bytes
-rw-r--r--mykey4
3 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 239e120..5b2f6b8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,19 @@
-all:
+bastion:
+ ./go-nsupdate \
+ --tsig-algorithm=hmac-sha512 \
+ --tsig-secret="+jmA1sPgduPR3X7wBn16KsOD3XZQYkPOHXzr4+8IvNvQATO5FfoxinHXJLloWABN+5n56F5Fuvf41+D/RL89UA==" \
+ -i enp1s0f3 bastion.lab.wit.org
+
+hpdevone:
./go-nsupdate \
--tsig-algorithm=hmac-sha512 \
--tsig-secret="uf7tVM0ePWiSl0HtLNJVP7/DH/WuNkugxS19uXfN+k9V+avixXg/fmIS31FjR/kscvgMmkS+sspB83WjYXGU+w==" \
-i wlo1 hpdevone.lab.wit.org
+setdate:
+ # apt install ntpdate
+ ntpdate pool.ntp.org
+
check:
./go-nsupdate \
--tsig-algorithm=hmac-sha512 \
@@ -11,4 +21,5 @@ check:
-i wlo1 check.lab.wit.com
make-keys:
+ tsig-keygen -a hmac-sha512 bastion.lab.wit.org
sudo tsig-keygen -a hmac-sha512 hpdevone.lab.wit.org
diff --git a/go-nsupdate b/go-nsupdate
new file mode 100755
index 0000000..2d10073
--- /dev/null
+++ b/go-nsupdate
Binary files differ
diff --git a/mykey b/mykey
new file mode 100644
index 0000000..afbbf41
--- /dev/null
+++ b/mykey
@@ -0,0 +1,4 @@
+key "hpdevone.lab.wit.org" {
+ algorithm hmac-sha512;
+ secret "uf7tVM0ePWiSl0HtLNJVP7/DH/WuNkugxS19uXfN+k9V+avixXg/fmIS31FjR/kscvgMmkS+sspB83WjYXGU+w==";
+};