User Tools

Site Tools


en:bpi-r2:hwnat

Differences

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/07/19 21:38]
frank
en:bpi-r2:hwnat [2019/01/09 18:04] (current)
Line 6: Line 6:
  
 Current implementation works only between lan and wan (not wifi or other interfaces) Current implementation works only between lan and wan (not wifi or other interfaces)
 +
 +at least you have to setup nat on wan:
 +<​code>​
 +ipt=/​sbin/​iptables
 +if_wan=wan
 +${ipt} -t nat -F
 +${ipt} -t nat -A POSTROUTING -o ${if_wan} -j MASQUERADE
 +</​code>​
 +
 +and load hnat-module:​
 +
 +  modprobe mtkhnat
  
 Check if it is working with Check if it is working with
en/bpi-r2/hwnat.txt · Last modified: 2019/01/09 18:04 (external edit)