Table of Contents

Technical Information: General FreeBSD Topics

Installation Practices/Solutions

Resolve issue with boot device not found ...

gpart show
gpart set -a active /dev/ada0
gpart set -a bootme -i 3 /dev/ada0

3 was the number of my boot partition as seen in gpart show

Typical Packages to Install

Typical Firewall

To re-read the firewall rules: pfctl -f /etc/pf.conf
In /etc/pf.conf:

# SSH, DNS, HTTP, HTTPS, IRC, Murmur
tcp_pass = "{ 22 53 80 443 7000 64738 }"
# DNS, XDMCP, Murmur
udp_pass = "{ 53 177 64738 }"
# SSH tunnels
tcp_ssh = "{ 12224 22012 }"
# Bitlbee and Eggdrop
tcp_irc = "{ 6667 7667 }"
# VNC
tcp_vnc = "{ 5800:5801 5900:5901 6000:6001 }"
table <emailers> { 24.159.210.154,24.159.210.156,24.159.210.157 }
block all
pass in proto tcp from <emailers> to port 25 keep state
pass in proto tcp to port $tcp_pass keep state
pass in proto udp to port $udp_pass keep state
pass in from 192.168.0.0/24
pass out all 

Misc Tech Trivia

Add a route ...

route add -net 192.168.2.0/24 192.168.1.2

… or …

route add -net 192.168.0.0/24 24.159.210.154

CPU Info

sysctl -a | egrep 'hw.machine|hw.model|hw.ncpu'

Application-Specific Trivia

bitlbee

Configuring bitlbee under FreeBSD

You have two options for launching bitlbee: either launch it from inetd(8) or run it as a stand-alone daemon.

Launch bitlbee from inetd(8)

Add the following line to /etc/inetd.conf and reload inetd(8):

ircd            stream  tcp     nowait  bitlbee /usr/local/sbin/bitlbee bitlbee -I

Launch bitlbee as a daemon

Add the following line to /etc/rc.conf:

bitlbee_enable="YES"

The “magic whitespace pattern” that opportunistic OTR uses consists of 16-40 bytes of either space or tab characters (See the “Tagged plaintext messages” section of the OTR spec for more details). This might cause minor visual issues in some IM clients.


Links: Tech InfoMantis Area