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/util/linuxfw
Irbe Krumina 3af0f526b8
cmd{containerboot,k8s-operator},util/linuxfw: support ExternalName Services (#11802)
* cmd/containerboot,util/linuxfw: support proxy backends specified by DNS name

Adds support for optionally configuring containerboot to proxy
traffic to backends configured by passing TS_EXPERIMENTAL_DEST_DNS_NAME env var
to containerboot.
Containerboot will periodically (every 10 minutes) attempt to resolve
the DNS name and ensure that all traffic sent to the node's
tailnet IP gets forwarded to the resolved backend IP addresses.

Currently:
- if the firewall mode is iptables, traffic will be load balanced
accross the backend IP addresses using round robin. There are
no health checks for whether the IPs are reachable.
- if the firewall mode is nftables traffic will only be forwarded
to the first IP address in the list. This is to be improved.

* cmd/k8s-operator: support ExternalName Services

 Adds support for exposing endpoints, accessible from within
a cluster to the tailnet via DNS names using ExternalName Services.
This can be done by annotating the ExternalName Service with
tailscale.com/expose: "true" annotation.
The operator will deploy a proxy configured to route tailnet
traffic to the backend IPs that service.spec.externalName
resolves to. The backend IPs must be reachable from the operator's
namespace.

Updates tailscale/tailscale#10606

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2 months ago
..
linuxfwtest util/linuxfw: initial implementation of package 1 year ago
detector.go linuxfw,wgengine/route,ipn: add c2n and nodeattrs to control linux netfilter 6 months ago
fake.go util/linuxfw,wgengine/router: skip IPv6 firewall configuration in partial iptables mode (#11546) 2 months ago
helpers.go all: cleanup unused code, part 2 (#10670) 6 months ago
iptables.go util/linuxfw: move detection logic 8 months ago
iptables_runner.go cmd{containerboot,k8s-operator},util/linuxfw: support ExternalName Services (#11802) 2 months ago
iptables_runner_test.go util/linuxfw: move fake runner into pkg 8 months ago
linuxfw.go util/linuxfw,wgengine/router: enable IPv6 configuration when netfilter is disabled 3 months ago
linuxfw_unsupported.go all: cleanup unused code, part 2 (#10670) 6 months ago
nftables.go util/cmpx: delete now that we're using Go 1.22 4 months ago
nftables_runner.go cmd{containerboot,k8s-operator},util/linuxfw: support ExternalName Services (#11802) 2 months ago
nftables_runner_test.go util/linuxfw: add missing error checks in tests 8 months ago
nftables_types.go util/linuxfw: add new arch build constraints 11 months ago