Add example config file and s6 run file.

This commit is contained in:
Nicholas J. Kain 2022-03-08 12:23:05 -05:00
parent 484a9c516b
commit 5bca0a3d48
2 changed files with 23 additions and 0 deletions

6
examples/s6.run Executable file
View File

@ -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

17
examples/wan0.conf Normal file
View File

@ -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