Open krispstack opened 6 months ago
What are you trying to do? OpenWrt already has a fully integrated (kernel module based) CLAT called nat46
(https://openwrt.org/packages/pkgdata_owrt18_6/kmod-nat46). IMO a misnormer but here we are :)
https://github.com/openwrt/openwrt/blob/ea609fe486a99af6540dcc7a18f0827481d0c4b0/package/kernel/nat46/Makefile
It may be able to do things other than CLAT it's not very well documented unfortunately.
Hi @DanielG , I have a OpenWRT based Board(MT7688), It uses pppd to connect to 4G LTE internet, the operator provides only IPV6, it is not allowing any IPv4 trafic.
Then opkg install kmod-nat46
and it should Just_Work^TM but I've never tested it myself.
Hi,
since recent versions of OpenWRT have moved on from using iptables
to netfilter
, the way of setting up firewall rules for Tundra is different from the one mentioned in the tutorial. If I ever get my hands on a device running OpenWRT 22/23, I will update the tutorial or write a new one.
Also, the going the kmod-nat46
way, as Daniel suggested, may also work, but I have never used it as well.
-- Vít
FYI: You can just boot up one of the x86 images for testing: https://downloads.openwrt.org/releases/23.05.3/targets/x86/generic/openwrt-23.05.3-x86-generic-generic-ext4-combined.img
Something like this is what worked last I did this:
$ qemu-system-x86_64 -m 128M -M q35 -nographic -nic user,model=e1000,hostfwd=tcp:127.0.0.1:2222-:22,hostfwd=tcp:127.0.0.1:8888-:80 -nic user,model=e1000 -hda openwrt-23.05.3-x86-generic-generic-ext4-combined.img
Hi
How to do setup in openwrt 22 and 23
Thanks