• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

GeoIP blocking with IP supression

Scheduled Pinned Locked Moved pfBlockerNG
4 Posts 2 Posters 465 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    DanAvni
    last edited by Aug 17, 2021, 11:35 AM

    Hi,

    I have set up pfBlockerNG-devel with GeoIP blocking for some countries. Within one of those countries I need to enable access to/from specific IP address subnets, but I want the county to still stay blocked (except for these subnets). How can this be done?

    J 1 Reply Last reply Aug 17, 2021, 11:39 AM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @DanAvni
      last edited by Aug 17, 2021, 11:39 AM

      Put a rule that allows whatever subnets you want, above the rule that blocks them.

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      1 Reply Last reply Reply Quote 0
      • D
        DanAvni
        last edited by Aug 18, 2021, 6:51 AM

        @johnpoz , Do you mean in the floating rules list?
        If that rules matches then traffic passes the floating rules but will it then be evaluated in the regular WAN rules? (I mean: do I put a specific floating rule just like in the WAN saying "traffic from allowed IP to LAN on port 443 is ok" or do I put a rule "traffic from allowed IP is ok" and then the WAN rules will filter based on already existing rules?

        J 1 Reply Last reply Aug 18, 2021, 10:57 AM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @DanAvni
          last edited by Aug 18, 2021, 10:57 AM

          Doesn't have to be on floating, but that would be one way to put it before a rule on interface. It needs to be above the rule your using for pfblocker.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received