Configuring multiple WAN interfaces

This recipe describes how to configure multiple WAN interfaces in pfSense.

Getting ready

A pfSense system with a single WAN interface is nearly plug-and-play since a default gateway is created automatically. However, some of the recipes in this chapter require multiple WAN connections and those gateways must be configured manually. The following recipe describes how to configure two WAN interfaces which can be used later for redundant load balancing and/or failover.

Note

The following interfaces will be configured with private IP addresses for the purpose of this example, but an actual configuration would require each WAN interface to be properly configured using the settings provided by their respective ISPs.

How to do it...

  1. Browse to System | Routing.
  2. Select the Gateways tab.
  3. Take note that the gateway for our existing WAN interface was created automatically, set as default, and usually set as dynamic:
    How to do it...
  4. Click the "plus" button to add a new gateway.
  5. Choose the Interface for our existing WAN connection.
  6. Specify a Name for the gateway.
  7. Specify the Gateway IP address.
  8. Check Default Gateway.
  9. Add a Description, such as WAN Gateway:
    How to do it...
  10. Save the changes:
    How to do it...
  11. Click the "plus" button to add a new gateway.
  12. Choose the Interface for our new WAN connection.
  13. Specify a Name for the gateway.
  14. Specify the Gateway IP address.
  15. Add a Description, such as WAN2 gateway:
    How to do it...
  16. Save the changes.
  17. Apply changes, if necessary.
    How to do it...
  18. Browse to Interfaces | WAN.
  19. Choose Static as the Type:
    How to do it...
  20. Specify an IP Address.
  21. Select our newly created Gateway.
  22. Check Block private networks.
  23. Check Block bogon networks:
    How to do it...
  24. Save the changes.
  25. Browse to Interfaces | WAN2.
  26. Choose Static as the Type:
    How to do it...
  27. Specify an IP Address.
  28. Select our newly created Gateway.
  29. Check Block private networks.
  30. Check Block bogon networks:
    How to do it...
  31. Save the changes.
  32. Apply changes, if necessary.

How it works...

Only the first WAN interface created in pfSense will create an automatically generated default gateway. By creating a manual gateway for our new WAN interface, as we've just done, we can now properly configure that interface for the available redundancy features described throughout the rest of this chapter.

There's more...

Remember to block private and bogon networks for WAN interfaces in public network ranges.

See also

  • The Configuring interfaces recipe in Chapter 1, Initial Configuration
  • The Creating a gateway recipe in Chapter 5, Advanced Configuration
  • The Configuring multi-WAN load balancing recipe
  • The Configuring multi-WAN failover recipe
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.166.127