tailscale/net/packet
Maisem Ali bb31fd7d1c net/tstun: add inital support for NAT v4
This adds support in tstun to utitilize the SelfNodeV4MasqAddrForThisPeer and
perform the necessary modifications to the packet as it passes through tstun.

Currently this only handles ICMP, UDP and TCP traffic.
Subnet routers and Exit Nodes are also unsupported.

Updates tailscale/corp#8020

Co-authored-by: Melanie Warrick <warrick@tailscale.com>
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2023-03-23 16:54:12 -07:00
..
doc.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
header.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
icmp4.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
icmp6_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
icmp6.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
icmp.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ip4.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ip6.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
packet_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
packet.go net/tstun: add inital support for NAT v4 2023-03-23 16:54:12 -07:00
tsmp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tsmp.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
udp4.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
udp6.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00