You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net/tstun
Maisem Ali 5ef178fdca net/tstun: refactor peerConfig to allow storing more details
This refactors the peerConfig struct to allow storing more
details about a peer and not just the masq addresses. To be
used in a follow up change.

As a side effect, this also makes the DNAT logic on the inbound
packet stricter. Previously it would only match against the packets
dst IP, not it also takes the src IP into consideration. The beahvior
is at parity with the SNAT case.

Updates tailscale/corp#19623

Co-authored-by: Andrew Dunham <andrew@du.nham.ca>
Signed-off-by: Maisem Ali <maisem@tailscale.com>
Change-Id: I5f40802bebbf0f055436eb8824e4511d0052772d
2 years ago
..
fake.go cmd/tailscaled,net/tstun: fix data race on start-up in TUN mode 2 years ago
ifstatus_noop.go all: update copyright and license headers 3 years ago
ifstatus_windows.go all: update copyright and license headers 3 years ago
linkattrs_linux.go all: update copyright and license headers 3 years ago
linkattrs_notlinux.go all: update copyright and license headers 3 years ago
mtu.go disco,net/tstun,wgengine/magicsock: probe peer MTU 2 years ago
mtu_test.go disco,net/tstun,wgengine/magicsock: probe peer MTU 2 years ago
tap_linux.go go.mod,*: bump gvisor 2 years ago
tap_unsupported.go all: update copyright and license headers 3 years ago
tstun_stub.go cmd/tailscaled, net/tstun: build for aix/ppc64 2 years ago
tun.go net/tstun: implement env var for disabling UDP GRO on Linux (#11924) 2 years ago
tun_features_linux.go net/tstun: implement env var for disabling UDP GRO on Linux (#11924) 2 years ago
tun_features_notlinux.go net/tstun: implement env var for disabling UDP GRO on Linux (#11924) 2 years ago
tun_linux.go all: update copyright and license headers 3 years ago
tun_macos.go all: update copyright and license headers 3 years ago
tun_notwindows.go all: update copyright and license headers 3 years ago
tun_windows.go all: update copyright and license headers 3 years ago
wrap.go net/tstun: refactor peerConfig to allow storing more details 2 years ago
wrap_test.go net/tstun: refactor peerConfig to allow storing more details 2 years ago