MadaMada

@madamada@snac.void.my

SysAdmin with a simple life..interested in FOSS, FreeBSD, Linux, IPv6, cloud stuff and whatever things that come along the way I find interesting..
JabberIDmadamada@xpath.my
Matrix@madamada:matrix.org
Emailmada@void.my
Webhttps://buster.xpath.my
Geminigemini://warlock.xpath.my
TheFediPeoplehttps://fediverse.info/explore/people
Yggdrasilhttps://yggdrasil-network.github.io/
4 ★ 1 ↺

[?]MadaMada ยป
@madamada@snac.void.my

So I was testing CLAT in a VirtualBox running Porteus Linux. The VM is IPv6-only and it seems to be working. Here's the following requirements..
git
tayga
make/gcc compiler
a NAT64 service running on your local network (Tayga/Jool)

Build the source

mkdir staging
cd staging
git clone https://github.com/apalrd/tayga.git
cd tayga
make
make install

Configuration file

cat /etc/tayga.conf
tun-device clat
ipv4-addr 192.0.0.2
ipv6-addr 2001:db8:feed::65
map 192.0.0.1 2001:db8:feed::64
prefix 64:ff9b::/96 # NAT64 prefix
Replace 2001:db8:feed with your /64 GUA prefix.
You can use Cloudflare's 2606:4700:4700::64 as the DNS4 resolver.

Configure Tayga

#!/usr/bin/env bash

echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
echo 2 > /proc/sys/net/ipv6/conf/eth0/accept_ra
echo 1 > /proc/sys/net/ipv6/conf/eth0/proxy_ndp

ip neigh add proxy 2001:db8:feed::64 dev eth0
ip neigh add proxy 2001:db8:feed::65 dev eth0

tayga -c /etc/tayga.conf --mktun

ip link set dev clat up
ip addr add 192.0.0.1/29 dev clat
ip route add default dev clat mtu 1260
ip route add 2001:db8:feed::64/127 dev clat

tayga -c /etc/tayga.conf

Example output should look like this:
root@skully:~# ip a s dev clat
5: clat: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 500
link/none
inet 192.0.0.1/29 scope global clat
valid_lft forever preferred_lft forever
inet6 fe80::cbdf:afeb:7379:bd0a/64 scope link stable-privacy
valid_lft forever preferred_lft forever
root@skully:~# ping -c 3 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=52 time=13.0 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=52 time=16.6 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=52 time=13.7 ms

--- 1.1.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 13.008/14.429/16.557/1.532 ms

Enjoy 🙂

-only

    History