Turn Proxy Off/On on Linux VM
1. Log in to the Linux VM
2. Write command sudo nano /etc/environment press enter and enter your password
3. To turn Proxy Off, comment out all the content that you find in there e.g #http_proxy="http://127.0.0.1:8080"
4. Press ctrl + x to exit, save with y and press enter
5. Do the same thing with sudo nano /etc/apt/apt.conf.d/proxy.conf comment out all the content, press ctrl + x to exit, save with y and press enter.
6. Restart the Linux VM
7. Write command: sudo apt-get update to check that Internet is available
8. Proxy Off, done!
9. To turn Proxy back On, delete the "#".

Be aware! Compared to Windows, Linux often relies on multiple base packages or libraries for network connectivity, such as glibc, libcurl, and openssl, among others. Each package or application can have its own mechanism for handling network connections, which sometimes bypasses global proxy settings.
When you configure a proxy in environment variables (e.g., http_proxy
, https_proxy
), many applications respect these settings. However, there are exceptions:
- Custom Network Implementations: Some applications use their own network stacks and do not honor environment variables by default.
- Proxy-Aware vs. Proxy-Unaware: Applications may not support proxies unless explicitly configured in their own settings.
- Libraries and Tools: Some lower-level libraries or tools (e.g.,
wget
, curl
, apt
) might need additional configuration to use the proxy.
This decentralized approach contrasts with Windows, which centralizes network settings (like proxy configurations) in a single location that's often respected system-wide.
Related Articles
Proxy configurations for connecting to a server or blob
Version: 2022-11-02 Update: 2022-11-14 Introduction Domain allowlisting is a selfservice feature that is now available on myDRE. As the name implies, domains on the allowlist can be accessed from within the Workspace (you can request specific domain ...
Linux VMs
On the myDRE platform different types of Linux virtual machines (VMs) are available. Ubuntu 20 (for GPU usage) Ubuntu 22 By default, Linux VMs have no connection to the outside world, so cannot be directly ssh'ed into like a Windows VM. Therefore a ...
Proxy configurations Anaconda
First version: 2022-10-31 Latest version: 2025-01-28 Last change(s): Clarification in the introduction; clarifying instructions; added screenshots. This is a community effort. The article was created by the anDREa Support Team in their spare time. If ...
Install Browser on Linux
Introduction Until now, Linux users have primarily relied on the command line for their browser access. For effortless web browsing on your Linux virtual machine, a single click installation of Firefox is the optimal choice. We have considered ...
Managing and monitoring your VM
From within the myDRE web portal, you can find a Manage and monitor VM menu that provides links directly to your VM in the Azure portal and Azure app. Within the Azure portal or app, you can start, stop and reset the VM, as well as analyze its ...