Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
IPSEC Connections IPV6
« previous
next »
Print
Pages: [
1
]
Author
Topic: IPSEC Connections IPV6 (Read 1598 times)
danderson
Full Member
Posts: 107
Karma: 9
IPSEC Connections IPV6
«
on:
August 09, 2023, 07:46:01 pm »
So I have this working fine for V4 and dynamic DNS names, but its giving me an error the identifier contains invalid characters in PSKs for V6 addresses.
«
Last Edit: August 09, 2023, 07:48:32 pm by danderson
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6801
Karma: 571
Re: IPSEC Connections IPV6
«
Reply #1 on:
August 09, 2023, 07:49:57 pm »
The identifier does not need to be the actual IP address used. You can use an FQDN or in fact "anything" as long as both ends agree what their respective identifiers are.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
danderson
Full Member
Posts: 107
Karma: 9
Re: IPSEC Connections IPV6
«
Reply #2 on:
August 09, 2023, 07:57:52 pm »
ok, then on my 1 remote side (ASA) i have to figure out how to change the ident it sends or on the opnsense side if I can change what it sends/change what it expects.
Logged
Patrick M. Hausen
Hero Member
Posts: 6801
Karma: 571
Re: IPSEC Connections IPV6
«
Reply #3 on:
August 09, 2023, 08:11:32 pm »
Sorry not to be more specific but I have yet to set up my first IPv6 IPsec tunnel myself. I just happen to know that you can use e.g. hostmaster@company1.com and hostmaster@company2.com as identifiers if both sides agree.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
danderson
Full Member
Posts: 107
Karma: 9
Re: IPSEC Connections IPV6
«
Reply #4 on:
August 09, 2023, 08:19:42 pm »
understood, but where in opnsense can i set what it identifiers the tunnel as outbound? Would the image below be where I set the ID for outbound and for the remote side for the inbound? As I said previously its worked with IP addr, but if I can set it as something else as you state then I can get it to auth with those IDs
Logged
Patrick M. Hausen
Hero Member
Posts: 6801
Karma: 571
Re: IPSEC Connections IPV6
«
Reply #5 on:
August 09, 2023, 08:26:40 pm »
Yes, ID is the field. You can set it to an IPv4 address even when using IPv6 for the actual connection. The ID and the IP address used need not be identical.
This is frequently the case with an IPsec gateway behind some NAT device. The peer IP address is the external address of the NAT. The ID is the internal IP address of the IPsec peer - or you set the ID at that peer to the external NAT address, then it is that.
IDs have to follow certain conventions, though. FQDNs, email addresses, IP addresses, X.509 distinguished names - IIRC that's it.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
danderson
Full Member
Posts: 107
Karma: 9
Re: IPSEC Connections IPV6
«
Reply #6 on:
August 09, 2023, 08:29:45 pm »
perfect, thanks. I just found in the ASA on my remote side that it was set to IP, im going to set it to hostname and then change it on the opnsense side.
Logged
danderson
Full Member
Posts: 107
Karma: 9
Re: IPSEC Connections IPV6
«
Reply #7 on:
August 09, 2023, 08:51:25 pm »
ok so I got it working after i changed the remote ASA from IP to hostname then updated opnsense IDs accordingly.
As many use IP addresses, I think it would still be needed to fix the pre-shared keys page to allow IPV6 addresses, its most likely not liking the :'s or ::'s
Logged
Patrick M. Hausen
Hero Member
Posts: 6801
Karma: 571
Re: IPSEC Connections IPV6
«
Reply #8 on:
August 09, 2023, 09:02:24 pm »
Would you file an issue on github, please?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
danderson
Full Member
Posts: 107
Karma: 9
Re: IPSEC Connections IPV6
«
Reply #9 on:
August 09, 2023, 11:23:52 pm »
Done
https://github.com/opnsense/core/issues/6727
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
IPSEC Connections IPV6