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

    No Internet access with VLAN via OPT1

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    16 Posts 3 Posters 200 Views 3 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.
    • J Offline
      jogovogo
      last edited by

      Hello everyone!

      It just doesn't want to go online... ;-((

      The following configuration (HyperV-VM, VLAN-Trunking)

      VLAN-ID 22 to OPT1 with the subnet 192.168.151.0/24

      The two machines connected to VLAN 22 also receive the correct addresses from the IP pool via DHCP. However, both have no internet access. The ping on the address 192.168.151.1 also fails.

      Maybe one of you has an idea or solution.

      cheers
      ron

      4396098f-2319-44cd-bcb1-4b5ea3c612a1-image.png

      42f38774-d0e5-48d4-af75-37bb97b71f52-image.png

      097c373e-e707-4494-a9bf-d07cf8da5706-image.png

      4cc8fabd-ac57-4f8c-87a6-454bd2cc309a-image.png

      26754afe-ba3d-4238-9726-3554b9c781aa-image.png

      GertjanG S 2 Replies Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @jogovogo
        last edited by

        @jogovogo

        The rules look fine :

        50fedd50-3c3f-4ddc-8a2a-86d63120e386-image.png

        Looking closer :

        dc52c7e8-ab7d-4143-a2fd-4ef471bd7a14-image.png

        shows that no traffic what so ever ever reached this OPT1 interface.

        My suggestion : Review your VLAN setup.

        Btw : Only allowing port 53 = DNS traffic to reach the pfSense Interface = 192.168.151.1 and block all other DNS traffic, AND handing over by DHCP the 8.8.8.8 DNS IP is ... counterproductive.
        The device will probably use 8.8.8.8 for its DNS needs and your pfSense will not allow (block) this.

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

        J 2 Replies Last reply Reply Quote 0
        • J Offline
          jogovogo @Gertjan
          last edited by

          @Gertjan

          Alright, many thanks for the tip. The only thing that comes to mind is that the Pfsense must be restarted after the "Trunking" has been permitted.

          cheers
          ron

          1 Reply Last reply Reply Quote 0
          • J Offline
            jogovogo @Gertjan
            last edited by

            @Gertjan

            PS: However, this isn't really possible because the client receives the correct IP address from the DHCP circle for the Vlan.

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

              @jogovogo

              VLANs : can't tell, sorry, I'm lazy and old school. When I need more LANs, as my pfSense (4100) already has 6 interfaces, I wire them up. I stay away from VLANs as this needs VLAN capable 'smart' switches, and an exact matching config between pfSense and this switch, etc.

              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 0
              • S Offline
                SteveITS Rebel Alliance @jogovogo
                last edited by

                @jogovogo

                ping on the address 192.168.151.1 also fails

                This means the connection between the client and pfSense isnโ€™t working since ICMP is allowed by firewall rule.

                Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                Upvote ๐Ÿ‘ helpful posts!

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jogovogo @SteveITS
                  last edited by

                  @SteveITS

                  But why do I get an IP address from the dhcp for Opt1?

                  cheers
                  ron

                  S GertjanG 2 Replies Last reply Reply Quote 0
                  • S Offline
                    SteveITS Rebel Alliance @jogovogo
                    last edited by

                    @jogovogo is the mask correct on the client/in DHCP settings?

                    Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                    Upvote ๐Ÿ‘ helpful posts!

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

                      @jogovogo said in No Internet access with VLAN via OPT1:

                      But why do I get an IP address from the dhcp for Opt1?

                      I'll add that behavior to the "VLAN switch isn't setup correctly" list.
                      The initial client initiated DHCP traffic is "broadcast" (probably not related).
                      You have activated the DHCP server on OPT1 ?
                      On the OPT1 connected device shown above, you can
                      (windows example) :

                      ipconfig /release
                      

                      and

                      ipconfig /renew
                      

                      ?

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

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        jogovogo @Gertjan
                        last edited by

                        @Gertjan

                        Hello, that works automatically. I've already made it so that it receives an address from the DHCP area right away after the release.

                        This is the case with two different machines.

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

                          @jogovogo said in No Internet access with VLAN via OPT1:

                          Hello, that works automatically ....

                          That's what you want to happen.
                          Never ever believe the "system". As the network admin, at all times, fact check everything ๐Ÿ˜Š

                          For example, red flags were already shown : The IP (192.168.151.11) looks ok. Mask and gateway also. But the 8.8.8.8 DNS is a fail.
                          So, my thoughts : some one set them up statically ? Or entered 'strange' settings in the DHCP server ?

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

                          J 1 Reply Last reply Reply Quote 0
                          • J Offline
                            jogovogo @Gertjan
                            last edited by

                            @Gertjan

                            The 8.8.8.8 is only for testing; even if I use the machine to set the IP and as a DNS and gate, the 192.168.151.1 does not work.

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

                              My first surprise is that I'm now on the firewall, but why?

                              But still no access to the Internet...

                              7e35a19c-27de-4177-ad41-06727154c4a9-image.png

                              1217f0f2-2b14-43c6-8361-83cf6a806a82-image.png

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

                                Hello again!

                                The issue has been resolved, simply, by restarting the DNS resolver.

                                I just had another one, though; perhaps you could also respond to it?

                                NAT and VLAN

                                The port 2413 should be seen on 192.168.151.10. The corresponding rule is created automatically. Unfortunately, it does not function.

                                The "LAN " operates it without any intervention.

                                2e52c680-7d17-47bd-85b2-7250fbeb1bfe-image.png

                                b8c62840-ebfc-4c2d-a870-347df6640bb4-image.png

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  SteveITS Rebel Alliance @jogovogo
                                  last edited by

                                  @jogovogo said in No Internet access with VLAN via OPT1:

                                  restarting the DNS resolver

                                  but:

                                  ping on the address 192.168.151.1 also fails

                                  ...is not related to DNS.

                                  In any case restarting DNS is necessary if a new interface has been added, because unbound didn't know about that IP when it started.

                                  re: NAT, often the firewall on the server isn't set to allow traffic from any IP, only the local subnet or RFC1918.
                                  https://docs.netgate.com/pfsense/en/latest/troubleshooting/nat-port-forwards.html may help.

                                  Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                  When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
                                  Upvote ๐Ÿ‘ helpful posts!

                                  J 1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jogovogo @SteveITS
                                    last edited by

                                    @SteveITS

                                    Hello, many thanks for your prompt response!

                                    Indeed, ping has nothing to do with DNS.
                                    I didn't notice it because I didn't even attempt it on one machine.

                                    This is working now as well. We used pfBlockerNG, and the opt1 still needed to be defined in the Outbound Firewall Rules. Then once update via cron and now it works!

                                    cheers
                                    ron

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