OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • [SOLVED] ipv6 through second router
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] ipv6 through second router  (Read 5466 times)

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
[SOLVED] ipv6 through second router
« on: January 07, 2018, 01:30:14 pm »
I am trying and failing to get Ipv6 to work through a second router getting a prefix delegation from the primary router.

Let me explain. My primary router has static IPv6 on the WAN and LAN, my ISP gives me a /48 prefix. I delegate /64 prefixes to any router attached to the LAN. Second router gets its prefix all well and good.

Now, any devices attached to the secondary router cannot ping any v6 address on the WAN. I can see the packets going out of the primary router, but the responses appear not to be routed back to the secondary router.

Now, I had this working on pf****, and I am pretty sure I needed to add a route for the delegated prefix manually, however I cannot see a way in the GUI to do this.

Do I need to add a route from the shell or am I losing the plot?

Note:

I was not losing the plot, I've added the route manually and all working. Can I thank myself? :)

For those who may wish to do the same at some time:

route -6 add -net 2xxx:8xxx:6xxx:1::/64 2xxx:8xxx:6xxx:0:eeee:e98b:fc2:d2e9

or

route -6 add -net prefix_range/mask Second_router_WAN_IP



« Last Edit: January 13, 2018, 10:37:31 am by franco »
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

bartjsmit

  • Hero Member
  • *****
  • Posts: 1604
  • Karma: 167
    • View Profile
Re: ipv6 through second router
« Reply #1 on: January 07, 2018, 06:07:50 pm »
Are you running radvd on both routers? This stuff is meant to be done automagically on IPv6

Bart...
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: ipv6 through second router
« Reply #2 on: January 07, 2018, 06:58:23 pm »
Yes..

However it's the route back to the second router that's set manually, all outbound works. The only way I can ever make this type of setup work is by adding a manual route.

Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 1211
    • View Profile
Re: ipv6 through second router
« Reply #3 on: January 08, 2018, 10:02:44 pm »
There may be some bug still hiding in here that was subsequently fixed elsewhere:

https://github.com/opnsense/core/blob/master/src/sbin/prefixes.php

I know there was / is a ticket or a forum post, but I can't find it at the moment.


Cheers,
Franco
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: ipv6 through second router
« Reply #4 on: January 08, 2018, 10:17:58 pm »
Thanks Franco, that's a pointer for me to try and trace it.

Which leads us neatly to another question. I'll raise a separate topic on it.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: ipv6 through second router
« Reply #5 on: January 10, 2018, 04:33:23 pm »
Quote from: franco on January 08, 2018, 10:02:44 pm
There may be some bug still hiding in here that was subsequently fixed elsewhere:

https://github.com/opnsense/core/blob/master/src/sbin/prefixes.php

I know there was / is a ticket or a forum post, but I can't find it at the moment.


Cheers,
Franco

Had a look, nice script but it doesn't appear to do anything. :)

There's an echo for showing a route change, no route add and no exec command or am I being a muppet?
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: ipv6 through second router
« Reply #6 on: January 10, 2018, 05:23:05 pm »
Github PR #2077 makes it work.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

nivek1612

  • Full Member
  • ***
  • Posts: 188
  • Karma: 25
    • View Profile
Re: ipv6 through second router
« Reply #7 on: January 13, 2018, 08:42:44 am »
That patch makes the ipv6 route work as well

Wow great patch who wrote it :-)
Logged
OPNsense 23.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 23.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: ipv6 through second router
« Reply #8 on: January 13, 2018, 09:09:24 am »
My patch was a hack to prove the issue.

Franco did the proper  permanent fix.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 1211
    • View Profile
Re: ipv6 through second router
« Reply #9 on: January 13, 2018, 10:36:27 am »
The full fix was in https://github.com/opnsense/core/commit/3914236ce for 18.1-RC2 and should also work on 17.7.11. :)

It was sensible to move that code to priv-sep execution. Very nice find overall. Thanks again!


Franco
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: [SOLVED] ipv6 through second router
« Reply #10 on: January 13, 2018, 10:47:52 am »
Indeed. :)

How can I move my test unit from RC to dev?

I think there's a bug in my dhcp6 PR and I need to go back to that and test some more.

Is it just the opnsense-update etc?
« Last Edit: January 13, 2018, 10:49:54 am by marjohn56 »
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 1211
    • View Profile
Re: [SOLVED] ipv6 through second router
« Reply #11 on: January 13, 2018, 10:55:42 am »
If you have a proper RC, it's now possible from System: Firmware: Settings, release type development and check for updates + update. Although that will only give you the packaged version, like 18.1.r_15, not the latest git changes.

From the console it's still

# opnsense-update -t opnsense-devel

But that's considered "porcelain command" now, the GUI will try to stick to what you configured it to do.

FWIW, the stable RC and development do not differ a lot at this moment, so testing on either type should be similar.


Cheers,
Franco
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: [SOLVED] ipv6 through second router
« Reply #12 on: January 13, 2018, 10:57:28 am »
Oops ... Already did it. :)

Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

nivek1612

  • Full Member
  • ***
  • Posts: 188
  • Karma: 25
    • View Profile
Re: ipv6 through second router
« Reply #13 on: January 13, 2018, 11:44:51 am »
Quote from: franco on January 13, 2018, 10:36:27 am
The full fix was in https://github.com/opnsense/core/commit/3914236ce for 18.1-RC2 and should also work on 17.7.11. :)

It was sensible to move that code to priv-sep execution. Very nice find overall. Thanks again!


Franco

Perfect, was bugging me having an extra gateway defined to allow me to test the 18.1. Its been rock solid though (bar a users error  :-[) so i may flip my SSD out of my prod router later (just in case) and do a clean install of a new SDD of 18.1r and go live in prod
« Last Edit: January 13, 2018, 12:01:29 pm by nivek1612 »
Logged
OPNsense 23.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 23.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • [SOLVED] ipv6 through second router
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2