Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

Sophos Firewall: How To Configure MTA Mode With Two WAN Uplinks

Disclaimer: This information is provided as-is for the benefit of the Community. Please contact Sophos Professional Services if you require assistance with your specific environment.


Overview

With Sophos Firewall v18, firewall rules, NAT, and the outgoing WAN interface policy have been decoupled.

Suppose you want to configure the Sophos Firewall in MTA mode with two WAN uplinks. In that case, you can consider the following procedure as an example to avoid routing and email forwarding issues.

Here, we’ll consider a fresh Sophos Firewall install and configuration. Sophos Firewall will have two WAN uplinks, one on PortA and one on PortB.
MTA configuration won’t be described in this article.

This applies to the following Sophos products and versions
Sophos Firewall v18 and later

What to do

To configure the Sophos Firewall in MTA mode with two WAN uplinks, please consider the following steps.

  1. Don’t change the “Auto added firewall policy for MTA” under Rules and Policies > Firewall Rules.
  2. Verify that email traffic won’t be intercepted by a firewall rule above the one at point 1; for example, you can put it on top.
  3. If you want to use an IP address other than the WAN interface main IP address (for example, an Alias – to be created on the WAN interface), we must modify the default Linked NAT rule to the “Auto added firewall policy for MTA”. Under Rules and Policies > NAT rules, please modify it as shown in the example below.



    WAN IP addresses on each interface for outgoing email traffic are defined here by IP hosts with the names WAN_email1 and WAN_email2.
  4. Go to Routing > SD-WAN policy routing and add a new policy route, as shown in the example below.



  5. With the described configuration, emails will be forwarded on WAN PortA with source IP address defined by WAN_email1. If the WAN uplink on port PortA is unavailable, traffic will be sent out to WAN PortB with the source IP address defined by WAN_email2.

Important note: When configuring SD-WAN policies for MTA email routing, please verify global route preference settings: this document was written considering default configuration values. Please also consider that changing global routing priority settings might affect behavior for other configured services.

On the Standard SSH console, you should have the following output for default priority settings.

console> sys route_precedence show

Default routing Precedence:

1. Static routes

2. SD-WAN policy routes

3. VPN routes

You can change them with the command

console> system route_precedence set static sdwan_policyroute vpn

Related information




edited title
[edited by: Raphael Alganes at 1:54 PM (GMT -8) on 17 Dec 2024]