Deleted Added
full compact
pf (256281) pf (331287)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: stable/10/etc/rc.d/pf 230099 2012-01-14 02:18:41Z dougb $
3# $FreeBSD: stable/10/etc/rc.d/pf 331287 2018-03-21 09:55:49Z kp $
4#
5
6# PROVIDE: pf
7# REQUIRE: FILESYSTEMS netif pflog pfsync
8# BEFORE: routing
9# KEYWORD: nojail
10
11. /etc/rc.subr

--- 29 unchanged lines hidden (view full) ---

41 $pf_program -dq
42 echo '.'
43 fi
44}
45
46pf_check()
47{
48 echo "Checking pf rules."
4#
5
6# PROVIDE: pf
7# REQUIRE: FILESYSTEMS netif pflog pfsync
8# BEFORE: routing
9# KEYWORD: nojail
10
11. /etc/rc.subr

--- 29 unchanged lines hidden (view full) ---

41 $pf_program -dq
42 echo '.'
43 fi
44}
45
46pf_check()
47{
48 echo "Checking pf rules."
49 $pf_program -n -f "$pf_rules"
49 $pf_program -n -f "$pf_rules" $pf_flags
50}
51
52pf_reload()
53{
54 echo "Reloading pf rules."
50}
51
52pf_reload()
53{
54 echo "Reloading pf rules."
55 $pf_program -n -f "$pf_rules" || return 1
55 $pf_program -n -f "$pf_rules" $pf_flags || return 1
56 # Flush everything but existing state entries that way when
57 # rules are read in, it doesn't break established connections.
58 $pf_program -Fnat -Fqueue -Frules -FSources -Finfo -FTables -Fosfp > /dev/null 2>&1
59 $pf_program -f "$pf_rules" $pf_flags
60}
61
62pf_resync()
63{
64 $pf_program -f "$pf_rules" $pf_flags
65}
66
67pf_status()
68{
69 $pf_program -s info
70}
71
72run_rc_command "$1"
56 # Flush everything but existing state entries that way when
57 # rules are read in, it doesn't break established connections.
58 $pf_program -Fnat -Fqueue -Frules -FSources -Finfo -FTables -Fosfp > /dev/null 2>&1
59 $pf_program -f "$pf_rules" $pf_flags
60}
61
62pf_resync()
63{
64 $pf_program -f "$pf_rules" $pf_flags
65}
66
67pf_status()
68{
69 $pf_program -s info
70}
71
72run_rc_command "$1"