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.
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?
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?