summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/named_snat_map_0
blob: addb9f77a54c0c7337fb3bf42d753ad8b93df5e3 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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