Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenWRT 22 and 23 Support #5

Open
krispstack opened this issue Apr 20, 2024 · 5 comments
Open

OpenWRT 22 and 23 Support #5

krispstack opened this issue Apr 20, 2024 · 5 comments

Comments

@krispstack
Copy link

Hi

How to do setup in openwrt 22 and 23

Thanks

@DanielG
Copy link

DanielG commented Apr 20, 2024

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.

@krispstack
Copy link
Author

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.

@DanielG
Copy link

DanielG commented Apr 20, 2024

Then opkg install kmod-nat46 and it should Just_Work^TM but I've never tested it myself.

@vitlabuda
Copy link
Owner

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

@DanielG
Copy link

DanielG commented Jul 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants