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

    1 LAN and 1 VLAN - how to pass traffic between them?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 3 Posters 3.3k 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.
    • H
      hefferbub
      last edited by

      I have an 1.2.3 RC1 system on Alix that has a single WAN, a normal LAN, and a VLAN for a second LAN.

      Currently, both LAN and VLAN can reach the WAN, and I can ping hosts on either subnet from its interface on the pfsense box.  But I can't reach systems on the other LAN/VLAN.

      I have tried a lot of things, mostly variations on adding firewall rules on each interface allowing access to the other, but nothing has worked.

      Can you please describe the things that need to happen to have a VLAN and a LAN interface route to each other?

      Please explain in general what's needed.  Also, a few things in particular:

      1.Should I put anything in the gateway fields when configuring these LAN and VLAN interfaces?

      2. In my firewall rules, is the destination field what creates the route to the other subnet, or should I use the gateway field?

      3. Do I need to do anything with NAT?  I would not expect this, since each host on both subnets should be addressable by its full IP address.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • P
        Perry
        last edited by

        Some pictures would be more helpful, as nobody only creates one vlan I suspect you have done some completely wrong on that part. pfSense book would be a good read.
        Never the less if you copy the default rule on lan to your opt nic and change lan net to opt net it should work.

        /Perry
        doc.pfsense.org

        1 Reply Last reply Reply Quote 0
        • H
          hefferbub
          last edited by

          Here are some screenshots.  No static routes are defined, and AON is disabled.  Any help much appreciated.

          ![Screen shot 2009-11-29 at 10.28.29 AM.png](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.28.29 AM.png)
          ![Screen shot 2009-11-29 at 10.28.29 AM.png_thumb](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.28.29 AM.png_thumb)
          ![Screen shot 2009-11-29 at 10.29.14 AM.png](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.29.14 AM.png)
          ![Screen shot 2009-11-29 at 10.29.14 AM.png_thumb](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.29.14 AM.png_thumb)
          ![Screen shot 2009-11-29 at 10.29.59 AM.png](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.29.59 AM.png)
          ![Screen shot 2009-11-29 at 10.29.59 AM.png_thumb](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.29.59 AM.png_thumb)
          ![Screen shot 2009-11-29 at 10.30.37 AM.png](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.30.37 AM.png)
          ![Screen shot 2009-11-29 at 10.30.37 AM.png_thumb](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.30.37 AM.png_thumb)
          ![Screen shot 2009-11-29 at 10.30.58 AM.png](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.30.58 AM.png)
          ![Screen shot 2009-11-29 at 10.30.58 AM.png_thumb](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.30.58 AM.png_thumb)
          ![Screen shot 2009-11-29 at 10.28.51 AM.png](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.28.51 AM.png)
          ![Screen shot 2009-11-29 at 10.28.51 AM.png_thumb](/public/imported_attachments/1/Screen shot 2009-11-29 at 10.28.51 AM.png_thumb)

          1 Reply Last reply Reply Quote 0
          • GruensFroeschliG
            GruensFroeschli
            last edited by

            Dont assign the parent interface on which VLANs are created.

            Either multiple real interfaces, or only VLANs on a parent interface.

            example:
            vr0 and vr1
            or
            VLANx on vr0 and VLANy on vr0

            If you mix tagged and untagged interfaces it can happen, that an ARP request gets answered directly.
            The client then tries to talk to the MAC of the server which doesnt work because of the VLAN tag.

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • H
              hefferbub
              last edited by

              Thanks for that advice.  I altered the setup to use 2 real interfaces on my alix and configured a separate switch port to send the data for the VLAN to the second real interface.  Routing now works.

              I think this may be a better approach for another reason also; My understanding is that, since the NIC chips in the alix board don't natively support tagged VLAN, there might have been performance and/or MTU issues the other way.  This way, the switch can do the work of untagging the frames and PFSense just routes.

              Jeff

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