-
Notifications
You must be signed in to change notification settings - Fork 749
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
Internet down after 1-2 minutes, system routing #6338
Comments
I upgraded with pkg update -f and pkg upgrade -d and pkg upgrade -f. However, the problem has not been solved |
relevant information would be:
|
I use DHCP, i have a modem that work in bridge mode because in my home i have a VDSL2.
https://prnt.sc/LvZVOu7fhfwS This is the general log, i did a poweroff at 13:58 and power on at 14:00, i obtain the problem at 14:07.
https://prnt.sc/87NRzL07CF4y during the failure |
sounds similar to https://forum.opnsense.org/index.php?topic=32347.msg157402#msg157402 when the gateway is dropped, can you check if |
same situation, when you see route not found it is during the down |
but does executing |
Sorry, i didn't understand, https://prnt.sc/MZQWn9MOrCcL, yes, restore it |
@Threefish4096 as a workaround, can you try to install 2be7d9b using the command below?
This is merely a workaround, we still need to figure out why the default route is dropped as at this point it should still be there after receiving the same address from the server. Assigning myself and @fichtner to the ticket. EDIT changed commit |
I tried, but the problem reoccurs |
Sorry, the log makes no sense to me. It goes into the error condition, doesn't recover, goes into correct reconfiguration but also doesn't do anything? It's a bit hard to get a structure here.. |
I think your lease times on the WAN side are pretty low so that it constantly "breaks". For the time being we have enough information to try and reproduce. As far as the patch goes let's not try to confirm if it is working or not as it's not the exact solution anyway. |
Thanks so much again, I look forward to a patch. |
… "something else" dropped it Also add debugging information in dhclient-script. For some reason I'm suspecting the kernel dropping the route after modifying address information... PR: #6338 PR: https://forum.opnsense.org/index.php?topic=32347.0
Linking forum post for reference: https://forum.opnsense.org/index.php?topic=32347.0 |
In case addresses are removed and reapplied the routes are gone and other related interface configuration is missing. In these cases do a full recycle even though the address did not change visibly (which is good that we can detect it). Also address the "miss" of the cached address clean now that we know DHCP should not force-update us into a missing address scenario during a renew. PR: #6338
… "something else" dropped it Also add debugging information in dhclient-script. For some reason I'm suspecting the kernel dropping the route after modifying address information... PR: #6338 PR: https://forum.opnsense.org/index.php?topic=32347.0
In case addresses are removed and reapplied the routes are gone and other related interface configuration is missing. In these cases do a full recycle even though the address did not change visibly (which is good that we can detect it). Also address the "miss" of the cached address clean now that we know DHCP should not force-update us into a missing address scenario during a renew. PR: #6338 (cherry picked from 4950460) (cherry picked from bf97cdf)
Dum question, do you have the WAN Gateway checked has upstream? Hopefully this does not have anything to do with Suricata. |
@rudiservo best check the fix proposed by Franco in the forum https://forum.opnsense.org/index.php?topic=32347.msg157675#msg157675 , this is highly likely the cause of the issue. |
Now that i reinstalled, no and it go...
Me too, i have static ip.
Me too
My ISP don't use it
With Suricata i have other problems, go on WAN and on LAN it has like drops Anyway, I tried to install IpFire yesterday, searching on the internet, it does the job, but I had some configuration problems, so today I reinstalled OPNSense and everything is fine... I tried to recreate the problem, but I can't, I can't does this make sense. |
ok try 2 things, check default gateway from WAN as upstream gateway, check if suricata is in promiscuous mode. |
@AdSchellevis you're right, the workaround seems to be the fix for now, is it going to on a patch this week? |
Debug output from forum:
It's a bit strange: we are doing BOUND but with old and new address, don't flush the old one which means adding an IP address that is already there scrubs the route???? Need to verify.... |
yes, the default route disappears when you add the existing address via ifconfig again and it won't even complain about it :/ |
My actual Gateway, https://prnt.sc/LXcWPiI4gt1- , In the past I had the far and upstream active, these in the screen are the ones I have by default after yesterday's reinstall, I only removed "Disable Gateway Monitoring" This morning I turned on the firewall again and the problem happened again… #anger |
After upgrading today to 23.1.1_2-amd64, from machines on one of my VLANS, I can get DNS resolution but cannot connect to sites. Windows 11 tells me there is no internet connection, but I can ping the Comcast gateway and get DNS. Wanted to add this, will probably have to reinstall an older release at this point as I can't be down for more than an hour before I start having automation issues. If there is a patch that would be helpful as at this point I am writing this connected to a hotspot through AT&T. |
In case addresses are removed and reapplied the routes are gone and other related interface configuration is missing. In these cases do a full recycle even though the address did not change visibly (which is good that we can detect it). Also address the "miss" of the cached address clean now that we know DHCP should not force-update us into a missing address scenario during a renew. PR: #6338 (cherry picked from 4950460) (cherry picked from bf97cdf) (cherry picked from 56fcd68)
@ornative for a workaround check #6338 (comment) response, |
In case addresses are removed and reapplied the routes are gone and other related interface configuration is missing. In these cases do a full recycle even though the address did not change visibly (which is good that we can detect it). Also address the "miss" of the cached address clean now that we know DHCP should not force-update us into a missing address scenario during a renew. PR: #6338 (cherry picked from commit 4950460) (cherry picked from commit bf97cdf) (cherry picked from commit 56fcd68) (cherry picked from commit bd635e0)
In case addresses are removed and reapplied the routes are gone and other related interface configuration is missing. In these cases do a full recycle even though the address did not change visibly (which is good that we can detect it). Also address the "miss" of the cached address clean now that we know DHCP should not force-update us into a missing address scenario during a renew. PR: #6338 (cherry picked from commit 4950460) (cherry picked from commit bf97cdf) (cherry picked from commit 56fcd68) (cherry picked from commit bd635e0) (cherry picked from commit 412c0c7)
Commits have been added for 23.1.2 and confirmed in the forum. |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
22.7.11 was the last version where i didn't have any problem.
Every morning when I turn on the firewall for a few minutes 1-2 everything goes fine, then there is no internet everywhere, I need to enter the webgui and restart the "routing System routing" service
Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)
It didn't solve the problem.
https://prnt.sc/R2NlF-xdJYRG
To Reproduce
Steps to reproduce the behavior:
Expected behavior
That everything is fine, as in the previous version
Describe alternatives you considered
I reinstalled the system, I avoided putting back the backup file and I setup the whole system by hand.
I removed dnscrypt, I removed unbound, I removed gateway pinger.
I installed realtek driver, nothing has changed
Screenshots
https://prnt.sc/Ke1asVE5I8pP , Everything seems to be fine, but the browsers give me DNS_PROBE_ERR, the computer image at the bottom right disappears in favor of the one indicating no internet, until I restart "system routing".
Relevant log files
If applicable, information from log files supporting your claim.
Nothing appears in logs, audit, backend, general, boot, webui
Additional context
Add any other context about the problem here.
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 23.1.1-amd64
Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz (2 cores, 4 threads)
I don't have any information about the network card, but it worked until the previous version.
The text was updated successfully, but these errors were encountered: