PF will not load the rules I have set in /etc/pf.conf after boot/reboot.
If I run
pfctl -d
pfctl -e -f /etc/pf.conf
my rules load correctly.
If I attempt to pfctl -e -f /etc/pf.conf without first pfctl -d I'm informed that pf is already running.
My /etc/rc.conf is as follows
Regarding the pflog_logfile line, I looked at the handbook (after noticing this issue) and it appears like the second uncommented line, whereas I had been running with the first (commented) line for quite some time without (a noticable) issue. Either way I have the same issue regardless of which option I use. Did this get changed at some point or did I have it wrong all along?
I can also post my /etc/pf.conf if need be although it "should" be using the same file when used manually or via rc.conf.
I have tried pfctl -nf /etc/pf.conf which runs silently (does not show any errors).
Output of uname -a is as follows:
Are there any log files I should check or commands I can run to narrow this down?
If I run
pfctl -d
pfctl -e -f /etc/pf.conf
my rules load correctly.
If I attempt to pfctl -e -f /etc/pf.conf without first pfctl -d I'm informed that pf is already running.
My /etc/rc.conf is as follows
Code:
freebsd# cat /etc/rc.conf
# -- sysinstall generated deltas -- # Fri Oct 30 07:49:53 2009
# Created: Fri Oct 30 07:49:53 2009
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
gateway_enable="YES"
hostname="internal.local"
ifconfig_rl0="inet 192.168.1.2 netmask 255.255.255.0"
ifconfig_nfe0="inet 192.168.0.1 netmask 255.255.255.0"
inetd_enable="NO"
keymap="us.iso"
# - Enable SSH
sshd_enable="YES"
# - PPPoE Connection
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="internode"
# - Enable DHCP Server
dhcpd_enable="YES"
dhcpd_ifaces="nfe0"
# - Enable DNS Server
named_enable="YES"
# - PF Firewall
pf_enable="YES" # Enable PF Firewall
pf_rules="/etc/pf.conf" # Rules definition file for PF
pf_flags="" # Additional flags for pfctl startup
pflog_enable="YES" # Start pflogd(8)
#pflog_file="/var/log/pflog" # Where pflogd should store the log file
pflog_logfile="/var/log/pflog"
pflog_flags="" # Additional pflog flags for startup
# - Squid Web-Cache
squid_enable="YES"
# - Disable Sendmail
sendmail_enable="NO"
#sendmail_submit_enable="NO"
#sendmail_outbound_enable="NO"
#sendmail_msp_queue_enable="NO"
# - Postfix MTA
postfix_enable="YES"
# - Dovecot
dovecot_enable="YES"
freebsd#
Regarding the pflog_logfile line, I looked at the handbook (after noticing this issue) and it appears like the second uncommented line, whereas I had been running with the first (commented) line for quite some time without (a noticable) issue. Either way I have the same issue regardless of which option I use. Did this get changed at some point or did I have it wrong all along?
I can also post my /etc/pf.conf if need be although it "should" be using the same file when used manually or via rc.conf.
I have tried pfctl -nf /etc/pf.conf which runs silently (does not show any errors).
Output of uname -a is as follows:
Code:
freebsd# uname -a
FreeBSD freebsd.internal.local 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 16:02:27 UTC 2010 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
Are there any log files I should check or commands I can run to narrow this down?