Navigation

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

    pfblocker, pass incoming if from country.

    pfBlockerNG
    3
    4
    161
    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
      • johnpoz
        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
        2440 2.4.5p1 | 2x 3100 2.4.4p3 | 2x 3100 22.01 | 4860 22.05

        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
          • BBcan177
            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