Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» Routing and Multi WAN» WAN Incoming Failover Fails
Username:
Password:
 
 

Pages: [1]   Go Down
  Print  
Author Topic: WAN Incoming Failover Fails  (Read 479 times)
0 Members and 1 Guest are viewing this topic.
jsmwalker
Newbie
*
Offline Offline

Posts: 17


View Profile
« on: January 11, 2010, 09:36:14 am »

Hi,

Hopefully someone can shed light on this, we have 2 wan connections, outgoing LB policy works perfectly, and we've tested incoming failover which also seemed to work fine, however we have just had an failure of our main connection and the failover failed, it seems that the incoming failover (2 NAT polices per published service using DNS failover records) only works if the main connection is up, which kind of means it doesn't work the way expected  Huh  To confirm all the devices can still gain internet access, just replies to incoming requests don't seem to be correctly processed.

Anyone any ideas on this, we are using 1.2.2, and have a couple of issues for not upgrading to 1.2.3 Final (NIC Driver issues)

Cheers in advance.

J
Logged
tasis
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #1 on: February 06, 2010, 09:59:17 am »

I can confirm that the same behaviour is exhibited by version 1.2.3.

We have a setup consisting of three Internet ADSL links (WAN, WAN2|OPT1, WAN3|OPT2) used for load-balancing /  failover.

Although this setup works fine as far as outgoing connections are concerned, once the WAN interface goes down, we completely lose incoming connectivity to WAN2 and WAN3. You cannot ping WAN2 or WAN3 from the outside, nor connect to any services that may be offered via NAT Port Mapping behind them.

This - as you write - renders failover for incoming connections rather useless...

What I assume happens, is the following: when the WAN interface goes down, the pfSense box loses its default gateway. In this respect it cannot respond to any incoming requests on WAN2 or WAN3. If, however, you set a static route to whatever destination to go via e.g. WAN2 as the gateway, then you have connectivity again...

You can test this:

- WAN/WAN2/WAN3 are up, you can ping all IP addresses from 1.2.3.4 (substitute your IP address)
- WAN goes down -> now neither WAN2 or WAN3 can be PINGed from 1.2.3.4
- create a static route to 1.2.3.4 via WAN2
- now you can ping WAN2 from 1.2.3.4

If the problem is the default gateway of pfSense being lost, I can only assume that perhaps the use of a routing protocol (RIPv2 ?) on pfSense might be used to dynamically change the default gateway to WAN2 or WAN3...

However I have not found any references to this, only some people mentioning to look for discussions regarding the "failover of services on the pfSense itself".

I will post more if I find something, please do the same...  Smiley

Needless to say that this is a big problem for us as well... we absolutely need failover for incoming traffic as well (not in the sense: one WAN -> many inside servers, but multiple WANs -> one inside server)
Logged
jwbrown77
Newbie
*
Offline Offline

Posts: 20


View Profile
« Reply #2 on: February 08, 2010, 01:36:48 pm »

I'm going to be deploying a similar setup in about a week when I get my new hardware.

I bought the book, and it says a couple of things on this.  Hope the authors don't mind me quoting:

"In the case of traffic initiated on the Internet destined for an OPT WAN interface, pfSense automatically uses pf's reply-to directive in all WAN and OPT WAN rules, which ensures the reply traffic is routed back out the correct WAN interface."

"Each port forward applies to a single WAN interface.  A given port can be opened on multiple WAN interfaces by using multiple port forward entries, one per WAN interface.  The easiest way to accomplish this is to add the port forward on the first WAN connection, then click the + to the right of that entry to add another port forward based on that one.  Change the interface to the desired WAN, then click save."

Seems like this configuration should work?
Logged
tasis
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #3 on: February 08, 2010, 01:53:04 pm »

I fully agree, this is what we also expected!

However the scenario that I mentioned seems to be completely reproducible: if WAN goes down, OPT1 stops replying to incoming connections. However, if you then add a static route via OPT1 to your IP, then OPT1 is reachable again! (WAN is still down)

Throughout this test, outgoing connectivity - from the pfSesnse via OPT1 to the Internet - is not at all affected.

For completeness, I should mention that our setup is the following:

WAN: PPPoE connected to a fully bridged ADSL modem
OPT1: DHCP connected to a half-bridged ADSL modem

In both cases, WAN and OPT1 receive each the public IP address from their corresponding ISP (in our case these are static IP addresses)

I have almost given up searching, I cannot find any similar behaviour reported in the forums, only what <jsmwalker> posted when he started this thread...
Logged
jwbrown77
Newbie
*
Offline Offline

Posts: 20


View Profile
« Reply #4 on: February 08, 2010, 02:17:56 pm »

My ISPs are fully static IP.  I will try this setup and post my results, though it might be a week or two.

If it's critical to your business, you might consider paying for the commercial support?  Maybe they can figure it out.

Only idea I have... Did you do anything special with your NAT rules, or are they just default?  Was thinking that with special rules maybe that "reply-to" directive is dropped?
Logged
tasis
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #5 on: February 08, 2010, 02:28:04 pm »

Thanks for helping out, we will consider paid support if nothing else comes up. For the time being, we are using a third ADSL link on a secondary pfSense to provide for incoming traffic fail-over (we primarily use it for incoming email, so setting two MX entries pointing to the two pfSense boxes does the trick). Using two pfSense boxes was not what we had in mind though...

Nothing special with the NAT rules, just mapping TCP/25 to an internal server (and the associated firewall rules are also created).

Please note that what I mentioned before happens even with just ICMP packets to the OPT1 interface (i.e. a simple PING to the WAN2 public IP address):

- Firewall rules allow incoming ICMP on the WAN2 interface to the WAN2 address
- incoming PING to the WAN2 public IP address works fine
- if WAN goes down, WAN2 can also no longer be pinged from the outside (eg from IP 1.2.3.4)
- but if a static route is added for your outside IP address (1.2.3.4) via WA2, WAN2 can be pinged again!

Again I assume that it has to do with the default gateway not being available after WAN goes down.

But I cannot explain it. Incoming PINGs to WAN2 should go out via WAN2 in any case.... unless I do not understand the way pfSense works.
Logged
tasis
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #6 on: March 03, 2010, 07:54:07 pm »

Interesting follow up:

We performed a similar test on another dual-WAN pfSense firewall at a different location (pfSense 1.2.3 embedded running on an Alix 2d1 board).

In this case, if WAN got disconnected, WAN2 continued to work (i.e. to be pinged from the outside). As it should in the first place...

It really makes me wonder now if there is a misconfiguration of our first pfSense (rel 1.2.3 on a PC platform) that caused the original problems with this strange WAN/WAN2 coupling that we were experiencing, or maybe if the different platform (PC vs embedded) plays a strange role...
Logged
__Fox__
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #7 on: March 09, 2010, 12:50:47 pm »

Hi, i've got the same problem... http://forum.pfsense.org/index.php/topic,23391.0.html

can you confirm that with the embedded version the nat from opt interface still works also without WAN1 UP?

Thanks
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.334 seconds with 20 queries.