source: hybrid/branches/releng-9.0/nanobsd/files/etc/rc.conf@ 10774

Last change on this file since 10774 was 10774, checked in by rick, 13 years ago

Make sure to start lvrouted as a real routing daemon and give it some time to
enable booting.

  • Property svn:eol-style set to LF
File size: 3.2 KB
Line 
1# Stolen from /sbin/dhclient-script using using no /usr based binaries.
2# Converts an commented list into a SEP (default space) seperated list.
3make_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
18dumpdev="NO"
19
20# We are an router/gateway (wireless to be precise) running the lvrouted
21# routing daemon.
22gateway_enable="YES"
23lvrouted_enable="YES"
24lvrouted_flags="-u -s s00p3rs3kr3t -m 28"
25
26# Takes lvrouted an small while to create reachable network nodes, make sure to
27# wait on it,to saves some bootup warnings.
28netwait_enable="YES"
29netwait_timeout="20"
30netwait_ip="8.8.8.8 172.16.4.46 172.27.129.1 172.17.14.1"
31
32
33# Block the full range as smaller subnets are used for allowances, this avoids
34# traffic going out (due to the default route) to unreachable parts to the
35# 172.16.0.0/12 network.
36static_routes="quickstop"
37route_quickstop="-net 172.16.0.0/12 127.0.0.1 -reject"
38
39# NTP server needs working config with WL network or internet on boot
40# so some warnings might pop up, but no harm
41ntpdate_enable="YES"
42ntpd_enable="YES"
43ntpd_sync_on_start="YES"
44ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntp.drift"
45
46# We need no running mail server
47sendmail_enable="NONE"
48
49# Don't let syslog accept input from other remote hosts
50syslogd_enable="YES"
51syslogd_flags="-s -A -c"
52
53# Remote login without DNS checking as it might not also be functionable
54# -u0 prevent sshd from making DNS requests unless the authentication mechanism
55# or configuration requires it.
56sshd_enable="YES"
57sshd_flags="-u0"
58
59# Watchdogd: avoid visits because of unit not reachable. If sshd is not running
60# for -t seconds than reboot. This is checked evert -s seconds.
61watchdogd_enable="YES"
62watchdogd_flags="-t 300 -s 60 -e '/etc/rc.d/sshd status'"
63
64# Monitoring deamons
65nrpe2_enable="YES"
66snmpd_enable="YES"
67snmpd_flags="-Ls 1"
68
69# HTTP(S) proxy server
70tinyproxy_enable="NO"
71
72# Make sure generated ssh keys are saved
73nanobsd_save_sshkeys_enable="YES"
74
75# low-memory footprint DHCP and non-autoritive recursive DNS resolver
76dnsmasq_enable="YES"
77
78# Explicitly disable the memory-hungry alternatives
79dhcpd_enable="NO"
80dhcpd_flags="-q"
81named_enable="NO"
82named_chrootdir=""
83named_auto_forward="YES"
84
85# WL Captive Portal and WL Web Config Overview
86thttpd_enable="YES"
87http302_enable="YES"
88
89# Hybrid setup, requires outgoing VPN Server
90openvpn_enable="NO"
91openvpn_if="tap"
92openvpn_configfile="/usr/local/etc/openvpn/client.conf"
93
94# Enable the firewall by default
95pf_enable="YES"
96pf_rules="/etc/pf.open.conf"
97pf_flags=''
98# Used with Proxy Configuration
99#pf_rules="/etc/pf.proxy.conf"
100#pf_flags="-D ext_if=vr0 -D int_if=vr1 -D publicnat={80,443}"
101# Used with Node Configuration
102#pf_rules="/etc/pf.node.conf"
103#pf_flags="-D captive_portal_interfaces=wlan0,wlan1"
104# Used with Hybrid Configuration
105#pf_rules="/etc/pf.hybrid.conf"
106#pf_flags="-D ext_if=vr0 -D captive_portal_interfaces=wlan0 -D publicnat=80,443"
107
108
109# Autogenerated flags are used during runtime
110rc_conf_running='/etc/rc.conf.running'
111if [ -r $rc_conf_running ]; then
112 . $rc_conf_running
113else
114 : > $rc_conf_running
115fi
Note: See TracBrowser for help on using the repository browser.