diff options
author | Jarno Rajahalme <jarno@ovn.org> | 2015-11-24 15:47:56 -0800 |
---|---|---|
committer | Jarno Rajahalme <jarno@ovn.org> | 2015-11-25 16:04:59 -0800 |
commit | 9ac0aadab9f99c5f9cbe8b30cc095ce9be4be4e9 (patch) | |
tree | 116c64de78fba72a5ada886df886d2a495179f98 /tests/odp.at | |
parent | 2fa3e06d35988ee24ce1cc0f62ccceb3862038a1 (diff) | |
download | openvswitch-9ac0aadab9f99c5f9cbe8b30cc095ce9be4be4e9.tar.gz |
conntrack: Add support for NAT.
Extend OVS conntrack interface to cover NAT. New nested NAT action
may be included with a CT action. A bare NAT action only mangles
existing connections. If a NAT action with src or dst range attribute
is included, new (non-committed) connections are mangled according to
the NAT attributes.
This work extends on a branch by Thomas Graf at
https://github.com/tgraf/ovs/tree/nat.
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests/odp.at')
-rw-r--r-- | tests/odp.at | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/odp.at b/tests/odp.at index eaba0596b..3d699e12b 100644 --- a/tests/odp.at +++ b/tests/odp.at @@ -312,6 +312,17 @@ ct(commit,zone=5) ct(commit,mark=0xa0a0a0a0/0xfefefefe) ct(commit,label=0x1234567890abcdef1234567890abcdef/0xf1f2f3f4f5f6f7f8f9f0fafbfcfdfeff) ct(commit,helper=ftp) +ct(nat) +ct(commit,nat(src)) +ct(commit,nat(dst)) +ct(commit,nat(src=10.0.0.240,random)) +ct(commit,nat(src=10.0.0.240:32768-65535,random)) +ct(commit,nat(dst=10.0.0.128-10.0.0.254,hash)) +ct(commit,nat(src=10.0.0.240-10.0.0.254:32768-65535,persistent)) +ct(commit,nat(src=fe80::20c:29ff:fe88:a18b,random)) +ct(commit,nat(src=fe80::20c:29ff:fe88:1-fe80::20c:29ff:fe88:a18b,random)) +ct(commit,nat(src=[[fe80::20c:29ff:fe88:1]]-[[fe80::20c:29ff:fe88:a18b]]:255-4096,random)) +ct(commit,helper=ftp,nat(src=10.1.1.240-10.1.1.255)) ]) AT_CHECK_UNQUOTED([ovstest test-odp parse-actions < actions.txt], [0], [`cat actions.txt` |