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

    Wifi and LAN on same subnet (SOLVED)

    Scheduled Pinned Locked Moved Wireless
    45 Posts 4 Posters 25.8k 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.
    • R
      Rickinfl
      last edited by

      LAN Net > Any
      WiFi Net > Any
      Bridge Net > Any

      1 Reply Last reply Reply Quote 0
      • R
        Rickinfl
        last edited by

        Here is all the steps I exactly took:

        Fresh Build Pfsense. Got it configured and connected my computer to it and have internet access and access to my LAN.

        1. Shut down install WiFi card (Card is on the recommended list of cards that work with Pfsense)
        2. Interfaces > Added WiFi card (Opt1) renamed it to WiFi. > Setup WiFi settings.
        3. Interfaces > Assign > Bridges > Created a Bridge > Renamed it to Bridge > Selected LAN and WiFi
        4. Interfaces > Added new Interface > Opt2 > Renamed to Bridge > Network Port = Bridge
        5. DHCP Server > Turned on DHCP for Bridge > Enabled > Set Range. (No DHCP on LAN or WiFi)
        6. Firewall > Rules > Added New Rule > Source = Bridge Net > Rest set to Any.
        7. System > Advanced > System Tuneables > net.link.bridge.pfil_member > Changed from 1 to 0
        8. Interfaces > LAN > IPv4 Configuration Type = None  > IPv6 Configuration Type = None
        9. Interfaces > WiFi > IPv4 Configuration Type = None  > IPv6 Configuration Type = None

        My Configuration:

        Old:

        WAN > DHCP
        LAN > 10.10.0.1

        New:

        WAN > DHCP
        LAN >
        WiFi >
        Bridge > 10.10.0.2 > DHCP

        I can connect my Phone and Laptop to WiFi. I can ping both from either one. No Internet Access.

        Now you know what steps I took to get here. I know them well I've rebuilt it about 20+ Times from scratch trying to get this to work.

        Thanks,
        Rick

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          @Rickinfl:

          LAN Net > Any
          WiFi Net > Any
          Bridge Net > Any

          What interfaces are those on?  There should be no more LAN net or WIFI Net - only Bridge Net.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • R
            Rickinfl
            last edited by

            Here are the Firewall Rules

            Wan.png
            Wan.png_thumb
            LAN.png
            LAN.png_thumb
            Wifi.png
            Wifi.png_thumb
            Bridge.png
            Bridge.png_thumb

            1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              First, change your bridge rules to any.  You have them set for TCP only.  DNS and many other things won't work like that.

              Second, make rules on LAN and WIFI that look EXACTLY like the rules on bridge.  (Not with source LAN net or WIFI net, but for BRIDGE net - yes, on LAN and WIFI, source BRIDGE net)

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              • R
                Rickinfl
                last edited by

                Still not working.

                Wan.png
                Wan.png_thumb
                LAN.png
                LAN.png_thumb
                Wifi.png
                Wifi.png_thumb
                Bridge.png
                Bridge.png_thumb

                1 Reply Last reply Reply Quote 0
                • DerelictD
                  Derelict LAYER 8 Netgate
                  last edited by

                  All your rules are still TCP only, bro.

                  Change them all to this:

                  ![Screen Shot 2014-11-18 at 8.56.33 AM.png](/public/imported_attachments/1/Screen Shot 2014-11-18 at 8.56.33 AM.png)
                  ![Screen Shot 2014-11-18 at 8.56.33 AM.png_thumb](/public/imported_attachments/1/Screen Shot 2014-11-18 at 8.56.33 AM.png_thumb)

                  Chattanooga, Tennessee, USA
                  A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                  DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                  Do Not Chat For Help! NO_WAN_EGRESS(TM)

                  1 Reply Last reply Reply Quote 0
                  • R
                    Rickinfl
                    last edited by

                    Did that still not working.

                    Wan.png
                    Wan.png_thumb
                    LAN.png
                    LAN.png_thumb
                    Wifi.png
                    Wifi.png_thumb
                    Bridge.png
                    Bridge.png_thumb

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      What's not working?

                      Do you get DHCP on the WIFI port?  On the LAN port?
                      Can you ping the BRIDGE address from the WIFI port?  From the LAN port?
                      Can you ping the next hop gateway from the WIFI port?  From the LAN port?
                      Can the Hosts on LAN ping the hosts on WIFI?  Vice versa?
                      What DNS is being handed out to the DHCP clients?  Is that the DNS server actually in use by the clients? Can you resolve names using that address?
                      Etc.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • R
                        Rickinfl
                        last edited by

                        Wait… From my phone I'm connected to Pfsense. I opened Chrome browser and can't get to any website, BUT I just accidentally went to my cloud and it loaded. At this point and some testing... I can access any https site, just not http sites.

                        1 Reply Last reply Reply Quote 0
                        • DerelictD
                          Derelict LAYER 8 Netgate
                          last edited by

                          Let me guess.  You're also trying to run squid or snort or both.

                          Chattanooga, Tennessee, USA
                          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                          Do Not Chat For Help! NO_WAN_EGRESS(TM)

                          1 Reply Last reply Reply Quote 0
                          • R
                            Rickinfl
                            last edited by

                            No actually it's a fresh install and no packages installed.

                            Can't seem to figure out what it is. So Close!  smh

                            1 Reply Last reply Reply Quote 0
                            • DerelictD
                              Derelict LAYER 8 Netgate
                              last edited by

                              That doesn't make any sense. pf or otherwise.  Firewall logs logging anything?

                              Chattanooga, Tennessee, USA
                              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                              Do Not Chat For Help! NO_WAN_EGRESS(TM)

                              1 Reply Last reply Reply Quote 0
                              • R
                                Rickinfl
                                last edited by

                                I don't see anything,

                                But the question I have is how long has WiFi worked just was blocking non secure websites?  I'll backup the config then rebuild it again from scratch and find out.

                                I really appropriate all the help you've given me. Thank You for all your Help!

                                Rick

                                1 Reply Last reply Reply Quote 0
                                • DerelictD
                                  Derelict LAYER 8 Netgate
                                  last edited by

                                  Proxy configured in the web browser?  Weird.

                                  Chattanooga, Tennessee, USA
                                  A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                  DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                  Do Not Chat For Help! NO_WAN_EGRESS(TM)

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    Rickinfl
                                    last edited by

                                    Totally rebuilt it. Setup just like I did before. WiFi works on https only.  So this whole time it basically worked. Just not for non secure!

                                    I'm going over everything since now I have fresh log files.

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      Rickinfl
                                      last edited by

                                      Ok Got It!  I had a setting wrong on my phone. The LAN computers connected worked just fine.

                                      Got to give the Credit to "Derelict" for getting this working!  Thanks!!!

                                      This is to setup a WiFi card on the same subnet

                                      Here are the Steps. (After you get a pfsense box up and running, connected to the internet. (I renamed Opt1 and Opt2)

                                      1. Shut down install WiFi card (Card is on the recommended list of cards that work with Pfsense)
                                      2. Interfaces > Added WiFi card (Opt1) renamed it to WiFi. > Setup WiFi settings.
                                      3. Interfaces > Assign > Bridges > Created a Bridge > Renamed it to Bridge > Selected LAN and WiFi
                                      4. Interfaces > Added new Interface > Opt2 > Renamed to Bridge > Network Port = Bridge
                                      5. DHCP Server > Turned on DHCP for Bridge > Enabled > Set Range. (No DHCP on LAN or WiFi)
                                      6. Firewall > Rules > Added New Rule > Interface > LAN > Source = Bridge Net > Protocol = ANY > Rest set to ANY.
                                      7. Firewall > Rules > Added New Rule > Interface > WiFi > Source = Bridge Net > Protocol = ANY > Rest set to ANY.
                                      8. Firewall > Rules > Added New Rule > Interface > Bridge > Source = Bridge Net > Protocol = ANY > Rest set to ANY.
                                      9. Interfaces > LAN > IPv4 Configuration Type = None  > IPv6 Configuration Type = None
                                      10. Interfaces > WiFi > IPv4 Configuration Type = None  > IPv6 Configuration Type = None
                                      11. Interfaces > WiFi > Allow intra-BSS communication > Check Box. < For WiFi devices to talk to each other

                                      I have to come back and give the Answer! LOL  Trust me I've seached a lot of stuff on Cisco and I would find Headings that said "Solved!" and you read all the way to the end and all they would say is "Got it Working"  with no directions on how too!  lol

                                      Again Thanks Derelict.

                                      Rick

                                      1 Reply Last reply Reply Quote 0
                                      • DerelictD
                                        Derelict LAYER 8 Netgate
                                        last edited by

                                        Glad it's working.

                                        One last little thing.  With this:

                                        9. System > Advanced > System Tuneables > net.link.bridge.pfil_member > Changed from 1 to 0

                                        This should be unnecessary:

                                        6. Firewall > Rules > Added New Rule > LAN > Source = Bridge Net > Protocol = ANY > Rest set to Any.
                                        7. Firewall > Rules > Added New Rule > WiFi > Source = Bridge Net > Protocol = ANY > Rest set to Any.

                                        With that sysctl set to 0 I'm pretty sure those rules on the bridge members aren't being looked at at all.

                                        Chattanooga, Tennessee, USA
                                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          Rickinfl
                                          last edited by

                                          Ok Removed

                                          9. System > Advanced > System Tuneables > net.link.bridge.pfil_member > Changed from 1 to 0

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            Rickinfl
                                            last edited by

                                            Ok.. I'm back :(  But with just a little issue.

                                            From my computer I can Ping another Computer. I can ping a WiFi, phone, laptop, etc. 
                                            From my laptop I can ping my Computer, But can't ping any WiFi

                                            Basically WiFi to WiFi I can't ping. I need this to work because I connect my Phone to a WiFi Device and it can't see it.

                                            Not sure what to do here.

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