#!/bin/bash # nameds map can be addedd to a snat rule set -e $NFT add table nat $NFT add chain nat postrouting $NFT add map nat m { type ipv4_addr : ipv4_addr\; } $NFT add element nat m {1.1.1.1: 2.2.2.2} $NFT add rule nat postrouting snat ip saddr map @m