Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a pfSense configured with two Internet links for broadband load balancing.

One of these links block outgoing traffic on 25 port (WAN1). I have a mail server (IP that should use the gateway of the internet without blocking (WAN2) when the destination port is 25 (SMTP).

We can do this setup with pfSense?

share|improve this question

It seems that you've figured this out already, but the way to do that is through firewall rules with a specific gateway chosen. In pfSense and in general, this is called Policy Based Routing or Policy Routing, so try searching for those terms if you have specific issues.

share|improve this answer

I created the following firewall rule (Firewall > Rules) before the rule of the loadbalancer gateway:

Protocol: * Source: Port: * Destination: * Port: 25 (SMTP) Gateway: WAN2_GW

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.