This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:bpi-r2:hwnat [2017/12/30 12:03] frank |
en:bpi-r2:hwnat [2020/08/29 17:14] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Hardware-NAT ====== | ====== Hardware-NAT ====== | ||
- | * currently only for LEDE [[http:// | + | * available in LEDE [[http:// |
- | * should | + | * seems to work with 4.14, Test: https:// |
* no support in 4.4.70 [[http:// | * no support in 4.4.70 [[http:// | ||
- | [[https:// | + | Current implementation works only between lan and wan (not wifi or other interfaces) |
+ | |||
+ | at least you have to setup nat on wan: | ||
+ | < | ||
+ | ipt=/ | ||
+ | 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 / | ||
+ | #via interrupts (counter does not increase after a while (download)) | ||
+ | cat / | ||
+ | </ | ||
+ | |||
+ | [[https:// |