How do I deny connections with an IP range?

Discussion in 'macOS' started by mariusmbp, Mar 18, 2016.

  1. mariusmbp macrumors newbie

    Joined:
    Mar 18, 2016
    #1
    Hello guys

    I would like to know how do I deny incoming and outgoing connections with an IP range? (for example 1.1.1.1 - 1.1.1.255)

    I want to perform this task directly into the OS without using any third party software like Little Snitch or DNS or router filtering.
     
  2. DeltaMac macrumors 604

    DeltaMac

    Joined:
    Jul 30, 2003
    Location:
    Delaware
    #2
    Why would you not use a good tool like Little Snitch?

    What do you do if an app that you work with decides to use an IP from a different range, or a port that you don't normally use suddenly opens? (Little Snitch will easily answer that question for you :D )

    Within the OS X system, it will help if you could learn how to use pf.
    Here's a short intro article about that.
     

Share This Page