HI!
I have a Mikrotik with a public ipv4 address and a OpenVPN server running in my office. One of the workers who connects to the OpenVPN server has a IPv6 address.
I have IPv6 packages enabled, and I followed this guide: https://wiki.mikrotik.com/wiki/Setting_up_an_IPv6_tunnel_via_6to4 I can not connect from a ipv6 address to my ipv4.
I’m new to IPv6, have no idea what im doing wrong.
You might be mixing too many things together (and I’m not sure if I’ll make it better). IPv4 and IPv6 are not compatible with each other, you can’t connect directly from IPv6 client to IPv4 server. But it’s also highly unlikely so far for anyone to have only IPv6 connectivity without some form of IPv4, because said incompatibility would make very significant part of internet inaccessible. The most extreme variant is DNS64 + NAT64, where the client thinks that it only has IPv6, but ISP transparently maps IPv4 internet in IPv6 address space and creates fake DNS records for IPv4-only hostnames (hostnames is important part, it doesn’t automatically work with numeric addresses). I didn’t test it, but I believe that OpenVPN should work with this.
If you want to experiment with 6to4, which will give you IPv6 (whole /48 subnet derived from your public IPv4 address), you can do that, but there are some possible problems:
- If you use OpenVPN server in RouterOS, I think it doesn’t support IPv6 transport yet.
- Linked guide is basically correct, except that 6to4 is half-broken since RouterOS 6.20 and gateway=::192.88.99.1%ipng-tunnel for route no longer works. The workaround is to add another 6to4 interface, set 192.88.99.1 as remote address and then use gateway=<newly added 6to4 interface> for default route.
- 6to4 requires gateways between IPv4 and IPv6. Those should be ideally run by each ISP, but in practice, almost none of them do it, so the routing might go to another end of the world, or be broken completely.