Is my WAN IPv6 different from my /48 fixed prefix?

Started by JamesFrisch, December 03, 2024, 07:53:35 AM

Previous topic - Next topic
December 05, 2024, 11:17:15 AM #15 Last Edit: December 05, 2024, 11:27:11 AM by JamesFrisch
I can't see anything in the live view.

I guess my problem is elsewhere, since I get an error in my iPhone WireGurad Logs:

2024-12-05 11:12:20.896866: [APP] startActivation: Entering (tunnel: home test)
2024-12-05 11:12:20.900547: [APP] startActivation: Starting tunnel
2024-12-05 11:12:20.901026: [APP] startActivation: Success
2024-12-05 11:12:20.910009: [APP] Tunnel 'home test' connection status changed to 'connecting'
2024-12-05 11:12:20.958489: [NET] App version: 1.0.16 (27)
2024-12-05 11:12:20.958606: [NET] Starting tunnel from the app
2024-12-05 11:12:21.213335: [NET] DNS64: mapped 1234:1234:1234:1234:1234:1234:1234:1234 to itself.
2024-12-05 11:12:21.214649: [NET] Attaching to interface
2024-12-05 11:12:21.215605: [NET] UAPI: Updating private key
2024-12-05 11:12:21.215800: [NET] Routine: decryption worker 3 - started
2024-12-05 11:12:21.215970: [NET] Routine: encryption worker 1 - started
2024-12-05 11:12:21.216056: [NET] Routine: decryption worker 1 - started
2024-12-05 11:12:21.216092: [NET] UAPI: Removing all peers
2024-12-05 11:12:21.216191: [NET] Routine: handshake worker 1 - started
2024-12-05 11:12:21.216351: [NET] Routine: encryption worker 2 - started
2024-12-05 11:12:21.216556: [NET] Routine: handshake worker 2 - started
2024-12-05 11:12:21.216551: [NET] peer(3Ha2...2C2Q) - UAPI: Created
2024-12-05 11:12:21.216600: [NET] Routine: encryption worker 3 - started
2024-12-05 11:12:21.216645: [NET] Routine: decryption worker 2 - started
2024-12-05 11:12:21.216718: [NET] Routine: decryption worker 4 - started
2024-12-05 11:12:21.216860: [NET] peer(3Ha2...2C2Q) - UAPI: Updating endpoint
2024-12-05 11:12:21.216914: [NET] Routine: decryption worker 5 - started
2024-12-05 11:12:21.216957: [NET] peer(3Ha2...2C2Q) - UAPI: Updating persistent keepalive interval
2024-12-05 11:12:21.216997: [NET] peer(3Ha2...2C2Q) - UAPI: Removing all allowedips
2024-12-05 11:12:21.217120: [NET] peer(3Ha2...2C2Q) - UAPI: Adding allowedip
2024-12-05 11:12:21.217150: [NET] Routine: handshake worker 4 - started
2024-12-05 11:12:21.217241: [NET] peer(3Ha2...2C2Q) - UAPI: Adding allowedip
2024-12-05 11:12:21.217268: [NET] Routine: handshake worker 3 - started
2024-12-05 11:12:21.217325: [NET] Routine: encryption worker 5 - started
2024-12-05 11:12:21.217465: [NET] Routine: encryption worker 4 - started
2024-12-05 11:12:21.217500: [NET] Routine: decryption worker 6 - started
2024-12-05 11:12:21.217628: [NET] Routine: handshake worker 5 - started
2024-12-05 11:12:21.217712: [NET] Routine: encryption worker 6 - started
2024-12-05 11:12:21.217846: [NET] UDP bind has been updated
2024-12-05 11:12:21.217861: [NET] Routine: TUN reader - started
2024-12-05 11:12:21.217912: [NET] peer(3Ha2...2C2Q) - Starting
2024-12-05 11:12:21.217963: [NET] Interface state was Down, requested Up, now Up
2024-12-05 11:12:21.218014: [NET] Routine: handshake worker 6 - started
2024-12-05 11:12:21.218040: [NET] Device started
2024-12-05 11:12:21.218156: [NET] Routine: receive incoming v4 - started
2024-12-05 11:12:21.218225: [NET] Tunnel interface is utun10
2024-12-05 11:12:21.218259: [NET] Routine: event worker - started
2024-12-05 11:12:21.218772: [NET] Network change detected with satisfied route and interface order [pdp_ip0]
2024-12-05 11:12:21.219401: [NET] DNS64: mapped 1234:1234:1234:1234:1234:1234:1234:1234 to itself.
2024-12-05 11:12:21.219514: [NET] peer(3Ha2...2C2Q) - UAPI: Updating endpoint
2024-12-05 11:12:21.219660: [NET] Network change detected with satisfied route and interface order [pdp_ip0, utun10]
2024-12-05 11:12:21.220264: [NET] DNS64: mapped 1234:1234:1234:1234:1234:1234:1234:1234 to itself.
2024-12-05 11:12:21.220440: [NET] peer(3Ha2...2C2Q) - UAPI: Updating endpoint
2024-12-05 11:12:21.220906: [APP] Tunnel 'home test' connection status changed to 'connected'
2024-12-05 11:12:21.222061: [NET] Routine: receive incoming v6 - started
2024-12-05 11:12:21.223769: [NET] peer(3Ha2...2C2Q) - Routine: sequential receiver - started
2024-12-05 11:12:21.224410: [NET] peer(3Ha2...2C2Q) - Routine: sequential sender - started
2024-12-05 11:12:21.224630: [NET] Routine: receive incoming v4 - stopped
2024-12-05 11:12:21.224773: [NET] Routine: receive incoming v6 - stopped
2024-12-05 11:12:21.225116: [NET] UDP bind has been updated
2024-12-05 11:12:21.225212: [NET] Routine: receive incoming v4 - started
2024-12-05 11:12:21.225333: [NET] Routine: receive incoming v4 - stopped
2024-12-05 11:12:21.225416: [NET] Routine: receive incoming v6 - started
2024-12-05 11:12:21.225525: [NET] Routine: receive incoming v6 - stopped
2024-12-05 11:12:21.225711: [NET] UDP bind has been updated
2024-12-05 11:12:21.225820: [NET] Routine: receive incoming v4 - started
2024-12-05 11:12:21.225912: [NET] Routine: receive incoming v6 - started
2024-12-05 11:12:21.894818: [NET] Network change detected with satisfied route and interface order [pdp_ip0, utun10]
2024-12-05 11:12:21.895783: [NET] DNS64: mapped 1234:1234:1234:1234:1234:1234:1234:1234 to itself.
2024-12-05 11:12:21.896086: [NET] peer(3Ha2...2C2Q) - UAPI: Updating endpoint
2024-12-05 11:12:21.896509: [NET] Routine: receive incoming v4 - stopped
2024-12-05 11:12:21.896703: [NET] Routine: receive incoming v6 - stopped
2024-12-05 11:12:21.897170: [NET] UDP bind has been updated
2024-12-05 11:12:21.897215: [NET] Routine: receive incoming v4 - started
2024-12-05 11:12:21.897235: [NET] Routine: receive incoming v6 - started
2024-12-05 11:12:31.426482: [NET] peer(3Ha2...2C2Q) - Sending handshake initiation
2024-12-05 11:12:31.429487: [NET] peer(3Ha2...2C2Q) - Failed to send handshake initiation: write udp6 [::]:59855->[1234:1234:1234:1234:1234:1234:1234:1234]:51820: sendto: no route to host
2024-12-05 11:12:35.588794: [APP] Status update notification timeout for tunnel 'home test'. Tunnel status is now 'connected'.
2024-12-05 11:12:36.443928: [NET] peer(3Ha2...2C2Q) - Sending handshake initiation
2024-12-05 11:12:36.445200: [NET] peer(3Ha2...2C2Q) - Failed to send handshake initiation: write udp6 [::]:59855->[1234:1234:1234:1234:1234:1234:1234:1234]:51820: sendto: no route to host
2024-12-05 11:12:36.766280: [APP] startDeactivation: Tunnel: home test
2024-12-05 11:12:36.772260: [APP] Tunnel 'home test' connection status changed to 'disconnecting'
2024-12-05 11:12:36.789176: [NET] Stopping tunnel
2024-12-05 11:12:36.789414: [NET] Device closing
2024-12-05 11:12:36.790045: [NET] Routine: TUN reader - stopped
2024-12-05 11:12:36.790244: [NET] Routine: event worker - stopped
2024-12-05 11:12:36.790401: [NET] Routine: receive incoming v4 - stopped
2024-12-05 11:12:36.790723: [NET] Routine: receive incoming v6 - stopped
2024-12-05 11:12:36.791168: [NET] peer(3Ha2...2C2Q) - Stopping
2024-12-05 11:12:36.791311: [NET] peer(3Ha2...2C2Q) - Routine: sequential receiver - stopped
2024-12-05 11:12:36.791403: [NET] peer(3Ha2...2C2Q) - Routine: sequential sender - stopped
2024-12-05 11:12:36.791554: [NET] Device closed
2024-12-05 11:12:36.791628: [NET] Routine: decryption worker 3 - stopped
2024-12-05 11:12:36.791750: [NET] Routine: decryption worker 6 - stopped
2024-12-05 11:12:36.791811: [NET] Routine: decryption worker 4 - stopped
2024-12-05 11:12:36.791992: [NET] Routine: handshake worker 1 - stopped
2024-12-05 11:12:36.792066: [NET] Routine: handshake worker 6 - stopped
2024-12-05 11:12:36.792153: [NET] Routine: handshake worker 5 - stopped
2024-12-05 11:12:36.792313: [NET] Routine: handshake worker 4 - stopped
2024-12-05 11:12:36.792353: [NET] Routine: handshake worker 2 - stopped
2024-12-05 11:12:36.794177: [NET] Routine: decryption worker 2 - stopped
2024-12-05 11:12:36.795331: [NET] Routine: decryption worker 5 - stopped
2024-12-05 11:12:36.795662: [NET] Routine: decryption worker 1 - stopped
2024-12-05 11:12:36.795836: [NET] Routine: handshake worker 3 - stopped
2024-12-05 11:12:36.795930: [NET] Routine: encryption worker 1 - stopped
2024-12-05 11:12:36.795959: [NET] Routine: encryption worker 4 - stopped
2024-12-05 11:12:36.795992: [NET] Routine: encryption worker 3 - stopped
2024-12-05 11:12:36.796051: [NET] Routine: encryption worker 2 - stopped
2024-12-05 11:12:36.796080: [NET] Routine: encryption worker 5 - stopped
2024-12-05 11:12:36.796122: [NET] Routine: encryption worker 6 - stopped
2024-12-05 11:12:36.825811: [APP] Tunnel 'home test' connection status changed to 'disconnected'



Since this has nothing to do anymore with the original questions and these original questions are already answered, I think I will open up a new post.

Figured it out  :D

I get a static /48 prefix from my ISP that is 1234:1234:1234::/48.
The WAN DHCPv6 and the SLAAC IPv6 of OPNsense is in a different range and not static.

Because of that, for the DHCPv6 WAN I set "Optional prefix ID" to 0 and "Optional interface ID" to 1.
That way the WAN gets the IPv6 1234:1234:1234::1/64.

That method turned out to be the easiest way.
I don't need to create a dummy interface so I can create a IPv6 interface to listen to.
And it is also simpler for the firewall rules, since I can use the same WAN rule for IPv4 and IPv6, since the destination "WAN_Interface" applies to both.