tailscale/ipn
David Anderson 358cd3fd92 ipn: fix incorrect change tracking for packet filter.
ORder of operations to trigger a problem:
 - Start an already authed tailscaled, verify you can ping stuff.
 - Run `tailscale up`. Notice you can no longer ping stuff.

The problem is that `tailscale up` stops the IPN state machine before
restarting it, which zeros out the packet filter but _not_ the packet
filter hash. Then, upon restarting IPN, the uncleared hash incorrectly
makes the code conclude that the filter doesn't need updating, and so
we stay with a zero filter (reject everything) for ever.

The fix is simply to update the filterHash correctly in all cases,
so that running -> stopped -> running correctly changes the filter
at every transition.

Signed-off-by: David Anderson <danderson@tailscale.com>
2020-07-31 19:12:45 -07:00
..
ipnserver ipn/ipnserver: fix bug in earlier commit where conn can be stranded 2020-07-29 17:46:58 -07:00
ipnstate ipn/ipnstate: record assigned Tailscale IPs. 2020-07-27 14:09:54 -07:00
policy ipn, ipn/policy: filter portlist to a short list of "interesting" ports 2020-04-01 10:03:44 -07:00
backend.go ipn: add Login backend command for sign-in with token 2020-07-14 13:09:36 +02:00
doc.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
fake_test.go ipn: add Login backend command for sign-in with token 2020-07-14 13:09:36 +02:00
handle.go ipn: add Login backend command for sign-in with token 2020-07-14 13:09:36 +02:00
local.go ipn: fix incorrect change tracking for packet filter. 2020-07-31 19:12:45 -07:00
message.go ipn: add Login backend command for sign-in with token 2020-07-14 13:09:36 +02:00
message_test.go ipn: add Login backend command for sign-in with token 2020-07-14 13:09:36 +02:00
prefs.go ipn: add OSVersion, DeviceModel fields to Prefs and propagate to Hostinfos 2020-07-24 14:12:29 -07:00
prefs_test.go ipn: add OSVersion, DeviceModel fields to Prefs and propagate to Hostinfos 2020-07-24 14:12:29 -07:00
store.go ipn: have NewFileStore try to create directories as needed 2020-03-03 11:51:44 -08:00
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 2020-05-13 23:12:35 -04:00