Project

General

Profile

Actions

Bug #2749

closed

gateway groups - when tier 1 gateway fails, routes traffic via gateway set to "never"

Added by Colin Sinclair over 12 years ago. Updated about 9 years ago.

Status:
Not a Bug
Priority:
Low
Assignee:
-
Category:
Gateways
Target version:
-
Start date:
01/09/2013
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0.x
Affected Architecture:

Description

pfSense 2.0.2 running as a VM inside ESXi 5.0

Summary: it seems that a gateway group is not respecting the "never" tag for a gateway and is routing traffic through this gateway when a higher "tier 1" gateway fails leaving no available gateways, versus not being able to route traffic at all through this gateway group (the result that was expected/desired)

Setup:
- I have an OpenVPN client in pfSense connecting to an external OpenVPN server with a gateway "VPS" mapped to this link.

- I have a gateway group "VPS_Servers" with this OpenVPN client gateway "VPS" set to "tier 1" and my default gateway "WAN" (over which the OpenVPN client connects to the OpenVPN server) set as "never" since I want the traffic destined to this gateway group to fail entirely when the OpenVPN client is down versus trying to go out through my default gateway. There are currently no other gateways in this group (and no other gateways in this instance of pfSense).

- I have a firewall rule under "LAN" that routes traffic from a single IP address on my LAN through this gateway group "VPS_Servers" and it is at the top of my "LAN" firewall rules under the anti-lockout rules.

- my LAN address space is 192.168.1.0/24, my WAN has a DHCP assigned public IP address

When the OpenVPN client is up (i.e. "VPS" gateway is up and "VPS_Servers" gateway group is up) everything works as intended and my traffic is routed via the external OpenVPN server. When the "tier 1" gateway dies (OpenVPN client shutdown or failed) the traffic is routed through the default gateway set to "never". I do not recall this behaviour occurring in pfSense 2.0.1 as I would often find that I had no connectivity in the past when my external OpenVPN server was down and would have to go and reboot the external remote server.

Investigations:
I have also tried creating an additional gateway that cannot route traffic (associated with an invalid interface) and adding it as a "tier 2" gateway to my "VPS_Servers" gateway group with monitoring for the gateway set to "always up", my expectation was when the tier 1 gateway failed (OpenVPN client disconnected) that it would then resort to the tier 2 dead gateway listed as "up" and no traffic would leave the network, instead it continues to switch to the gateway set to "never" and traffic flows.

I also tried creating a firewall rule under "LAN" immediately under my rule to route traffic to the gateway group to reject all traffic from that IP address (so same exact rule as the one above but set to reject), traffic still flows through the "WAN" gateway set to "never", thereby ensuring that it was the rule above it that was causing the traffic to go out over the "WAN" gateway and not some later rule.

Thanks for all of your hard work on this amazing software!

Colin

Actions

Also available in: Atom PDF