-
Notifications
You must be signed in to change notification settings - Fork 759
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/IPv6 Scripts #47
Comments
|
issue is related to the fact that fcgicli is still trying to use php-fpm and fpm is not running... WIP |
|
some changes have been made, please test again with latest git or 15.1.6 when released. |
|
I've updated to 15.1.6.1 – After running /var/etc/dhcp6c_wan_script.sh (which just runs /usr/local/etc/rc.newwanipv6 vmx1) manually, I don't get and IPv6 address and all I can see in the logs is as follows…
Let me know if there's anything else I can provide/configure/etc. |
|
@mannkind With that said, @jschellevis I came here to report that https://github.com/opnsense/core/blob/master/src/etc/inc/interfaces.inc#L3654 Change |
|
@jschellevis I can't be certain what @mannkind's issue is, however dhcp6c was certainly not being started reliably on my system so it seems likely to be related. I'm not using DHCPv6 to obtain an address in my setup though, just a PD. There may indeed be other issues with php-fpm further down the chain as you've suggested above. I suppose it would be nice to know why rtsold was being run in one-shot mode so we can be certain there are no unwanted side-effects, but for my configuration I haven't seen any. The problem may be some sort of timing issue - I never saw dhcp6c started successfully on boot with rtsold in one-shot mode, but running it after the system was fully booted would result in dhcp6c being started correctly. It may be that rtsold needs an address that isn't tentative (once it's passed duplicate detection), which we could possibly wait for using a loop, but that'd block the rest of the boot process. However, running rtsold in daemon mode always reliably starts dhcp6c. Now, with that out of the way... I should probably mention that I'm new to FreeBSD (well, newly returned I guess, haven't worked with it in nearly 15 years), but my reading of how configuration would normally be done (outside of OPNsense) for FreeBSD 9+ is that the functionality that rtsol used to provide would now be handled directly by the kernel. I've got other issues with OPNsense's IPv6 support, for example I'm meant to receive a dynamic /64 for the wan interface - and the appropriate routes to go with it - via RA, and also receive a prefix via DHCPv6-PD for the LAN side. This is currently impossible with OPNsense, and while it's still possible to route traffic over the WAN via link-local, this should be a supported configuration.
I think that should get things into better shape, but I'm just going by the documentation - the only box I have to test on right now is pushing real data. Something to consider here though is interfaces that may not be reliable, like ppp/pppoe/l2tp, etc. It needs to be ensured that these interfaces are properly (re-)configured when they come back up should they fail. Another major problem I have with OPNsense is that mpd5 never seems to recover from a link failure, which means ppp/pppoe connections need to have someone on-site to recover from problems. This may actually be a show stopper for some deployments I was considering, but the reliability component should be a separate issue. Sorry for the long-winded response, hope some of this makes sense. |
|
thanks for all the info @pdf and @jschellevis. My current work-around to working IPv6 is to modify
|
|
@mannkind l'll merge your suggested fixes into the upcoming release 15.1.8. I'll close this issue shortly with a bugfix that includes all three suggestions. |
|
Need to reopen this due to the fact that the removal of -1 clobbers /etc/resolv.conf via rtsold(8)'s embedded call to resolvconf(8). Your DNS setup will break. Hybrid setups are broken in any case. Maybe we can route the IPs through /usr/local/etc/rc.resolv_conf_generate instead? |
|
I guess you know why rtsold was being run in one-shot mode. Might be useful to make a comment in the code :) For fun, I added the "-1" back to the rtsold in /usr/local/etc/inc/interfaces.inc and rebooted OPNSense. It appears that my IPv6 connectivity still works, and that rtsold is not running. Not sure about the resolv.conf issue as my DNS has been fine, but it was last modified after the reboot. |
|
@pdf WAN has "DHCP6" and LAN has "Track Interface" setting as IPv6 configuration type. |
|
@fichtner right, and dhclient doesn't start reliably with rtsold running in one-shot mode, which was the original subject of this issue.. |
|
timeout |
Is IPv6 currently working on OPNSense? I have my WAN set w/DHCP6, but I don't see it running.
When trying to start it manually, I found /var/etc/dhcp6c_wan.conf references /var/etc/dhcp6c_wan_script.sh which tries to start /usr/local/etc/rc.newwanipv6 via fcgicli
The text was updated successfully, but these errors were encountered: