User Tools

Site Tools

Translations of this page:
en

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)

Discussion

en/bpi-r2/hwnat.txt · Last modified: 2018/07/20 11:28 by frank