User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:bpi-r2:hwnat [2018/06/09 13:26]
en:bpi-r2:hwnat [2020/08/29 17:14] (current)
Line 2: Line 2:
   * available in LEDE [[|forum]]   * available in LEDE [[|forum]]
-  * ported but don'work (due to missing gmac2) with 4.14, Test:  * seems to work with 4.14, Test: [[|forum]]
   * no support in 4.4.70 [[|forum]]   * no support in 4.4.70 [[|forum]]
-[[|Patch]]+Current implementation works only between lan and wan (not wifi or other interfaces) 
 +at least you have to setup nat on 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.1528543610.txt.gz · Last modified: 2020/08/29 17:14 (external edit)