LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-07-2013, 05:05 AM   #1
jush
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
PF reload


Hi all
Is it necessary to reload PF after each change done by pfcl?

Thanks
 
Old 05-08-2013, 10:18 AM   #2
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
I think there's a bit of confusion going on here. The general workflow is:

1) Edit /etc/pf.conf
2) Update the running config: pfctl -f /etc/pf.conf

What do you mean by "reload"? pfctl -f? If that's it, yes, you should reload after editing /etc/pf.conf to your liking.
 
Old 05-09-2013, 12:56 AM   #3
jush
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Suppose that I change pf.conf using pfctl. e.g.
Code:
echo "pass in proto tcp from x.y.z.w to any port 22" | pfctl -a ANCHOR_NAME -f -
Is it necessary to do
Code:
pfctl -f /etc/pf.conf
? or something like that to apply the changes?
 
Old 05-09-2013, 08:53 AM   #4
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
Magic 8 ball says:

Quote:
# pfctl -s Anchors
test
# pfctl -a test -sr
#
# echo "pass" | pfctl -a test -f -
# pfctl -a test -sr
pass all flags S/SA
"It does not appear so"

Minor nit: 'echo "pass" > pfctl -a ANCHOR -f -' does NOT modify /etc/pf.conf in any way. pf != iptables.

Last edited by rocket357; 05-09-2013 at 01:38 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND reload mario.almeida Linux - Server 4 08-03-2009 01:37 PM
how to reload grub anupamjamatia Linux - Software 1 06-19-2008 12:48 PM
Tomcat reload servlet is very slow, but reload jsp is fast and good? gsbarry Programming 2 04-28-2006 09:34 PM
how to reload linux? zacherfamily Linux - Newbie 1 09-06-2005 10:50 PM
PCMCIA reload MattLaw Linux - Laptop and Netbook 3 09-04-2003 05:44 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration