Endpoint-Independent NAT with Linux Netfilter.
Well, kindof. It just creates DNAT mappings when doing NAT hole punching with STUN servers on ports 3478, 19302.
I.e. lan_ip:54321 -> wan_ip:12345 -> stun_server_ip:3478
will create mapping wan_ip:12345 -> lan_ip:54321
.
The mappings have 5 minutes expiry time that refreshes on packet sent on those ports.
- ppp0 - wan interface.
- br0 - lan interface.
nft add table ip einat