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

      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?

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @DanAvni
        last edited by

        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

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

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @DanAvni
            last edited by

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.