From 5bca0a3d4858b1853ed7fafa26da024eac66b6b9 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Tue, 8 Mar 2022 12:23:05 -0500 Subject: [PATCH] Add example config file and s6 run file. --- examples/s6.run | 6 ++++++ examples/wan0.conf | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 examples/s6.run create mode 100644 examples/wan0.conf diff --git a/examples/s6.run b/examples/s6.run new file mode 100755 index 0000000..cbb02b8 --- /dev/null +++ b/examples/s6.run @@ -0,0 +1,6 @@ +#!/bin/execlineb -P +fdmove -c 2 1 +backtick OLDEXTIP { cat /etc/firewall/tmp/OLDEXTIP } +importas OLDEXTIP OLDEXTIP +/sbin/ndhc -c /etc/ndhc/wan0.conf -r $OLDEXTIP + diff --git a/examples/wan0.conf b/examples/wan0.conf new file mode 100644 index 0000000..e0ed7d1 --- /dev/null +++ b/examples/wan0.conf @@ -0,0 +1,17 @@ +user = ndhc +ifch-user = ndhc-ifch +sockd-user = ndhc-sockd +chroot = /var/lib/ndhc +state-dir = /etc/ndhc +interface = wan0 +now = true +hostname = EXAMPLE-HOST +clientid = aa:bb:cc:dd:ee:ff +relentless-defense = true +s6-notify = 3 +arp-probe-wait = 50 +arp-probe-num = 3 +arp-probe-min = 50 +arp-probe-max = 100 +script-file = /sbin/fw-wan0-ipchange +