[SOLVED] ipv6 through second router

Started by marjohn56, January 07, 2018, 01:30:14 PM

Previous topic - Next topic
January 07, 2018, 01:30:14 PM Last Edit: January 13, 2018, 10:37:31 AM by franco
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



OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Are you running radvd on both routers? This stuff is meant to be done automagically on IPv6

Bart...

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.

OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

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

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.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

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?
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Github PR #2077 makes it work.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

That patch makes the ipv6 route work as well

Wow great patch who wrote it :-)
OPNsense 24.7.* on Qotom i5-5250U with AAISP FTTP 900/120
OPNsense 24.7.* on Qotom i7-4500U with Orange FR FTTP 1000/400

Team Rebellion Member
One of Marjohns TESTERS :-)

My patch was a hack to prove the issue.

Franco did the proper  permanent fix.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

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

January 13, 2018, 10:47:52 AM #10 Last Edit: January 13, 2018, 10:49:54 AM by marjohn56
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?
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

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

Oops ... Already did it. :)

OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

January 13, 2018, 11:44:51 AM #13 Last Edit: January 13, 2018, 12:01:29 PM by nivek1612
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
OPNsense 24.7.* on Qotom i5-5250U with AAISP FTTP 900/120
OPNsense 24.7.* on Qotom i7-4500U with Orange FR FTTP 1000/400

Team Rebellion Member
One of Marjohns TESTERS :-)