documentation:examples:nat64
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:examples:nat64 [2020/01/02 17:34] – [VM 3 (client)] olivier | documentation:examples:nat64 [2020/01/02 19:36] (current) – [Stateless (stl)] olivier | ||
---|---|---|---|
Line 103: | Line 103: | ||
< | < | ||
- | sysrc tayga_enable=yes | + | service tayga enable |
sed -i "" | sed -i "" | ||
sed -i "" | sed -i "" | ||
Line 131: | Line 131: | ||
</ | </ | ||
==== Testing ==== | ==== Testing ==== | ||
+ | |||
+ | From VM4, start a tcpdump to check IPv4 source address seen by VM3: | ||
+ | |||
+ | < | ||
+ | [root@VM3]~# | ||
+ | tcpdump: verbose output suppressed, use -v or -vv for full protocol decode | ||
+ | listening on vtnet1, link-type EN10MB (Ethernet), capture size 262144 bytes | ||
+ | ... | ||
+ | </ | ||
From VM1 (IPv6 only host), ping NAT64 IPv6 address corresponding to VM3 IPv4 address: | From VM1 (IPv6 only host), ping NAT64 IPv6 address corresponding to VM3 IPv4 address: | ||
Line 146: | Line 155: | ||
</ | </ | ||
- | And check IPv4 source | + | From VM3, check source |
< | < | ||
- | [root@VM3]~# | + | ... |
- | tcpdump: verbose output suppressed, use -v or -vv for full protocol decode | + | |
- | listening on vtnet1, link-type EN10MB (Ethernet), capture size 262144 bytes | + | |
17: | 17: | ||
17: | 17: | ||
Line 158: | Line 164: | ||
0 packets dropped by kernel | 0 packets dropped by kernel | ||
</ | </ | ||
- | |||
===== IPFW NAT64 (kernel space) ===== | ===== IPFW NAT64 (kernel space) ===== | ||
Line 170: | Line 175: | ||
< | < | ||
- | sysrc firewall_enable=YES | + | service ipfw enable |
sysrc firewall_script="/ | sysrc firewall_script="/ | ||
echo "# Temporary fix to avoid panicing a 12-stable:" | echo "# Temporary fix to avoid panicing a 12-stable:" | ||
Line 224: | Line 229: | ||
< | < | ||
- | sysrc firewall_enable=YES | + | service ipfw enable |
sysrc firewall_script="/ | sysrc firewall_script="/ | ||
Line 263: | Line 268: | ||
From IPv4 only host, ping NAT64 IPv4 address corresponding to VM3 IPv6 address: | From IPv4 only host, ping NAT64 IPv4 address corresponding to VM3 IPv6 address: | ||
< | < | ||
- | [root@v4TST64]~# ping -c 3 2.2.1.1 | + | [root@VM3]~# ping -c 3 2.2.1.1 |
PING 2.2.1.1 (2.2.1.1): 56 data bytes | PING 2.2.1.1 (2.2.1.1): 56 data bytes | ||
64 bytes from 2.2.1.1: icmp_seq=0 ttl=63 time=17.147 ms | 64 bytes from 2.2.1.1: icmp_seq=0 ttl=63 time=17.147 ms | ||
Line 274: | Line 279: | ||
</ | </ | ||
- | And check on VM3 | + | And check on the NAT router VM2 some stats: |
< | < | ||
- | [root@rTST64]~# ipfw nat64stl NAT64 stats | + | [root@VM2]~# ipfw nat64stl NAT64 stats |
nat64stl NAT64 | nat64stl NAT64 | ||
6 packets translated from IPv6 to IPv4 | 6 packets translated from IPv6 to IPv4 |
documentation/examples/nat64.1577982882.txt.gz · Last modified: 2020/01/02 17:34 by olivier