Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system: allow polling when gateway monitor reports a gateway as down #2517

Closed
fichtner opened this issue Jul 5, 2018 · 8 comments
Closed
Assignees
Labels
feature Adding new functionality
Milestone

Comments

@fichtner
Copy link
Member

fichtner commented Jul 5, 2018

To fix cases where DHCP on WAN is not recovering due to modem being stubborn.

via: https://forum.opnsense.org/index.php?topic=9050.0
via: https://forum.opnsense.org/index.php?topic=9030.0

@fichtner fichtner added the feature Adding new functionality label Jul 5, 2018
@fichtner fichtner added this to the 19.1 milestone Jul 5, 2018
@fichtner fichtner self-assigned this Jul 5, 2018
@fichtner fichtner modified the milestones: 19.1, 19.7 Jan 27, 2019
@fichtner fichtner modified the milestones: 19.7, 20.1 Jun 13, 2019
@saffrey
Copy link

saffrey commented Nov 26, 2019

+1 to this issue. Would like to know if there is a workaround that I can implement before the feature is included.

Cheers!

@fichtner fichtner modified the milestones: 20.1, 20.7 Jan 24, 2020
@fichtner fichtner modified the milestones: 20.7, 21.1 Jul 24, 2020
@fichtner fichtner modified the milestones: 21.1, Community Jan 10, 2021
@fichtner fichtner modified the milestones: Community, 23.1 Aug 24, 2022
@fichtner
Copy link
Member Author

As far as #5956 is concerned 2de4658 teaches us that dhclient desperately needs a wrapper script to remove the cached IP and/or bring down the interface in order for it to be reconfigured later. Right now when dhclient exits and the link does not go down/up we don't have the chance to run any sort of post-dhcp hook to bring it back up.

@francois-pasquier
Copy link

francois-pasquier commented Aug 25, 2022

I am experiencing flapping after getting disconnected and reconnected to Wan. ( I have to reboot opnsense to fix it)

Can you confirm it's one of the symptoms that should is included in this issue?

From what I gathered a lot of people are experiencing this and it was a "long time issue"

Thank's for the hard work!

@fichtner
Copy link
Member Author

Flapping is the exact opposite of this problem. Here we never have flapping but dhclient exist at some point and we have no way of knowing. Link down/up actually correctly cycles dhclient.

@fichtner
Copy link
Member Author

This might just work starting with 23.7.2 when default gateway switching is enabled, for details see #6728

@fichtner fichtner modified the milestones: 24.1, 24.7 Jan 3, 2024
@swhite2
Copy link
Member

swhite2 commented Feb 15, 2024

Situation doesn't appear to happen as often anymore, so closing the issue.

@swhite2 swhite2 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2024
@EarlSven
Copy link

EarlSven commented Oct 3, 2024

I appear to still be suffering from this issue Opnsense 24.7.5.

My Virgin Media Hub 3.0 needs my WAN interface to use DHCP, in order to assign it my public IP. I only get an IP if after Opnsense boots I 'reload' the WAN interface on the Interfaces->Overview page. I've tried various things like tinkering with the advanced DHCP client settings, blacklisting DHCP addresses from the Hub's 192.168.x.x address, adding a monitor gateway. None of the above seems to make a difference, whenever I reboot my Opnsense box I have to manually log in and 'reload' the interface. It then immediately works, but it seems no matter how long I leave it it always needs that 'reload' to get a WAN IP.

I've probably been suffering from this issue for a couple of years, but it's quite infrequent that my Opnsense is rebooted, so it's been low priority to investigate and fix.

@jonatino
Copy link

I'm on pfsense 24.7.6 and I also have issues with this. My modem will often (at least once a day) go down and when it restarts it will get assigned a new IP from my ISP. This causes all internet access to completely stop until opnsense is restarted regardless if my modem comes back online.

Previously (before yesterday), I used an edgerouter-x which also suffered from the same issue. As a workaround, I wrote the following script for my edgerouter than will force a release/renew of dhcp on the WAN interface whenever the internet was offline.

# Release DHCP
run=/opt/vyatta/bin/vyatta-op-cmd-wrapper

echo "Internet is offline, releasing dhcp"
$run release dhcp interface eth4

# Renew DHCP
echo "Renewing dhcp"
$run renew dhcp interface eth4

Is there any way I can automate something similar in opnsense? Otherwise I'd likely have to go back to my edgerouter due to the frequency of downages I have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new functionality
Development

No branches or pull requests

7 participants