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

Route traffic based on vLan

Scheduled Pinned Locked Moved Routing and Multi WAN
4 Posts 3 Posters 1.2k 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.
  • K
    kingxerxes
    last edited by Jul 31, 2013, 11:37 AM

    hi all,

    i would like to set an outbound LAN rule to direct traffic with a VLAN tag of 10 over one gateway, and untagged traffic over another.

    is this possible please?

    1 Reply Last reply Reply Quote 0
    • P
      phil.davis
      last edited by Jul 31, 2013, 1:11 PM

      The rules work at layer3 - based on IP addresses. The traffic in VLAN10 should be in some subnet (e.g. 192.168.10.0/24), you would put a rule on the VLAN10 interface for traffic with source IP 192.168.10.0/24 and select the gateway you want (in the advanced rule section).
      The untagged VLAN would have another interface and subnet, and you add another rule for that.
      I think that others will recommend not mixing tagged and untagged on your VLAN trunk to pfSense - but I will leave that for others to comment on.

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • B
        bruor
        last edited by Jul 31, 2013, 3:00 PM

        You could try to use a bridge consisting of your RAW LAN interface, and a VLAN interface as your "LAN" connection.  Then in the "LAN" firewall rules select the appropriate sub "interface" and try assigning the traffic to a gateway.

        This would work similar to the way you configure pfSense when you want it to function as a wireless router.  I'm anxious to hear if this works!

        1 Reply Last reply Reply Quote 0
        • K
          kingxerxes
          last edited by Aug 1, 2013, 10:33 AM

          thanks all, will give it a go when the project goes ahead

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received