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

    How to allow specific aliases (IP's) to internet and block the remaining IP's

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 761 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.
    • J Offline
      jesense
      last edited by

      Hello im a little new in pfsense. im just wondering how can i Allow the IP's that i put in aliases to access the internet & i want to block the remaining IP's that i did not include  in that aliases.

      Ex:
      Alias Name: Known_IP
      IP's: 192.168.3.2, 192.168.3.7 etc

      Iwant the known_IP alias to access the internet & the other IP's will be blocked.
      I want to control who is using the internet so that i will add his IP to the Known_IP alias to access the web.

      Please help me out guy. . . .
      Thank you. . . .

      1 Reply Last reply Reply Quote 0
      • KOMK Offline
        KOM
        last edited by

        Firewall - Rules - LAN.

        Remove the Default Allow LAN to any rule.  Add a rule that allows * access, Source = your alias.  Below that rule, add a rule that blocks * access, Source = *, Dest = * etc.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jesense
          last edited by

          Hello KOM thank you for your reply..

          Please check my current rule in attachment.
          and my PC lan network config. i set Default gateway & primary DNS to my pfsense lan interface IP.

          My Scenario is that i remove my IP to the aliases then create your rule that you mention please check my attachment if my rule is correct.
          But still i can access the internet. Even my IP is not included to the Allowed Alias

          Please maybe im missing something.

          Thank you. . . .

          Capture.PNG
          Capture.PNG_thumb

          1 Reply Last reply Reply Quote 0
          • KOMK Offline
            KOM
            last edited by

            Reset your states and try again (Diagnostics - States, I think)

            1 Reply Last reply Reply Quote 0
            • J Offline
              jesense
              last edited by

              Thank you Very Much KOM your a big help its working now… i just reset.

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