I’m stuck trying to configure an SNAT rule for IPv6 on my router using nftables. I want all outgoing traffic through the enp1s0 interface to be SNATted with a specific IPv6 address. Here’s what I’ve tried:
hmm interesting problem! i’ve been playing around with nftables recently too and ipv6 can be tricky. have you considered using masquerade instead of snat? it might be easier to set up. something like:
this would dynamically use the ipv6 address of your enp1s0 interface. if you really need that specific ipv6 address tho, maybe try breaking it down into smaller steps? like first add the table, then the chain, then the rule. curious to hear if any of this helps or if you’ve found another solution!