#----------------------------------------------------------------------- # rc.conf -- Transparent wireless Tor gateway (middlebox) # NetBSD 8.0/arm7 (RPI2 and RPI3) # # int-if: ethernet, ext-if: rum0 in hostAP mode # All traffic on ext-if goes via Tor. NO packet forwarding should be # enabled (see pf.conf) # # [2018-05-23 / per.foyer@xyx.se] #------------------------------------------------------------------------ if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf fi # rc_configured=YES sshd=YES wscons=YES devpubd=YES postfix=NO sendmail=NO powerd=NO ntpd=YES ntpd_flags="-g" #--- Set wireless adapter (rum0 - see hostap.conf) - in AP mode ----------- hostapd=YES hostapd_flags="-B /etc/hostapd.conf" #--- Start DHCP-server on WiFi side -- see dhcpd.conf -- on rum0 dhcpd=YES dhcpd_flags="-q rum0" #--- Start Tor server -- see /usr/pkg/etc/tor/torrc ------ tor=YES #--- Start pf -- routing magic here -- CAUTION: NO packaet forward! pf=YES pf_rules="/etc/pf.conf" pf_flags="" pflogd=YES #--- Use if internal NIC not assigned static IP dhcpcd=YES dhcpcd_flags="-qM usmsc0" #--- EOF ------------------------------------------------------------