OPNsense Forum

English Forums => Development and Code Review => Topic started by: marjohn56 on February 03, 2018, 03:43:51 pm

Title: rtsold question
Post by: marjohn56 on February 03, 2018, 03:43:51 pm
@franco

What does '/usr/bin/true' do when running rtsold?

I'm trying to resolve an issue for one of my testers.

under pfSense, rtsold would return a gateway and this would be echoed to routerv6 etc when it got an RA. Under opnsense this is not happening.

This means his v6 gateway monitor does not work, it's missing. Although v6 does work. yes it's a link local address but he should still be able to use it to monitor a remote ping address.
Title: Re: rtsold question
Post by: franco on February 03, 2018, 03:52:31 pm
See -O and -R flags of "man rtsold".

-O is the script that takes care of writing the router name.
-R is the DNS script, which is rerouted to /usr/bin/true as we don't have anything appropriate.

There was a time when we didn't write the router, because stock FreeBSD rtsold does not support it, but it was put back in... mhh... 17.7.1 perhaps?

https://github.com/opnsense/src/commit/37a82291ae


Cheers,
Franco
Title: Re: rtsold question
Post by: marjohn56 on February 03, 2018, 04:02:25 pm
For some reason the router and gateway files are not created, well the one is but its zero length, I think it's 'touched' somewhere else.

Let me send him the other sides rtsold and see if it's that.
Title: Re: rtsold question
Post by: franco on February 03, 2018, 07:34:25 pm
Shouldn't make a difference.

The main issue with that is that if rtsold is not triggered, you don't get a gateway ever, e.g. in the directly send SOLICIT case.
Title: Re: rtsold question
Post by: marjohn56 on February 03, 2018, 07:36:56 pm
It was just the gw6 file that's empty when I tested on my units, so the info I was being given was a little incorrect. I've tracked down what I believe is causing his issue, I'm waiting for feedback. I have posted about it on github issues.
Title: Re: rtsold question
Post by: franco on February 03, 2018, 07:41:01 pm
helping others follow this via https://github.com/opnsense/core/issues/2164