Project

General

Profile

Actions

Bug #6495

closed

No default route on PPPoE after reconnect or IP change in some cases

Added by Mario Lener almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Routing
Target version:
Start date:
06/17/2016
Due date:
% Done:

0%

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

Description

Hi, i found a strange error from release 2.3 on default route on PPPoE interface. I write a post with print screen in pfSense forum: https://forum.pfsense.org/index.php?topic=113750.0

At first I thought was a PPPoE problem related, but after some test i realize that with PPPoE when there is a link failure or a ip change from ISP the default route 0.0.0.0/0 was never set up again. I need to recreate manually, running command route add -net 0.0.0.0/0 -interface pppoe1. After this command, everything works perfectly. It is a serious problem, since my ISP assigns dynamic IP that change often.
I tried both x64 and NanoBSD (Alix), Same problem until last 2.3.1_5. With 2.2.6 default route works without problem.

Thanks in advance for your support and your fantastic firewall. :-)

--
Mario Lener

Actions #1

Updated by Mario Lener almost 8 years ago

Mario Lener wrote:

Hi, i found a strange error from release 2.3 on default route on PPPoE interface. I write a post with print screen in pfSense forum: https://forum.pfsense.org/index.php?topic=113750.0

At first I thought was a PPPoE problem related, but after some test i realize that with PPPoE when there is a link failure or a ip change from ISP the default route 0.0.0.0/0 was never set up again. I need to recreate manually, running command route add -net 0.0.0.0/0 -interface pppoe1. After this command, everything works perfectly. It is a serious problem, since my ISP assigns dynamic IP that change often.
I tried both x64 and NanoBSD (Alix), Same problem until last 2.3.1_5. With 2.2.6 default route works without problem.

Thanks in advance for your support and your fantastic firewall. :-)

--
Mario Lener

EDIT: i make a modify in /etc/inc/interfaces.inc and reactivate this code:

_/* Omit this, we maintain the default route by other means, and it causes problems with * default gateway switching. See redmine #1837 */
if (($interface "wan" && $founddefaultgw false) || $setdefaultgw == true) {
$setdefaultgw = true;
$mpdconf .= <<<EOD
set iface route default

EOD;
}_

I know that it was REMed for bug #1837, but in this way PPPoE connection works without problem after link failure, cable disconnection or IP change.

Actions #2

Updated by Chris Buechler almost 8 years ago

  • Status changed from New to Feedback

followed up in your forum thread.

Actions #3

Updated by Mario Lener almost 8 years ago

Hi Chris,

followed up in your forum thread.

In the past weekend i made more test with different ISP: i live in Italy, so i tried pfSense 2.2.6 and 2.3.1 on my home pfSense (x64 Atom 1.8 dual core) and Alix 2d3. Some friends of mine have other PPPoE and PPPoA ISP, so i can made different test. With PPPoA, i use a Draytec converting PPPoA -> PPPoE.
In All conditions, I encountered the same error: sometimes (only sometimes) at FIRST boot PPPoE goes UP, but as soon as the IP from ISP is changed or PPPoE goes down, or cable is disconnected, it's not resumed and stay down. With code modifyied, all works without problems.
This is all test i can do, in my office i have 14 pfSense but all with WAN static IP.

Do you think it would be possible to modify the code as I said in the post of the thread that I opened (if ONE GW then <Code> else (TWO or MORE GW) <Code> endif)?

Thanks in advance for your support.

EDIT: i modify the object of the thread i opened, adding a request for testing the fix.

--
Mario

Actions #4

Updated by Chris Buechler almost 8 years ago

  • Subject changed from [2.3.x] No default route on WAN PPPoE after link failure or IP change to No default route on PPPoE after reconnect or IP change in some cases
  • Category set to Routing
  • Status changed from Feedback to Confirmed
  • Assignee set to Chris Buechler
  • Target version set to 2.3.1-p6
  • Affected Version set to 2.3.x

I'm not sure what circumstance triggers this, but judging by the number of reports in that thread there is something. The proposed fix isn't right. I can't replicate any issues, whether just forcing an IP change, losing link on the WAN NIC, or losing connectivity to the PPPoE server without losing link. All recover as they should, rc.newwanip sets the default gateway correctly every time.

Posted in that thread to get more specifics from anyone seeing it.

Actions #5

Updated by Michael Knowles almost 8 years ago

Hi,

I'm the author of Bug #6423. This bug sounds remarkably similar to my symptoms.

I'm going to get the onsite presence to restart the router and then make this edit and see whether my connection will finally stay up for more than a day. Will report back.

Mike.

Actions #6

Updated by Michael Knowles almost 8 years ago

p.s. - The ADSL i'm using in this instance has a "static IP" delivered from the ISP via DHCP (or whatever mechanism it is for DHCP over PPP).

Actions #7

Updated by Mario Lener almost 8 years ago

Michael Knowles wrote:

p.s. - The ADSL i'm using in this instance has a "static IP" delivered from the ISP via DHCP (or whatever mechanism it is for DHCP over PPP).

I think you mean "dynamic IP", if your ISP use DHCP to assign your public IP. If it is, could be the same issue.

Actions #8

Updated by Michael Knowles almost 8 years ago

Yep, it's static in as much as it's supposed not to alter, and is the way that most "static IP" addresses are dished out over broadband in the UK - with the router set to obtain it via DHCP.

Actions #9

Updated by Mario Lener almost 8 years ago

Hi Chris,

I'm not sure what circumstance triggers this, but judging by the number of reports in that thread there is something. The proposed fix isn't right. I can't replicate any issues, whether just forcing an IP change, losing link on the WAN NIC, or losing connectivity to the PPPoE server without losing link. All recover as they should, rc.newwanip sets the default gateway correctly every time.

I post my system log in open thread, look at line 71/72. It is from my home firewall (2 gigabit, 64 bit, 4 Gb RAM, Atom 1.8 dual core). Ask me if you need more information.

Thanks in advance,

--
Mario

Actions #10

Updated by Michael Knowles almost 8 years ago

Just to let you know, unfortunately this hasn't solved my issue, and the line is dead again.

Actions #11

Updated by Dmitriy K almost 8 years ago

Same here. After reconnect (PPPoE) there was no default route set.

Actions #12

Updated by Mario Lener almost 8 years ago

Hi Chris,

I'm not sure what circumstance triggers this, but judging by the number of reports in that thread there is something. The proposed fix isn't right. I can't replicate any issues, whether just forcing an IP change, losing link on the WAN NIC, or losing connectivity to the PPPoE server without losing link. All recover as they should, rc.newwanip sets the default gateway correctly every time.

New log in open thread. Hope it can help.

Thanks in advance,

--
Mario (Marlenio)

Actions #13

Updated by Mario Lener almost 8 years ago

Hi Chris,
i post in open thread, but in my setup the file you ask isn't present.

--
Mario (Marlenio)

Actions #14

Updated by Mario Lener over 7 years ago

Hi Chris,
new update in thread-

--
Mario (Marlenio)

Actions #15

Updated by Mario Lener over 7 years ago

Hi Chris,
system log added. :)

Thanks,

Mario (Marlenio)

Actions #16

Updated by Chris Buechler over 7 years ago

  • Target version changed from 2.3.1-p6 to 2.3.2
Actions #17

Updated by Chris Buechler over 7 years ago

  • Assignee deleted (Chris Buechler)
  • Target version changed from 2.3.2 to 2.4.0

I brought back the behavior of 2.2.6 and earlier here, as the root cause isn't readily apparent. The router file ends up empty (details in the linked forum thread with added debug logging).

This fixes subject issue for 2.3.2, though it breaks default gateway switching with PPP interfaces, that's a much less common circumstance.

Moving to 2.4 for a proper fix so that "set iface route default" can be removed from mpd's config again.

Actions #18

Updated by Mario Lener over 7 years ago

Hi Chris,

I brought back the behavior of 2.2.6 and earlier here, as the root cause isn't readily apparent. The router file ends up empty (details in the linked forum thread with added debug logging).

This fixes subject issue for 2.3.2, though it breaks default gateway switching with PPP interfaces, that's a much less common circumstance.

Moving to 2.4 for a proper fix so that "set iface route default" can be removed from mpd's config again.

Hi test your mod on snapshot 20160715.0559 and it's ok. Now PPP interfaces starts with correct default gateway.

Thanks in advance,

--
Marlenio

Actions #19

Updated by Jim Pingle over 7 years ago

  • Status changed from Confirmed to Resolved
Actions

Also available in: Atom PDF