b595430578
Add basic functions for NAT (NAPT), remaining some logic unimplemented (UDP, ICMP, port assignment, etc). NAT for TCP can work now (unless port conflicts). Outbound: LAN -> Forward -> NAT(only if targeting at WAN) -> WAN Inbound: WAN -> NAT(only from WAN, change dest) -> Forward -> LAN Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
12 lines
304 B
Plaintext
12 lines
304 B
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config NET_NAT
|
|
bool "Network Address Translation (NAT)"
|
|
default n
|
|
depends on NET_IPFORWARD
|
|
---help---
|
|
Enable or disable Network Address Translation (NAT) function.
|