Re: Ipv6tov4 address Dnat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,
I'm not sure nftables is native supports for nat64.
You may use jool. But jool supports iptables and netfilter modes for now.

nft issue(WIP) https://github.com/NICMx/Jool/issues/285


Fatih USTA

On 23.03.2020 08:35, Zheng konia wrote:
Hi ,

      I want to do the dnat like

             match IPV6  udp dport 9999 dnat to  IPV4:9999

      However, the rule bellow didn't work.

table inet nat {

    chain prerouting {
        type nat hook prerouting priority 100; policy accept;
                 ip6 nexthdr udp udp dport 9999 dnat to  192.168.1.11:9999
         }

      chain postrouting {
          type nat hook postrouting priority 100; policy accept;
         masquerade
    }

   Could you show me how to config ipv6 dnat to ipv4 ? Thanks.

---------------
konia
2020/03/23



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux