Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
ia-na and ia-pd on a the wan interface
« previous
next »
Print
Pages: [
1
]
Author
Topic: ia-na and ia-pd on a the wan interface (Read 2857 times)
nkajkmuk
Newbie
Posts: 2
Karma: 0
ia-na and ia-pd on a the wan interface
«
on:
December 10, 2022, 10:57:28 pm »
Hi
I am looking to configure a WAN iPV6 address on the WAN in addition to getting the delegated /56 prefix. On the basic menu disabling the 'get prefix only" option does not seem to solve the problem.
I am thinking of a custom config override file as below, but there seems to be some error, not sure if I have got this right. Would appreciate any pointers, thanks.
interface em0 {
send ia-na 0;
send ia-pd 0;
request domain-name-servers;
request domain-name;
script "/var/etc/dhcp6c_wan_script.sh";
};
id-assoc na 0 {
};
id-assoc pd 0 {
prefix ::/56 infinity;
};
«
Last Edit: December 11, 2022, 03:28:12 pm by nkajkmuk
»
Logged
Jeffrey
Newbie
Posts: 9
Karma: 0
Re: ia-na and ia-pd on a the wan interface
«
Reply #1 on:
March 24, 2023, 04:07:13 pm »
Where you ever successful? If so what was the final solution? I too get a delegated /56 but no address assigned to the WAN interface, yes everything works with a link local on the wan interface unless I need/want to source something from the firewall itself.
Thanks, Jeff
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: ia-na and ia-pd on a the wan interface
«
Reply #2 on:
March 27, 2023, 09:21:00 pm »
TLDR: it doesn't work with dhcp6c.
https://github.com/opnsense/core/issues/5630
Cheers,
Franco
Logged
Jeffrey
Newbie
Posts: 9
Karma: 0
Re: ia-na and ia-pd on a the wan interface
«
Reply #3 on:
March 29, 2023, 06:28:22 pm »
I've come up with a not so elegant solution based upon a posting I found elsewhere directed towards pfsense. If I enable log level debug under "interfaces -> Settings" I can get the IA_PD address to appear in the files in /var/log/system/, I found it doesn't always show in "latest.log" so I simply cat all the files run it through grep and take the last IA_PD entry found and apply that address to the WAN interface.
After a reboot I simply run the script eg "./assign_ip6.sh <wan interface>" and the script will apply the last address from the assigned prefix to the wan interface. (ugly script attached)
I'm sure somebody can figure out a better way to put IA_PD and clean up the script, but at least it solves the problem for now, if not a little (ok very) kludgy.
Jef
«
Last Edit: March 29, 2023, 07:07:44 pm by Jeffrey
»
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: ia-na and ia-pd on a the wan interface
«
Reply #4 on:
April 06, 2023, 09:01:57 pm »
I'm aware of Luke's patch, but lack of integration into the larger scheme of things has me worried about side effects which for IPv6 seem to be everywhere.
We might want to bring back prefix ID selection for WAN and build something with it, but a single script this isn't going to be.
Cheers,
Franco
Logged
Jeffrey
Newbie
Posts: 9
Karma: 0
Re: ia-na and ia-pd on a the wan interface
«
Reply #5 on:
April 11, 2023, 10:16:21 pm »
never said the script was pretty, but for right now until a better solution is identified and deployed this is remains a workable option, at least for me at the moment.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
ia-na and ia-pd on a the wan interface