I have a NAS back at home that is connected to a rather old mikrotik router, running RouterOS 6.
I currently live in a different country, but my internet provider has IPv6 support.
My plan is to connect to the NAS with NFS. To make it somewhat secure, I have only allowed it to be mounted from my current IPv6 address.
The problem is that my router receives and forwards my dynamic IPv4, so NAS refuses the operation.
Is there a way to make RouterOS see my IPv6 and forward it to my NAS? All the NAT rules seem to be for IPv4 only.
The first thing to remember is that even though both are called IP, they’re pretty much completely separate protocols.
The IPv6 firewall rules don’t affect IPv4 at all, and vice-versa.
What you need to do is obtain a block of IPv6 address space from your provider, apply it to your interfaces, and test basic connectivity on IPv6.
(I like the sites ipquail.com and ipv6-test.com)
Once you have assured that IPv6 is working properly, you can use firewall rules to limit the access to the NAS. The NAS should not care too much about IPv4, or at least it should be able to have rules about both protocols’ addresses independently of each other.
Now if you’re trying to use an IPv6 address on your router as a way to access the IPv4 address of the NAS, then this probably isn’t going to work in the way you’d think. Mikrotik doesn’t have any kind of NAT in IPv6, not prefix translation, not full-cone NAT, and definitely not protocol-translation NAT. Now you could use an IPv6 tunnel to tunnel your LAN’s IPv4 connectivity to some remote place over IPv6, but that’s probably not what you’re wanting to do.
For this to happen, you will need to run some kind of proxy. Since there is no such thing available on MT, you need a machine on your network to do it (even a Pi would work, using e.g. haproxy). I use such a setup to give IPv6 access to IPv4/TCP only services without issues.
BTW, a port of haproxy would be a nice addition to ROS
Do you mean that I need IPv6 support from my home provider to make it work?
Yep, that’s basically it.
In my home network there is IPv4 DHCP, so each device, including my NAS has an IPv4 address in the local network.
And indeed, I wanted to translate my current foreign IPv6 to the router.
I thought the problem was with my router only seeing the IPv4 from my foreign laptop, but if I understand correctly, I need the IPv6 support from my provider, so I connect by IPv6 and not IPv4. And also I would need IPv6 DHCP, correct?
Is there a support for all the required features on my 951G-2HnD?
Can you direct me to a manual, please? I do have an Intel NUC with linux on it connected to the local network at home.