Project

General

Profile

Actions

Bug #1837

closed

Problem with PPP and default gateway switching

Added by Chris Buechler over 13 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Gateways
Target version:
Start date:
09/01/2011
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

Description of how to replicate:

when these conditions are met:
WAN is a PPPoE interface
OPT1 is a PPP interface (3G stick)
I reboot the system with WAN cable disconnected, but the 3G stick in place.
I use the "allow default gateway switching" option.

The system stabilizes with no default gateway in its routing table. ppp0 interface is up and have an IP address.
If I disconnect and reconnect the 3G, nothing changes.
If I reconnect the WAN cable, wait a little bit, and disconnect it, now default gateway will be on the PPP interface.
Actions #1

Updated by Jim Pingle almost 9 years ago

  • Assignee set to Jim Pingle
  • Affected Version changed from 2.0 to 2.2.x
  • Affected Architecture All added
  • Affected Architecture deleted ()

This also seems to be a problem with both WANs are PPPoE. The system logs that it's switching the gateway during the initial transition but it never actually happens.

Eventually something will trigger the system to refresh the gateway and it comes back, such as loading a page in the GUI that touches gateway groups.

To me for more testing/evaluation.

Actions #2

Updated by Chris Buechler almost 9 years ago

  • Status changed from New to Confirmed
  • Affected Version changed from 2.2.x to All
Actions #3

Updated by Jim Pingle almost 9 years ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Jim Pingle almost 9 years ago

I believe I located the source of the trouble here. With "set iface route default" in the mpd config, it was removing the default route when the PPP link was lost even when it did not match what it put in place. I omitted that line and put a safety belt in ppp-linkdown to stop it from removing the gateway when it doesn't match.

I tested this with default gateway switching on and off, by rebooting, manually disconnecting the PPP link, and manually disconnecting the NIC link, worked each time, though still possible some issues remain. Feedback appreciated.

Actions #5

Updated by Jim Pingle almost 9 years ago

  • Status changed from Feedback to Resolved
  • Target version set to 2.3

Still solid no matter how I hammer it. Feedback from others testing various scenarios has shown no negative effects either. If a problem arises, this can be reopened.

Forum thread for discussion: https://forum.pfsense.org/index.php?topic=106840.0

Actions

Also available in: Atom PDF