1 | # Stolen from /sbin/dhclient-script using using no /usr based binaries.
|
---|
2 | # Converts an commented list into a SEP (default space) seperated list.
|
---|
3 | make_list() {
|
---|
4 | SEP=${2:-' '}
|
---|
5 | oldifs="$IFS"
|
---|
6 | IFS="
|
---|
7 | "
|
---|
8 | list=""
|
---|
9 | for line in $1; do
|
---|
10 | line=${line%%[ \t#]*}
|
---|
11 | [ -n "$line" ] && list="$list$SEP$line"
|
---|
12 | done
|
---|
13 | IFS=${oldifs}
|
---|
14 | echo ${list##$SEP}
|
---|
15 | }
|
---|
16 |
|
---|
17 | # No kernel dumps as we don't have a place to store them
|
---|
18 | dumpdev="NO"
|
---|
19 |
|
---|
20 | # We are an router/gateway (wireless to be precise) running the lvrouted
|
---|
21 | # routing daemon.
|
---|
22 | gateway_enable="YES"
|
---|
23 | lvrouted_enable="YES"
|
---|
24 | lvrouted_flags="-u -s s00p3rs3kr3t -m 28"
|
---|
25 |
|
---|
26 | # NTP server needs working config with WL network or internet on boot
|
---|
27 | # so some warnings might pop up, but no harm
|
---|
28 | ntpdate_enable="YES"
|
---|
29 | ntpd_enable="YES"
|
---|
30 | ntpd_sync_on_start="YES"
|
---|
31 | ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntp.drift"
|
---|
32 |
|
---|
33 | # We need no running mail server
|
---|
34 | sendmail_enable="NONE"
|
---|
35 |
|
---|
36 | # Don't let syslog accept input from other remote hosts
|
---|
37 | syslogd_enable="YES"
|
---|
38 | syslogd_flags="-s -A -c"
|
---|
39 |
|
---|
40 | # Remote login without DNS checking as it might not also be functionable
|
---|
41 | # -u0 prevent sshd from making DNS requests unless the authentication mechanism
|
---|
42 | # or configuration requires it.
|
---|
43 | sshd_enable="YES"
|
---|
44 | sshd_flags="-u0"
|
---|
45 |
|
---|
46 | # Watchdogd: avoid visits because of unit not reachable. If sshd is not running
|
---|
47 | # for -t seconds than reboot. This is checked evert -s seconds.
|
---|
48 | watchdogd_enable="YES"
|
---|
49 | watchdogd_flags="-t 300 -s 60 -e '/etc/rc.d/sshd status'"
|
---|
50 |
|
---|
51 | # Monitoring deamons
|
---|
52 | nrpe2_enable="YES"
|
---|
53 | snmpd_enable="YES"
|
---|
54 | snmpd_flags="-Ls 1"
|
---|
55 |
|
---|
56 | # HTTP(S) proxy server
|
---|
57 | tinyproxy_enable="NO"
|
---|
58 |
|
---|
59 | # Make sure generated ssh keys are saved
|
---|
60 | nanobsd_save_sshkeys_enable="YES"
|
---|
61 |
|
---|
62 | # low-memory footprint DHCP and non-autoritive recursive DNS resolver
|
---|
63 | dnsmasq_enable="YES"
|
---|
64 |
|
---|
65 | # Explicitly disable the memory-hungry alternatives
|
---|
66 | dhcpd_enable="NO"
|
---|
67 | named_enable="NO"
|
---|
68 | named_chrootdir=""
|
---|
69 | named_auto_forward="YES"
|
---|
70 |
|
---|
71 | # WL Captive Portal and WL Web Config Overview
|
---|
72 | thttpd_enable="YES"
|
---|
73 | http302_enable="YES"
|
---|
74 |
|
---|
75 | # Hybrid setup, requires outgoing VPN Server
|
---|
76 | openvpn_enable="NO"
|
---|
77 | openvpn_if="tap"
|
---|
78 | openvpn_configfile="/usr/local/etc/openvpn/client.conf"
|
---|
79 |
|
---|
80 | # Enable the firewall by default
|
---|
81 | pf_enable="YES"
|
---|
82 | pf_rules="/etc/pf.open.conf"
|
---|
83 | pf_flags=''
|
---|
84 | # Used with Proxy Configuration
|
---|
85 | #pf_rules="/etc/pf.proxy.conf"
|
---|
86 | #pf_flags="-D ext_if=vr0 -D int_if=vr1 -D publicnat={80,443}"
|
---|
87 | # Used with Node Configuration
|
---|
88 | #pf_rules="/etc/pf.node.conf"
|
---|
89 | #pf_flags="-D captive_portal_interfaces=wlan0,wlan1"
|
---|
90 | # Used with Hybrid Configuration
|
---|
91 | #pf_rules="/etc/pf.hybrid.conf"
|
---|
92 | #pf_flags="-D ext_if=vr0 -D captive_portal_interfaces=wlan0 -D publicnat=80,443"
|
---|
93 |
|
---|
94 |
|
---|
95 | # Autogenerated flags are used during runtime
|
---|
96 | rc_conf_running='/etc/rc.conf.running'
|
---|
97 | if [ -r $rc_conf_running ]; then
|
---|
98 | . $rc_conf_running
|
---|
99 | else
|
---|
100 | : > $rc_conf_running
|
---|
101 | fi
|
---|