Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] how do I exclude my local docker and kubernetes installation from the vpn? #151

Open
willenglishiv opened this issue Aug 28, 2024 · 1 comment
Labels

Comments

@willenglishiv
Copy link

I'm using globalprotect-openconnect and I have a local kubernetes installation with named ingresses (i.e app.local.will.dev).

Once I login to my VPN using the above software it replaces my DNS servers, and I have worked around this by adding the servers to my hosts file.

I'm trying to avoid that, so it has lead me to this software.

*.local.will.dev should resolve to localhost 127.0.0.1, and *.k8s.local.will.dev should resolve to 192.168.50.4.

How would I do that with globalprotect-openconnect command line?

@dlenski
Copy link
Owner

dlenski commented Sep 1, 2024

I'm using globalprotect-openconnect

Does that mean openconnect --protocol=gp, or something else?

and I have a local kubernetes installation with named ingresses (i.e app.local.will.dev).

I don't know anything about Kubernetes other than that it's some kind of container-orchestration thingy.

Once I login to my VPN using the above software it replaces my DNS servers, and I have worked around this by adding the servers to my hosts file.

I'm trying to avoid that, so it has lead me to this software.

*.local.will.dev should resolve to localhost 127.0.0.1, and *.k8s.local.will.dev should resolve to 192.168.50.4.

How would I do that with globalprotect-openconnect command line?

I don't understand how the VPN connection relates to the Kubernetes cluster or containers.

Are you connecting to the VPN from inside a container, or are you connecting to the VPN from the host that runs the containers?

(And once again, I don't know anything about Kubernetes. 😬)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants