Community discussions

MikroTik App
 
ArielGonz
just joined
Topic Author
Posts: 6
Joined: Sat Oct 17, 2009 12:43 am

NPTv6 Configuration

Tue Apr 29, 2025 6:38 am

I finally have an ISP that offers IPv6, however their ONT router does not have bridge mode, so I'm stuck with double NAT on IPv4, and a SLAAC-configured interface on IPv6. I was hoping to be able to use IPv6 internally with NPT, but it is not working. Here is my config:
# Using a temp bridge to not announce the address to the LAN just yet.
/ipv6 address
add address=3000::100 interface=Temp_bridge

# Config from daryllswer and others.
/ipv6 firewall mangle
add action=snpt chain=postrouting comment="NPTv6 (Internal>External)" src-address=3000::/64 src-prefix=3000::/64 dst-prefix=2607::/64
add action=dnpt chain=prerouting  comment="NPTv6 (External>Internal)" dst-address=2607::/64 src-prefix=2607::/64 dst-prefix=3000::/64
Using torch, I can see that the 3000 address is being correctly converted into 2607::100 (and the rule counter is going up), but when the packets return it seems the ISP router is trying to do a Neighbor Discovery on the "fake" address, and my router is not responding to the ND. So it doesn't send the packet to the router, and the dnpt rule is never used since the counter doesn't move. These are the two lines I see on torch:
From: 2001::ping
To: 2607::100

From: fe80:upstream
To: ff02::1:ff00:100
Any hints on what I'm missing? Thank you.
 
User avatar
Kentzo
Long time Member
Long time Member
Posts: 689
Joined: Mon Jan 27, 2014 3:35 pm
Location: California

Re: NPTv6 Configuration

Tue Apr 29, 2025 6:52 am

NPTv6 still requires an upstream router to route addresses in the prefix you "allocated" for yourself. Currently it expects every device to be on link and routes nothing. RouterOS does not support RFC 4389 ND Proxy (which would be a horrible workaround for your use-case).

Are you sure your ISP does not delegate prefixes via DHCPv6?
 
ArielGonz
just joined
Topic Author
Posts: 6
Joined: Sat Oct 17, 2009 12:43 am

Re: NPTv6 Configuration

Tue Apr 29, 2025 7:01 am

I have a DHCPv6 client running on the interface, requesting prefix, and it stays searching. I've tried a few combinations of address+prefix, just prefix, rapid commit on and off.
What you say is exactly what I thought was happening. Good to see it confirmed. It seems that I'm stuck with NAT66. Not what I wanted, and honestly if that is the case I might as well not use IPv6 at all.
Thanks for your help anyway!
 
User avatar
Kentzo
Long time Member
Long time Member
Posts: 689
Joined: Mon Jan 27, 2014 3:35 pm
Location: California

Re: NPTv6 Configuration

Tue Apr 29, 2025 7:14 am

What's your ISP?
 
ArielGonz
just joined
Topic Author
Posts: 6
Joined: Sat Oct 17, 2009 12:43 am

Re: NPTv6 Configuration

Tue Apr 29, 2025 7:21 am

Optico Fiber / Critical Hub
https://bgp.tools/as/23114
They're actually a great ISP, if not for the whole "no bridge mode" situation.
 
User avatar
Kentzo
Long time Member
Long time Member
Posts: 689
Joined: Mon Jan 27, 2014 3:35 pm
Location: California

Re: NPTv6 Configuration

Tue Apr 29, 2025 8:01 am

If they don't support DHCPv6 they may still provide you with a static prefix (which you have to enter manually). Do they provide any instructions for IPv6, what did their support say?

If you can, please capture the Router Advertisement ICMPv6 packet.