blob: 32aac8a3720d682ebcb9b2870d69785adaeb1775 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
# anonymous map can be added to a snat rule
set -e
$NFT add table nat
$NFT add chain nat postrouting
$NFT add rule nat postrouting snat ip saddr map {1.1.1.1 : 2.2.2.2}
|