Let's look at an example setup. Note first that at the top of
<filename>/etc/rc.firewall
</filename> there are already standard rules for the loopback interface
<filename>lo0
</filename>, so we should not have to care for them anymore. Custom rules should be put in a separate file (say
<filename>/etc/rc.firewall.local
</filename>) and loaded at system startup, by modifying the row of
<filename>/etc/rc.conf
</filename> where we defined the
<option>open
</option> firewall: