Skip to content

Setup Proxy for terminals and more difficult places! (which are not directly accessible!)

License

Notifications You must be signed in to change notification settings

charitra1022/MNNIT_Proxy_Setups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

MNNIT_Proxy_Setups

Setup Proxy for terminals and more difficult places! (which are not directly accessible!)

Updates to this repo is welcome! Please create a PR to merge changes, or open an Issue to help us add more data to this repo!

Quick Access


Windows 11

Settings > Network & Internet > Proxy > Manual proxy setup > Edit

  1. Toggle Use a proxy server to On
  2. Proxy IP address - 172.31.102.29
  3. Port - 3128
  4. Click Save

Windows 10

Settings > Network & Internet > Proxy > Manual proxy setup

  1. Toggle Use a proxy server to On
  2. Address - 172.31.102.29
  3. Port - 3128
  4. Click Save

Windows Applications

To run different applications on windows you have to install PROXIFIER

  1. Download & Install Proxifier - "https://www.proxifier.com/download/"
  2. Click on the Profile tab and click on Proxy Server option.
  3. Click on Add button and fill the following details, Password is "edcguest", and press OK:
  4. Proxy detail image here
  5. After that open Profile tab and click on Proxification Rules .
  6. Add the Application you want to use with Proxy server by clicking on Add button.
  7. You have to select the .exe file which you can find in Program files folder in C drive .

Ubuntu

Settings > Network > Network Proxy

  1. Click on Gear icon
  2. Choose Manual
  3. HTTP Proxy - 172.31.102.29 & 3128
  4. HTTPS Proxy - 172.31.102.29 & 3128
  5. FTP Proxy - 172.31.102.29 & 3128
  6. Sockets Host - 172.31.102.29 & 3128
  7. Close the pop-up.

Git

Open command prompt (in Windows) and run the following commands one by one

  1. git config --global --unset-all https.proxy
  2. git config --global --unset-all http.proxy
  3. git config --global --add http.proxy http://edcguest:edcguest@172.31.102.29:3128
  4. git config --global --add https.proxy http://edcguest:edcguest@172.31.102.29:3128

Linux Terminal

Open terminal (in Linux) and follow the steps below:

  1. Run sudo -i
  2. Enter your root password (password is not visible while typing in linux terminal)
  3. Run gedit /etc/apt/apt.conf
  4. Write Acquire::http::Proxy "http://edcguest:edcguest@172.31.102.29:3128"; and Save and then Close the text editor
  5. Run gedit /etc/bash.bashrc
  6. Write the following at the bottom of the file.
export http_proxy=http://edcguest:edcguest@172.31.102.29:3128/

export ftp_proxy=http://edcguest:edcguest@172.31.102.29:3128/

export https_proxy=https://edcguest:edcguest@172.31.102.29:3128/
  1. Save and Close the text editor.
  2. Close the terminal.

MSYS2

Open MSYS2 MSYS prompt (in Windows) and run the following commands one by one

Temporary: Works on the session where the commands have been run. Needs to be run every time

export HTTP_PROXY="edcguest:edcguest@172.31.102.29:3128"
export HTTPS_PROXY=$HTTP_PROXY
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTP_PROXY

Permanent: Automatically read by the terminal on startup

  1. vim .bashrc Opens the bashrc file.
  2. Press i and Add the following lines at the end of the file.
export HTTP_PROXY="edcguest:edcguest@172.31.100.25:3128"
export HTTPS_PROXY=$HTTP_PROXY
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTP_PROXY
  1. Press Esc and write :wq and press Enter.

Node

Run these commands one by one in command prompt. Make sure Node is Installed and added to path.

  1. npm config set proxy http://edcguest:edcguest@172.31.102.29:3128
  2. npm config set https-proxy http://edcguest:edcguest@172.31.102.29:3128

More help here.

To remove proxy configuration from node, run the following commands

  1. npm config rm proxy
  2. npm config rm https-proxy
  3. npm config --global rm proxy
  4. npm config --global rm https-proxy

Pip - Python

Installing python packages also need to have proxy setup. You can install packages behind proxy via the following hack.

pip install --proxy http://<usr_name>:<password>@<proxyserver_name>:<port#> <pkg_name>

Eg.

pip install --proxy http://edcguest:edcguest@172.31.102.29:3128 djangorestframework

Do we need to include this long text each time?
It is recommended, as you might need to sometimes install package normally.

To install requirements.txt, write the following

pip install --proxy http://<usr_name>@<proxyserver_name>:<port#> requirements.txt

Eg.

pip install --proxy http://edcguest:edcguest@172.31.102.29:3128 requirements.txt


About

Setup Proxy for terminals and more difficult places! (which are not directly accessible!)

Topics

Resources

License

Stars

Watchers

Forks