blob: 3e1584a8c5dc8eb53d10b19c6bb779d01a466117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
table ip nat {
map ipportmap {
type ipv4_addr : interval ipv4_addr . inet_service
flags interval
elements = { 192.168.1.2 : 10.141.10.1-10.141.10.3 . 8888-8999,
192.168.2.0/24 : 10.141.11.5-10.141.11.20 . 8888-8999 }
}
chain prerouting {
type nat hook prerouting priority dstnat; policy accept;
ip protocol tcp dnat ip to ip saddr map @ipportmap
}
}
|