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

    Deny opt1/wifi to LAN

    Scheduled Pinned Locked Moved Firewalling
    11 Posts 5 Posters 605 Views 5 Watching
    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.
    • NogBadTheBadN Offline
      NogBadTheBad
      last edited by NogBadTheBad

      @lucas-rey said in Deny opt1/wifi to LAN:

      Destination: WAN Net

      Firewall rules are read top down, put your block 1st then pass after.

      Destination: WAN Net ??

      Destination: any

      Andy

      1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

      GertjanG 1 Reply Last reply Reply Quote 1
      • GertjanG Offline
        Gertjan @NogBadTheBad
        last edited by Gertjan

        Added to that :

        The source of the two rules should / could be identical.

        edit : no related to your question, just what you showed.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 1
        • johnpozJ Offline
          johnpoz LAYER 8 Global Moderator @Lucas Rey
          last edited by johnpoz

          @lucas-rey said in Deny opt1/wifi to LAN:

          I don't like rules with "ANY", I

          Well then you would have to create an alias that contains every IP on the public internet you would like to allow :) Shouldn't take too long to compile that ;)

          Or since that is pretty freaking close to any ;) You could use that...

          Wan Net is just that - the network attached to your wan.. It sure doesn't include say 8.8.8.8 or the IP address for amazon.com, or netgate.com, etc. etc..

          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 25.07 | Lab VMs 2.8, 25.07

          NogBadTheBadN 1 Reply Last reply Reply Quote 1
          • NogBadTheBadN Offline
            NogBadTheBad @johnpoz
            last edited by

            Here's what I do:-

            Screenshot 2021-03-05 at 11.49.32.png

            n_ip_local contains all my local subnets, and I have internet access only from this subnet.

            Andy

            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

              @nogbadthebad said in Deny opt1/wifi to LAN:

              n_ip_local contains all my local subnets

              You could be specific - or you could for say just create a rfc1918 alias.. Since it would be assumed that your other vlan/networks would be using rfc1918 space. So if you want an alias that blocks all access to any local network/vlan you might have now, or in the future you could just create a alias that includes all the rfc1918 space

              rfc1918.png

              When wanting to block stuff - the this firewall is a good built in alias to use, because it would also include your wan IP.. Which is normally if your blocking a vlan from going to your local stuff - you prob want to block it from access pfsense gui via the wan IP..

              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 25.07 | Lab VMs 2.8, 25.07

              1 Reply Last reply Reply Quote 0
              • L Offline
                Lucas Rey
                last edited by

                Thank you all for replies, I'm getting confused with WAN Net because in Endian Firewall there was an interface called RED and it's used for internet access. Now I undestand how the WAN Net interface works on pfSense.
                So I just added the blocking rule as 1st one (and yes I can use WIFI Net instead of network address), and then allow WIFI to connect using the "any" as destination.

                @johnpoz Do you have the whole ip list to share? 😁

                However, do I need to allow also WIFI to WIFI to make WiFi devices communicates each other? Or it's already implemented as default?

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

                  @lucas-rey said in Deny opt1/wifi to LAN:

                  do I need to allow also WIFI to WIFI to make WiFi devices communicates each other? Or it's already implemented as default?

                  Its implemented in the sense that devices on the same network don't talk to pfsense to talk to each other.. The "router" or gateway, to get off a network is not used to talk to another device on the same network - only to talk to some IP on a different network.

                  Pfsense has zero to do with devices talking to each other on the same network.. You could turn pfsense off and they could still talk to each other.

                  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 25.07 | Lab VMs 2.8, 25.07

                  L 1 Reply Last reply Reply Quote 1
                  • L Offline
                    Lucas Rey @johnpoz
                    last edited by

                    @johnpoz Thank you, also there, again, I'm geting confused by Endian Firewall logic, it implements a so called Zone Firewall where I had to allow communication between zone/interface.

                    However, pfSense is much better then Endian Firewall in terms of performance, so I can now take advantage of my new 1Gbit connection! :)

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

                      Pfsense is not a zone firewall.. But yes in a zone type firewall you would allow traffic from stay trusted to untrusted, or internet or whatever other zones you might of setup.

                      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 25.07 | Lab VMs 2.8, 25.07

                      1 Reply Last reply Reply Quote 1
                      • JKnottJ Offline
                        JKnott
                        last edited by

                        It sounds like you're setting up a guest WiFi. Here are my rules for mine:

                        c7d99d11-3069-4125-8415-402887aa90b0-image.png

                        Private and prefix are aliases.

                        PfSense running on Qotom mini PC
                        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                        UniFi AC-Lite access point

                        I haven't lost my mind. It's around here...somewhere...

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