User Tools

Site Tools


Translations of this page:

en:bpi-r2:hwnat

Hardware-NAT

Current implementation works only between lan and wan (not wifi or other interfaces)

at least you have to setup nat on wan:

ipt=/sbin/iptables
if_wan=wan
${ipt} -t nat -F
${ipt} -t nat -A POSTROUTING -o ${if_wan} -j MASQUERADE

and load hnat-module:

modprobe mtkhnat

Check if it is working with

#via debugfs (working shows BIND-state)
cat /sys/kernel/debug/hnat/all_entry
#via interrupts (counter does not increase after a while (download))
cat /proc/interrupts | grep 'ethernet'

original-Patch for 4.9 (lede)

en/bpi-r2/hwnat.txt · Last modified: 2023/06/08 17:06 by 127.0.0.1