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

虚拟机terminal如何使用主机的代理 #885

Open
Dvvvvviii opened this issue May 22, 2024 · 3 comments
Open

虚拟机terminal如何使用主机的代理 #885

Dvvvvviii opened this issue May 22, 2024 · 3 comments

Comments

@Dvvvvviii
Copy link

我的Ubuntu18.04,用virtualbox构建的虚拟机,采用HostOnly+NAT访问互联网,开启主机VPN时,Linux配置了全局代理,通过浏览器访问墙外是正常的,但是我现在需要调用墙外接口,通过terminal就无法访问了(已经在terminal中source过proxy),有没有大佬了解如何排查和修复
#虚拟机 #代理

@bannedbook
Copy link
Owner

bannedbook commented May 23, 2024

用 curl 测试
比如

curl -I https://www.google.com/

@Dvvvvviii
Copy link
Author

用 curl 测试 比如

curl -I https://www.google.com/

我试过了,直接curl或者proxychains curl都无法使用代理,浏览器都是正常的,所以我想咨询下,是HostOnly+NAT这种配置本身不可以在terminal中使用代理,还是terminal确实没法使用呢

@bannedbook
Copy link
Owner

是你没配置正确估计

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

No branches or pull requests

2 participants