Comments (10)
I was using
curl
the whole time, no browser involved. It's possible that there is some DNS caching in systemd that gets reset when the tunnel goes down and back up?
I've never seen that, maybe a portal bug? we should print the resources with on_update_resources
and check if it's actually there.
from firezone.
Looks like I already had
tracing::debug
inon_update_resources
and it's definitely getting called as soon as I click in the portal.Actually, the "everyone" group has
ifconfig.net
as a resource, so I'm not sure why it doesn't route through Firezone all the time. I'm seeing DEBUG showingifconfig.net
as a resource both when I add and when I remove it from my personal group.
That's weird, for service account everyone
shouldn't be included
from firezone.
I just repro'd this by adding/disabling my allow policy for ifconfig.
Turns out it does seem like systemd-resolved cache responses :(
Seems like queries are just sent to 127.0.0.53:53
where the cache just responds and this cache is as long as the TTL so that's why it only happens when going from disable to enable and not the other way around.
Using etc-resolv-conf "fixes" this for me. Does the same happen for you?
from firezone.
I saw Note: Users will always belong to the Everyone group.
even though it's a service account so that's why I assumed.
Opened a ticket asking to clarify #5064
from firezone.
Does closing and re-opening the browser solves it?
What does curl ifconfig.net
shows?
from firezone.
I was using curl
the whole time, no browser involved. It's possible that there is some DNS caching in systemd that gets reset when the tunnel goes down and back up?
from firezone.
Looks like I already had tracing::debug
in on_update_resources
and it's definitely getting called as soon as I click in the portal.
Actually, the "everyone" group has ifconfig.net
as a resource, so I'm not sure why it doesn't route through Firezone all the time. I'm seeing DEBUG showing ifconfig.net
as a resource both when I add and when I remove it from my personal group.
from firezone.
Yeah I'm seeing the same thing:
etc-resolv-conf
doesn't have this issue (but I had to set 1.1.1.1 as my upstream resolver, resolv.conf and systemd-resolved didn't seem to play along)- Removing the actor from the group applies instantly even with
systemd-resolved
from firezone.
Yeah I'm seeing the same thing:
* `etc-resolv-conf` doesn't have this issue (but I had to set 1.1.1.1 as my upstream resolver, resolv.conf and systemd-resolved didn't seem to play along) * Removing the actor from the group applies instantly even with `systemd-resolved`
Yeah, removing works instantly because our TTL is 1 but probably the real TTL is much greater and systemd-resolved caches it as long as the TTL (or at least hinted by it)
Even with #4994 this won't be solved since once the IP, but-- maybe a simple solution is mangling the DNS response to always have a low TTL (though this would only work with UDP requests), then we could even do the caching ourselves.
from firezone.
I mean here we can add something like:
message.answers_mut().iter().for_each(|a| a.set_ttl(1));
from firezone.
Related Issues (20)
- Pulumi instructions
- Show instructions in docs for deploying Gateways for different infra
- UX audit tracking issue
- connlib: perform mangling of DNS requests to resolvers that are CIDR resources before we look up the peer HOT 1
- connlib: implement reconnect as "drop all connections and wait for new packets to trigger new ones"
- Allow FIREZONE_TOKEN to point to file HOT 1
- chore(connlib/android): revert possible Android regression from #4788
- Tracking issue for extensions to property-based state machine tests
- techdebt(connlib): use emitted events to update DNS servers in clients
- connlib: unify packet routing between CIDR and DNS resources
- Show warning if admin enters only IPv4 or IPv6 upstream resolvers
- Linux / Windows GUI client user service HOT 4
- Add a new `General` section to Settings
- Allow removing a Resource from a Site when multi-site Resources is not active
- Policy flexibility
- Allow removing Resources and Groups from a Policy
- Add resource to favorites
- Docker Gateway not starting on Raspberry Pi HOT 9
- Gateway upgrade notification
- Gateway script doesn't have a default log level HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firezone.