Hello All,
i am trying to do NAT464 XLAT similar with below diagram (taken from RFC6877)
I have 2 VM using FreeBSD 12.1 Release as CLAT and PLAT with the following Kernel Option :
IPFIREWALL
IPFIREWALL_VERBOSE
IPFIREWALL_DEFAULT_TO_ACCEPT
IPFIREWALL_NAT
IPFIREWALL_NAT64
LIBALIAS
on both VM i have enabled the following :
gateway_enable="YES"
ipv6_gateway_enable="YES"
CLAT Specific configuration :
em0: 192.168.1.1/24 --> toward ipv4 LAN
em1: 2001:db8:1234::2/64 --> toward PLAT
inet6 default route is 2001:db8:1234::1 --> IP of PLAT
ipfw nat64clat NAT64 create clat_prefix 2001:db8:1234:1000::/96 plat_prefix 64:ff9b::/96 log allow_private
ipfw add allow log icmp6 from any to any icmp6types 135,136
ipfw add nat64clat NAT64 ip from any to any
-------------------------------------------------------------------------------------------------------------------
PLAT Specific configuration :
em0: 2001:db8:1234::1/64 --> toward CLAT
em1: 172.16.1.2/30 --> toward Server A
route -6 add 2001:db8:1234:1000::/96 2001:db8:1234::2 --> return route for CLAT PREFIX
ipfw nat64lsn NAT64 create prefix4 10.0.0.0/24 prefix6 64:ff9b::/96
ipfw add allow log icmp6 from any to any icmp6types 135,136
ipfw add nat64lsn NAT64 ip from 2001:db8:1234:1000::/96 to 64:ff9b::/96 in
ipfw add nat64lsn NAT64 ip from any to 10.0.0.0/24 in
sysctl net.inet.ip.fw.nat64_direct_output=1
---------------------------------------------------------------------------------------------------------------------
i also been reading the following thread NAT64 for stateful NAT64.
However, i am still unable to make it work.
From CLAT
the above packet statistic when i am trying to ping from ipv4 LAN to Server A
From PLAT
I know i am probably missing a lot of thing on the config, any advise how to do NAT 464 XLAT in the right/proper way ?
i am trying to do NAT464 XLAT similar with below diagram (taken from RFC6877)
I have 2 VM using FreeBSD 12.1 Release as CLAT and PLAT with the following Kernel Option :
IPFIREWALL
IPFIREWALL_VERBOSE
IPFIREWALL_DEFAULT_TO_ACCEPT
IPFIREWALL_NAT
IPFIREWALL_NAT64
LIBALIAS
on both VM i have enabled the following :
gateway_enable="YES"
ipv6_gateway_enable="YES"
CLAT Specific configuration :
em0: 192.168.1.1/24 --> toward ipv4 LAN
em1: 2001:db8:1234::2/64 --> toward PLAT
inet6 default route is 2001:db8:1234::1 --> IP of PLAT
ipfw nat64clat NAT64 create clat_prefix 2001:db8:1234:1000::/96 plat_prefix 64:ff9b::/96 log allow_private
ipfw add allow log icmp6 from any to any icmp6types 135,136
ipfw add nat64clat NAT64 ip from any to any
-------------------------------------------------------------------------------------------------------------------
PLAT Specific configuration :
em0: 2001:db8:1234::1/64 --> toward CLAT
em1: 172.16.1.2/30 --> toward Server A
route -6 add 2001:db8:1234:1000::/96 2001:db8:1234::2 --> return route for CLAT PREFIX
ipfw nat64lsn NAT64 create prefix4 10.0.0.0/24 prefix6 64:ff9b::/96
ipfw add allow log icmp6 from any to any icmp6types 135,136
ipfw add nat64lsn NAT64 ip from 2001:db8:1234:1000::/96 to 64:ff9b::/96 in
ipfw add nat64lsn NAT64 ip from any to 10.0.0.0/24 in
sysctl net.inet.ip.fw.nat64_direct_output=1
---------------------------------------------------------------------------------------------------------------------
i also been reading the following thread NAT64 for stateful NAT64.
However, i am still unable to make it work.
From CLAT
the above packet statistic when i am trying to ping from ipv4 LAN to Server A
From PLAT
I know i am probably missing a lot of thing on the config, any advise how to do NAT 464 XLAT in the right/proper way ?