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 +