pfSense with Layer 3 Switch Inter-VLAN Routing

By

pfSense configuration

Create a Gateway (System–>Routing–>Gateways):

  1. Interface should be LAN
  2. Address Family is IPv4
  3. Name – Something meaningful like TP-Link_Switch
  4. Gateway IP address should be what the L3 switch transit IP is, e.g. 10.0.1.254

Now, we have a gateway defined, but pfSense still doesn’t know what type of traffic to expect/handle. So, go into System–>Routing–>Static Routes and define one or more static routes.

  1. Click Add
  2. Destination Network should be one or more of the VLAN IP ranges on the L3 switch. e.g. 192.168.20.0/24
  3. Gateway should be set to the gateway we just defined, e.g. TP-Link_Switch
  4. Give it some meaningful description
  5. Save

Assign a static IP to pfSense on the LAN side with a gateway IP defined on pfsense using the IP on the L3 gateway for the network that connects to a port on the L3 switch’s DHCP VLAN. No VLANs are defined in pfSense.

pfSense needs to have a gateway or gateways defined for your networks defined on your L3 switch. You also need to add firewall rules for the gateways to allow internet access as pfsense blocks all traffic other than pfsense traffic.

pfSense gateways will point to the IP address on the L3 switch which connects to pfsense.

The LAN side of pfsense firewall needs to allow for all networks on the L3 switch. I have the pfsense WAN interface set as the default gateway for pfsense.

1 2 3


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *