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

IPv6 gateway monitoring not working when WAN is a link local. #2164

Closed
marjohn56 opened this issue Feb 3, 2018 · 8 comments
Closed

IPv6 gateway monitoring not working when WAN is a link local. #2164

marjohn56 opened this issue Feb 3, 2018 · 8 comments
Assignees
Labels
cleanup Low impact changes

Comments

@marjohn56
Copy link
Member

One of my testers has an issue whereby he cannot get v6 gateway monitoring to work. On investigation I find that the *_defaultgw6 file is empty. This file is echoed out by rtsold and it took me a while to find the cause and it's in system.inc lines 460 to 463.

/* XXX eventually this file-based workaround must be removed */
foreach (glob('/tmp/*_defaultgw{,v6}', GLOB_BRACE) as $to_delete) {
    @unlink($to_delete);
}

What is the purpose of this apart from deleting the files at this point?

@fichtner fichtner self-assigned this Feb 3, 2018
@fichtner fichtner added the cleanup Low impact changes label Feb 3, 2018
@fichtner fichtner added this to the 18.7 milestone Feb 3, 2018
@fichtner
Copy link
Member

fichtner commented Feb 3, 2018

Funny, this. 4590b17

I refactored this, but now it looks like it was a silly piece of code in the first place.

Can you spot an issue with the refactor besides moving it out of the if block for when gateways are set?

@fichtner
Copy link
Member

fichtner commented Feb 3, 2018

Before this, the line was a clean copy from 2014... 727453c

@fichtner
Copy link
Member

fichtner commented Feb 3, 2018

@marjohn56
Copy link
Member Author

Was the original intention just to delete the files to clean up, or was it to do with some strange gateway issue?

Cannot see where you've moved it to as I'm now on my tablet and it won't play nicely with github. :)

@fichtner
Copy link
Member

fichtner commented Feb 3, 2018

I've moved it out of the if loop below. I think the system tries to delete stale gateways and put them back only when working. At some point it grew to do IPv6 as well. Organically grown, outlived its prime time...

@fichtner
Copy link
Member

fichtner commented Feb 3, 2018

Try this....

# opnsense-patch f09eaf7

I need to take this further though, not backwards.

fichtner added a commit that referenced this issue Feb 3, 2018
If we don't have default gateways and no connectivity, we cannot
rely on the idea that "WAN" will save us.  It could be an OPT interface
instead...

PR: #2164
@fichtner
Copy link
Member

fichtner commented Feb 3, 2018

May still walk all over you, now simply when you less expect it.

@fichtner
Copy link
Member

I have a better solution for this logic ready, it should hit master in the next two days.

fichtner added a commit that referenced this issue Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Low impact changes
Development

No branches or pull requests

2 participants