Connect 2 ipv4 sites through ipv6 wireguard tunnel
-
Hello everyone,
I have 2 ipv4 sites.
I had an ipv4 wireguard tunnel working well with 2 ISPs (1 for failover). But the failover ISP turned to CGNAT.Tunnel is current in production sites are 4km from each others. I'm alone to do this, so I don't want to break everything !
And I'm new to ipv6, so I tried many things.Here's what I did :
I added ipv6 WANS on both sites (DHCP from ISPs internet boxes) and they are ok (online/green status).
I added ipv6 configuration to my wireguard interface and I have 2 wireguard gateways now, ipv4 and ipv6.
Wireguard ipv6 adresses are local (beginning with fdad) with the same prefix.
Both ipv4 and ipv6 wireguard gateways are connected (online/green status).Next step : replace ipv4 endpoints in wireguard with ipv6 endpoints (public ISPs ipv6 addresses).
I hope I'm not wrong until there.But before replace wireguard endpoints, when I try to add a static route with 10.1.2.0/24 destination and the ipv6 wireguard as gateway, pfsense tells me that adresses are not from the same families.
My question is : how do I tell pfsense to route ipv4 destination networks through ipv6 tunnel ?Thank you for your answers and sorry for the english mistakes !
-
@JoeFromNowhere said in Connect 2 ipv4 sites through ipv6 wireguard tunnel:
how do I tell pfsense to route ipv4 destination networks through ipv6 tunnel ?
You don't. Let that tunnel be IPv4 only and use IPv6 only for the "endpoints".
-
@Bob-Dig
Do you mean I should remove ipv6 configuration from the wireguard interface ? -
@JoeFromNowhere said in Connect 2 ipv4 sites through ipv6 wireguard tunnel:
Do you mean I should remove ipv6 configuration from the wireguard interface ?
At least you gave no reason why you added IPv6 to it.
-
@Bob-Dig
Wonderful ! Much easier than I thought !
I just followed a tutorial which told me to do so.Thank you very much !