☰
Debian Codegraph
@
1.1.7-1
1.1.6-1
/
/
tests
/
shell
/
testcases
/
maps
/
anonymous_snat_map_1
☽
☼
tests/shell/testcases/maps/anonymous_snat_map_1
code
plain
raw
GPL-2
2008 Patrick McHardy <
[email protected]
>
debian/copyright
1
#!/bin/bash
2
3
# Variable containing anonymous map can be added to a snat rule
4
5
set -e
6
7
RULESET='
8
define m = {1.1.1.1 : 2.2.2.2}
9
table nat {
10
chain postrouting {
11
snat ip saddr map $m
12
}
13
}
14
'
15
16
$NFT -f - <<< "$RULESET"