Skip to main content

How to configure the proxy setting in linux (set and unset the proxy setting)

 

How to configure the proxy setting in linux (set and unset the proxy setting)

What Is a Proxy Server and How Does It Work?

                 1. A proxy server is a device or router that acts as a connection point for users and the internet.

                 2. As a result, it aids in the prevention of cyber-attacks on a private network.

                 3. It's a server that acts as a "intermediary" between end-users and the web pages they browse on the internet.

By using terminal, we are going to set a proxy


                   1. HTTP proxy: By using below command you can able to export the http_proxy


                 2. By using below command, you can verify the proxy is fixed or not 


                  3. HTTPs proxy: By using below command, you can able to export the https_proxy



                 4. By using below command, you can verify the proxy is fixed or not 


Set your proxy settings from your desktop

                 1. Go to application icon and select the setting option.

                 2. And select the Network option



                 3. Select the Network Proxy




                  4. The dialogue box should now be closed. Your preferences will be remembered automatically.

Set your proxy settings for all users.

                 1. To do this task, you'll need root or sudo privileges.

                 2. /etc/environment is a file seen in all Ubuntu and Debian editions.
 
                 3. open /etc/environment into a text editor.


                 4. Add the lines below, changing them to suit your needs. If not required, the username and password can be omitted.


For instance,


                5. Exit the text editor after saving your changes.


To unset a Proxy setting

                 1. By using below command, you can able to unset or remove a proxy 

 


                 2. By using below command, you can verify, whether the proxy is removed or not.




                 3. Some time it will not reflected, in that time you can try with below steps
 
                 4. open /etc/environment into a text editor.



                 5. Uncommand the proxy setting in  /etc/environment 





The session was completed.













Comments

Popular posts from this blog

Configuring Multipathing and Setting Up Storage on a Linux Server:

Ensuring high availability and redundancy in your storage environment is crucial for maintaining system reliability. Multipathing allows you to distribute I/O across multiple paths, providing fault tolerance and improved performance. This guide covers the entire process from configuring multipathing to setting up physical volumes (PVs), volume groups (VGs), and logical volumes (LVs) with different sizes.  Prerequisites:   Before you begin, make sure you have the following:  Administrative access to the server  Multipath tools installed on your server  Basic understanding of Linux commands  Step-by-Step Guide:   1. Install Multipath Tools:   Ensure that you have the necessary multipath tools installed: # sudo yum install device-mapper-multipath yum: Package manager for RHEL-based distributions.  install: Command to install a package.  device-mapper-multipath: Name of the package to be installed.  2. Enable and Start t...

Configure SSH Between Compute Nodes in OpenStack:

To perform operations like live migration or resizing an instance between compute nodes in OpenStack, SSH key-based authentication must be configured between all the nodes. This ensures smooth communication for moving instance disks without encountering errors like "Permission denied." Follow these steps to configure SSH between compute nodes:  Step 1: Obtain or Generate SSH Key Pair: On the first compute node, either use the existing SSH key pair located in /root/.ssh/id_rsa (private key) and /root/.ssh/id_rsa.pub (public key) , or generate a new key pair if none exists: # ssh-keygen -t rsa -b 2048 This will create a private key (id_rsa) and a public key (id_rsa.pub) in the .ssh directory.  Step 2: Disable SELinux (Optional): If you are using SELinux, switch to permissive mode temporarily to avoid permission issues: # setenforce 0 Step 3: Enable Login for the nova User: Ensure that the nova user has shell access: # usermod -s /bin/bash nova Switch to the nova user...

What is the OSI Model, and how does it work?

  What is the OSI Model, and how does it work? OSI - Open Systems Interconnection                1. The Open Systems Interconnection (OSI) model is a virtual model for describing the internal structure and technologies of a computer system.                2. Network communication is divided into seven tiers according to the OSI Model. These layers are helpful in detecting network problems.                3. A lot of unneeded work can be avoided if the problem can be focused down to one specific layer of the model. Seven layers of the OSI Model 7. Application layer                1. In the OSI model, the Application Layer is the layer closest to the end user.                2. It receives data directly from users and shows the information to them.           ...