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

    Wireless with VLAN not allowing traffic

    Scheduled Pinned Locked Moved General pfSense Questions
    81 Posts 5 Posters 18.0k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      There's no mystery here. It works when you untag VLAN 50 at the switch because that just puts it in the LAN subnet.
      When it's correctly tagged all clients using it are in the VLAN 50 subnet and use the DHCP you have have configured for that with whatever settings that has. That includes whatever DNS you are passing there.

      Previously you said clients in VLAN 50 are not able to resolve those sites, which is clearly a DNS issue, but did you mean just unable to connect?

      I agree, if you used a public subnet for VLAN 50 that could conflict with the real public IPs and cause this.

      Steve

      1 Reply Last reply Reply Quote 0
      • D
        dridhas @johnpoz
        last edited by

        @johnpoz no, im not using a public ip, i got lazy to type the whole ip, but it is 192.168.50.x for VLAN 50

        1 Reply Last reply Reply Quote 0
        • D
          dridhas @JKnott
          last edited by

          @jknott im starting to believe that there is a DNS configuration error or a DNS conflict.

          on the VLAN in pfsense i used 208.67.222.222 and 1.1.1.1 which are the same for the DNS Server settings under System > General Setup:
          521c4e51-5ab8-4234-8dee-a2b8a11a5efc-image.png

          not sure if that could possible conflict.

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

            @dridhas said in Wireless with VLAN not allowing traffic:

            not sure if that could possible conflict.

            Bad idea to use 2 different dns that can respond differently - 222.222 does filtering, while 1.1.1.1 does not..

            If your going to have clients or forward to dns, you need to make sure they will always answer in the same way. One that filters and one that doesn't is not good idea - unless you are 100% sure they filter the exact same stuff. Since you can never be sure when more than 1 NS is provided to use, you have no idea which 1 will actually be used for any specific query.

            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

            JKnottJ 1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by stephenw10

              Yeah, try just not specifying any DNS servers in the DHCP config for VLAN 50. Clients will use the interface IP and hence Unbound in pfSense by default.

              What do you have set for DNS in the LAN DHCP settings?

              The servers you have defined in General Setup are probably not being used unless you have set the resolver to forwarding mode.
              But if you have you also have 'DNS Server Overide' set so your ISPs DNS servers might be in use.

              Steve

              D 1 Reply Last reply Reply Quote 0
              • D
                dridhas @stephenw10
                last edited by

                @stephenw10 this is what i have on the DNS Server for VLAN 90 (i created a new one) and on LAN aeee0c24-7045-4dce-a0fe-7e2f8670275f-image.png

                and this is what i just did on the WAP:
                54a7df41-24aa-4322-82dd-d64ca1b60462-image.png

                and on the switch:
                b1693342-106d-49e9-8647-2d3dd020155d-image.png

                This way, the device can connect to VLAN 90 and it gets the correct ip address as i can see it on the DHCP Leases with the correct IP:
                f572f836-496a-4575-a307-6e26940f6e36-image.png
                0e309bcc-471e-4d6a-8095-aa9a085481df-image.png

                now, i cant get out to the internet on that VLAN... hehehe

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

                  @dridhas And what firewall rules did you put on this interface? is Unbound listening on that interface? When you create a new interface/vlan unlike lan, there will be no rules. So no until you create rule(s) to allow stuff nobody on that network is going anywhere.

                  Are you using automatic outbound nat, etc. Seen many a user following some "guide" on the internet for some vpn service switch their outbound rules to manual.. Which then no adding a new network/vlan is not going to work until outbound nat has been created for this new network, 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 24.11 | Lab VMs 2.8, 24.11

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    dridhas @johnpoz
                    last edited by

                    @johnpoz this is what im seeing on the firewall logs:
                    162e8513-bbe4-450a-87df-ac9e525eb4a7-image.png
                    b05e4046-732a-4776-90bf-5d8dff3e9e16-image.png

                    this is the Firewall rule for that particular VLAN:
                    1847c6f5-a620-4f10-9a31-4f062633113d-image.png

                    im trying to find that rule somewhere.

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

                      @dridhas and how would Lan Net be source of your wirelesstest net?? The source would be wirelesstest net

                      The default deny is on every interface (hidden) - if traffic is not allowed by a rule, then it would always be denied by the default rule.

                      192.168.90 is not Lan Net, so that rule would not match, and traffic would be blocked by the default deny.

                      Looks like you copied the default rule over - but did not change the source to the appropriate network for this interface.

                      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

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        dridhas @johnpoz
                        last edited by

                        @johnpoz yes, you are correct, i copied the rule over to the new VLAN.

                        after the change the traffic is flowing, but then again some sites are unreachable like duckduckgo among others.

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

                          @dridhas said in Wireless with VLAN not allowing traffic:

                          unreachable like duckduckgo among others.

                          Well does it resolve? Use your fav dns tool from the client.. Where its not loading.

                          $ nslookup duckduckgo.com
                          Server:  pi.hole
                          Address:  192.168.3.10
                          
                          Non-authoritative answer:
                          Name:    duckduckgo.com
                          Address:  40.89.244.232
                          

                          Maybe they are blocking you? Sniff on your wan while you try and go there, do you see the syn go out, do you see a syn,ack come back..

                          duckduck.jpg

                          Maybe your browser is using doh for dns? There are many reasons why you might have an issue loading up websites - tags on a vlan or not tag is not one of them.

                          edit:
                          what specific sort of error are you getting in your browser

                          Can see they send a 301 redirection, and then the browser connects via https (443)..

                          synack.jpg

                          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

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            dridhas @johnpoz
                            last edited by

                            @johnpoz there is where i have some questions...
                            WAN outbound is the same for LAN and VLAN.
                            LAN works fine, but while on VLAN, several websites are unreachable.

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

                              @dridhas first thing is do they resolve? Never getting anywhere if they do not resolve..

                              You need to troubleshoot the actual issue - not get hung up on this network is tagged this network is not - since that has NOTHING to do with the actual problem.

                              Now its possible this network is having issue, maybe your wifi connection just sucks and have zeroed in a specific websites not working? Why don't you take wifi out of the equation and plug something in on the switch and put it on vlan 90..

                              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

                              D 1 Reply Last reply Reply Quote 0
                              • JKnottJ
                                JKnott @johnpoz
                                last edited by

                                @johnpoz said in Wireless with VLAN not allowing traffic:

                                Bad idea to use 2 different dns that can respond differently - 222.222 does filtering, while 1.1.1.1 does not..

                                I have my main LAN configured to use the pfsense DNS server, but my guest WiFi points to Google's DNS. Separate subnets, no problem. However, they shouldn't be mixed on the same subnet.

                                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...

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

                                  Pointing different devices to 1 dns, and other device to a different dns is not what I was talking about at all.. That is fine.

                                  The problem is if a client can use more than 1 NS, you have really no control over which one might be asked, be it your actual client, or the forwarder your pointing to (unbound/dnsmas) etc..

                                  If the NS you could ask for something might resolve differently - filtered or not filtered, your going to have a bad day. Because you never know which one might get asked, it could be filtered when you don't want it to be, or or could be allowed when you want it filtered.

                                  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
                                  • D
                                    dridhas @johnpoz
                                    last edited by

                                    @johnpoz im starting to believe the switch might be the culprit.

                                    im getting hardwire to port1 where the WAP was and im getting a non-vlan ip.

                                    and if i untag the port, i dont get any ip addresses... 😦

                                    johnpozJ JKnottJ 2 Replies Last reply Reply Quote 0
                                    • johnpozJ
                                      johnpoz LAYER 8 Global Moderator @dridhas
                                      last edited by johnpoz

                                      @dridhas said in Wireless with VLAN not allowing traffic:

                                      and if i untag the port, i dont get any ip addresses...

                                      If your going to plug a computer into a port, this port would almost always be set to 1 vlan with it being untagged. Just put a port in vlan 90, untagged (cisco world calls this access port).

                                      If you plugged some computer into the port where your WAP was connected where vlan 1 was untagged, and 90 was tagged. It should get an IP from your dhcp on the vlan 1..

                                      For it to use vlan 90 where its tagged, you would have to tell the OS to use tag - which can be done in windows (depending on the driver for that nic)

                                      windowsvlan.jpg

                                      But your mileage might very depending on the nic, and driver, 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 24.11 | Lab VMs 2.8, 24.11

                                      D 1 Reply Last reply Reply Quote 1
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        It's not a switch or VLAN issue. Clients are getting a DHCP lease in the correct subnet.

                                        It's probably not a firewall issue either now that you have added a rule with the correct source.

                                        What happens when you try to visit one of these sites? What is the exact error you see?

                                        Steve

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

                                          @stephenw10 he said " i dont get any ip addresses"

                                          So who knows what he has going on or how he is setting it up... If he had 1 untagged and 90 tagged on the wap port, and he plugged just a PC into that port - then he should of gotten an IP on whatever the untagged vlan network is.. 192.168.20 I believe..

                                          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

                                          stephenw10S 1 Reply Last reply Reply Quote 0
                                          • D
                                            dridhas @johnpoz
                                            last edited by

                                            @johnpoz this is the result of the nslookup on wifi/lan via VLAN90
                                            0d034437-6832-40c4-9c4a-1836d3833088-image.png

                                            and this is the error message on the browser:
                                            fbef5645-cc4b-471f-aaef-a17182d79008-image.png

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