Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Develope

macrumors newbie
Original poster
Sep 13, 2014
5
0
In terminal i enable filter by sudo pfctl -e
After that i want to load my configuration of pf.conf
sudo pfctl -f /etc/pf.conf

sudo pfctl -f /etc/pf.conf
pfctl: Use of -f option, could result in flushing of rules
present in the main ruleset added by the system at startup.
See /etc/pf.conf for further details.
Code:
No ALTQ support in kernel
ALTQ related functions disabled
/etc/pf.conf:34: syntax error
/etc/pf.conf:35: syntax error
/etc/pf.conf:36: syntax error
/etc/pf.conf:37: syntax error
/etc/pf.conf:44: syntax error
/etc/pf.conf:47: syntax error
/etc/pf.conf:48: syntax error
pfctl: Syntax error in config file: pf rules not loaded

In OS X Mavericks it works great!

lan=en0
wifi=en1
vpn=tun0
block all

set skip on lo

pass on p2p0 #allow AirDrop
pass on p2p1 #allow AirDrop
pass on p2p2 #allow AirDrop
pass quick proto tcp to any port 631 #allow AirPrint

pass on $wifi proto udp to xxx.xxx.xxx.xxx port xxx
pass on $wifi proto udp to xxx.xxx.xxx.xxx port xxx
pass on $wifi proto udp to xxx.xxx.xxx.xxx port xx
pass on $vpn



Red is syntax error
Whats wrong who know?
 
Can anybody give me original pf.conf file? (OS X Mavericks or Yosemite)
/etc/pf.conf & upload it to the file hosting please :rolleyes:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.