How to block IPs per computer



  • I have two computers connect to a switch, the switch then connects to an external controller that is running pfSense.  pfSense is also running pfBlockerNG.  What I want to do is block access to some IPs from one of the computers only.  Any way of doing this with pfSense or pfBlockerNG?  Thanks



  • Add a new alias in Firwall > Aliases > IP and add all the IPs you want to block to it.
    Add a firewall rule to the top of the list on LAN or the interface the concerned computer is connected to, select Action = block, protocol = any, source the computer you want to restrict access, destination = the alias name you've created first.



  • Thanks.  I like to use pdBlockerNG to centralize my blocking endeavors and I think I can see how to do this there per your instructions.

    Advanced Outbound Firewall Rule Settings > Firewall/pfBlockerNG/Edit/IPv4 > Advanced Outbound Firewall Rule Settings > Custom Source > Click Here to add/edit Aliases



  • @battles:

    Thanks.  I like to use pdBlockerNG to centralize my blocking endeavors and I think I can see how to do this there per your instructions.

    Advanced Outbound Firewall Rule Settings > Firewall/pfBlockerNG/Edit/IPv4 > Advanced Outbound Firewall Rule Settings > Custom Source > Click Here to add/edit Aliases

    I needed to do actually opposite - allow some IPs thru pfBlockerNG.
    And do this I've added IPs alias to enabled Custom Source via Firewall/pfBlockerNG/IP/GeoIP/Europe

    You can play with this to block IPs as well I am assuming …