wgengine/router: switch packet marks to avoid conflict with Weave Net.

Signed-off-by: David Anderson <danderson@tailscale.com>
reviewable/pr584/r1
David Anderson 4 years ago
parent f26b409bd5
commit d60917c0f1

@ -26,7 +26,7 @@ import (
// //
// Keep this in sync with tailscaleBypassMark in // Keep this in sync with tailscaleBypassMark in
// wgengine/router/router_linux.go. // wgengine/router/router_linux.go.
const tailscaleBypassMark = 0x20000 const tailscaleBypassMark = 0x80000
// ipRuleOnce is the sync.Once & cached value for ipRuleAvailable. // ipRuleOnce is the sync.Once & cached value for ipRuleAvailable.
var ipRuleOnce struct { var ipRuleOnce struct {

@ -37,13 +37,13 @@ import (
const ( const (
// Packet is from Tailscale and to a subnet route destination, so // Packet is from Tailscale and to a subnet route destination, so
// is allowed to be routed through this machine. // is allowed to be routed through this machine.
tailscaleSubnetRouteMark = "0x10000" tailscaleSubnetRouteMark = "0x40000"
// Packet was originated by tailscaled itself, and must not be // Packet was originated by tailscaled itself, and must not be
// routed over the Tailscale network. // routed over the Tailscale network.
// //
// Keep this in sync with tailscaleBypassMark in // Keep this in sync with tailscaleBypassMark in
// net/netns/netns_linux.go. // net/netns/netns_linux.go.
tailscaleBypassMark = "0x20000" tailscaleBypassMark = "0x80000"
) )
// netfilterRunner abstracts helpers to run netfilter commands. It // netfilterRunner abstracts helpers to run netfilter commands. It

Loading…
Cancel
Save