Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
IPv6 privacy extensions for WAN interface
« previous
next »
Print
Pages: [
1
]
Author
Topic: IPv6 privacy extensions for WAN interface (Read 6856 times)
schnipp
Sr. Member
Posts: 371
Karma: 19
IPv6 privacy extensions for WAN interface
«
on:
March 27, 2019, 07:25:33 pm »
Today I started the first experiment to migrate to IPv6. First step is a basic setup for accessing IPv6 webpages.
So, I request an IPv6 address from my ISP to be assigned to the WAN interface. The router advertisment message from my ISP offers me a /64 prefix (currently no prefix delegation is used). The firewall itself generates an IPv6 address for its WAN interface via SLAAC.
What I am missing is an option to enable IPv6 privacy extensions, to random the host id. Are privacy extensions implemented in Opnsense (v.19.1.4)?
Logged
OPNsense 24.7.1-amd64
bartjsmit
Hero Member
Posts: 2018
Karma: 194
Re: IPv6 privacy extensions for WAN interface
«
Reply #1 on:
March 27, 2019, 10:59:17 pm »
If you only have a /64 that means that you can only have a single IPv6 subnet. Since you don't require NAT on IPv6, that subnet should be on your LAN. It is quite normal for your WAN to have an fe80:: link local address.
RFC 4941 makes more sense for clients on the LAN. The only reason to browse from OPNsense is to retrieve updates.
Bart...
Logged
schnipp
Sr. Member
Posts: 371
Karma: 19
Re: IPv6 privacy extensions for WAN interface
«
Reply #2 on:
March 28, 2019, 06:13:11 pm »
I know that /64 is a single subnet. Because my internal network is still IPv4 only, I do not need to request a delegation prefix. Thus, the subnet offered by my ISP is correct.
Related to privacy extensions clients are responsible to randomize their host id. But, please consider the opnsense machine also as a client due to its services (proxy, ntpd etc.). So, the firewall should also randomize its own IPv6 address when using SLAAC.
Clients in my LAN (IPv4) use the proxy to access IPv6 ressources in the Internet.
Logged
OPNsense 24.7.1-amd64
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: IPv6 privacy extensions for WAN interface
«
Reply #3 on:
March 28, 2019, 11:10:48 pm »
Last time this came up it was said the FreeBSD used didn't yet support the privacy extensions.
Cheers,
Franco
Logged
lattera
Full Member
Posts: 207
Karma: 82
Re: IPv6 privacy extensions for WAN interface
«
Reply #4 on:
March 29, 2019, 05:23:21 pm »
HardenedBSD enabled IPv6 privacy extensions by default[1]. Unless explicitly disabled by OPNsense 19.1, they should still be enabled.
[1]:
https://github.com/HardenedBSD/hardenedBSD/wiki#generic-system-hardening
Logged
schnipp
Sr. Member
Posts: 371
Karma: 19
Re: IPv6 privacy extensions for WAN interface
«
Reply #5 on:
March 29, 2019, 08:04:33 pm »
I also did some research and figured out that FreeBSD supports privacy extensions which can be controlled by syscontrols
net.inet6.ip6.use_tempaddr
net.inet6.ip6.prefer_tempaddr
I'll test this the next days. Adjusting the syscontrols is already included in opnsense's system tunables (System -> Settings -> Tunables).
Logged
OPNsense 24.7.1-amd64
franco
Administrator
Hero Member
Posts: 17668
Karma: 1611
Re: IPv6 privacy extensions for WAN interface
«
Reply #6 on:
March 30, 2019, 08:14:30 am »
https://github.com/opnsense/src/commit/0c0e584f24#diff-b94e5e88e89f4adca84e1105361c3d50L100
I don't want to block these, but all we have is conflicting information about the state of implementation and an unclear view on operational impact. I also don't think anyone ever pushed for these which adds to the data here indicating something is going on here beyond our control.
Cheers,
Franco
Logged
schnipp
Sr. Member
Posts: 371
Karma: 19
Re: IPv6 privacy extensions for WAN interface
«
Reply #7 on:
April 02, 2019, 09:54:17 pm »
I have enabled the following two options:
net.inet6.ip6.use_tempaddr
net.inet6.ip6.prefer_tempaddr
Now, the pppoe interface gets an additional temporary address when using SLAAC. Basic tests shows that this address is used for Internet communication via opnsense's proxy.
We should consider that this kind of addresses should not be used for DynDNS registrations because the binding gets invalid in case the temporary address changes.
Edit:
The temporary address is not shown in the GUI (possibly a bug?) but is shown with
ifconfig
. You can also verify using websites like
http://ipv6-test.com/
or
https://www.whatismyip.com/
«
Last Edit: April 02, 2019, 09:58:52 pm by schnipp
»
Logged
OPNsense 24.7.1-amd64
bartjsmit
Hero Member
Posts: 2018
Karma: 194
Re: IPv6 privacy extensions for WAN interface
«
Reply #8 on:
April 02, 2019, 10:19:00 pm »
That's a useful setting, good catch.
You can also verify your IP from the firewall console with curl ifconfig.co/ip
Bart...
Logged
schnipp
Sr. Member
Posts: 371
Karma: 19
Re: IPv6 privacy extensions for WAN interface
«
Reply #9 on:
April 02, 2019, 10:38:18 pm »
I have to do some further checks like lifetime of the temporary address and regeneration in case of prefix change.
Edit:
But we should keep possible problems (as franco mentioned) in mind (e.g. establishing IPsec connections which needs some more testing)
«
Last Edit: April 03, 2019, 08:23:51 pm by schnipp
»
Logged
OPNsense 24.7.1-amd64
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
IPv6 privacy extensions for WAN interface