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

    pfblocker, pass incoming if from country.

    Scheduled Pinned Locked Moved pfBlockerNG
    4 Posts 3 Posters 396 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.
    • B
      blank
      last edited by blank

      I have some issues with using PFblocker to block incoming connection to some port forwarding rules.

      I port forward do my Home Assistant, MQTT and SSH.

      When trying to use PFBlocker, it seems to be build towards blocking rather than passing.
      I am trying to have it pass, only connection comming in from a certain country. (Only for incomming that tries to connect to some of the stuff I am port forwarding.)
      So far, I have been trying changing the flow rule created by PFBlocker, but that gets overwritten when PFBlocker autoupdate.

      Which setting am I missing :D

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

        Then don't let it update, and just use the aliases in your own rules.

        If you only want country xyz to be allowed on your forward, then just use that alias as your source for the rule.

        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
        • B
          blank
          last edited by blank

          Well,

          I don't see how to do this.

          obviously I wan't to auto update the alias list, so I guess I would have to have PFBlocker enabled.
          But I don't see any options in PFBlocker, where it doesn't add a firewall rule.

          I guess I should be able to somehow only update the country alias list, and in my port forwarding firewall rules, let the source pass if part of the alias list.

          1 Reply Last reply Reply Quote 0
          • BBcan177B
            BBcan177 Moderator
            last edited by

            See the following thread:
            https://forum.netgate.com/topic/125250/firewall-rules-order

            "Experience is something you don't get until just after you need it."

            Website: http://pfBlockerNG.com
            Twitter: @BBcan177  #pfBlockerNG
            Reddit: https://www.reddit.com/r/pfBlockerNG/new/

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.