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: get_interface_gateway unable to find existing but unassigned gateways #2914
Comments
Following our discussion in the forum I've been over code and change logs but could not see something sticking out. What I can say for sure is if it's not listed under auto it will not be created as it uses the same data source function in both places. Are you using something like the os-cache plugin? what is your wan setup like? |
Hi @fichtner ,
And after upgrade from 18.7.3 to 18.7.7 my LAN hosts did not get internet accesss, after check the outbound rules, they were empty, I needed create a manual outbound rule to LAN hosts got internet access :) I will try debug something and post here... |
Could you give temporary access to the box via SSH, this will be easy to spot from there. I'm out of ideas otherwise. :( let me know via franco@opnsense.org |
Hi Franco, thank you by your effort. I will deploy other appliance and restore the current appliance backup in this new and I send you the credentials by email. |
@ccesario thanks! |
Hi @fichtner , Thank you! |
Hi Carlos, Under WAN I set "IPv4 Upstream Gateway" to the actual gateway and it works as expected. The auto-detect doesn't seem to work here. I'll try to investigate why. It may be due to static configuration of WAN. At least you can use your setups manually with this setting. :) Cheers, |
Found a better fix. Will not fit into 18.7.8 but should be in time for 18.7.9. |
Hi Franco! Nice to know that found a fix!!!! Best regards, Carlos |
A bit more weirdness here. It's time for a larger rework...
Loosely related to #2914, $byname = true seems to be the default and not returning by name has little benefit. Getting rid of the argument in the next commit.
* Fill default values first before going through the monitors. * Remove $byname = false, we can still look up the gateway. * Avoid calling functions twice; remove spurious variables. * Use stristr() where status is read to avoid mismatches. * Kill 'srcip' and 'monitorip' weirdness.
Avoids a couple of calls and checks...
should be good on the latest development release shipping with 18.7.8. Workaround possible so we'll try to pull smaller chunks into several 18.7.x until all is in 19.1 eventually. :) |
Thank you @fichtner !! |
Hi,
It seems that versions 18.7.6 and 18.7.7 are not creating automatic outbound rules.
I need create Manual Outbound Rules from LAN to WAN traffic works.
I have a 18.7.3 version that is working very well as expected.
https://forum.opnsense.org/index.php?topic=10183.0
The text was updated successfully, but these errors were encountered: