Don't work pf.conf

Discussion in 'OS X Yosemite (10.10)' started by Develope, Sep 15, 2014.

  1. Develope macrumors newbie

    Joined:
    Sep 13, 2014
    #1
    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?
     
  2. Develope thread starter macrumors newbie

    Joined:
    Sep 13, 2014
    #2
    Can anybody give me original pf.conf file? (OS X Mavericks or Yosemite)
    /etc/pf.conf & upload it to the file hosting please :rolleyes:
     

Share This Page