0

I just borrowed a Raspberry Pi 2 from my friend.

As my institute has a proxy server with user authentication, I can't access the internet via my Pi. I installed Raspbian Jessie.

I need help to solve this

  • 3
    This is not really about the Pi, but rather the network settings required to access the internet, from any device. – Greenonline Jun 19 '17 at 16:41
  • 1
    i know how to config my pc and other devices. only facing problem while configuring raspberry pi 2. i didnt find any option for proxy settings. @Greenonline – Tanmay Yerunkar Jun 19 '17 at 18:30
  • You need to edit and clarify your question in that case, because as it reads currently, it seems that you only require the proxy settings that your institute uses. The more information that you provide, and the clearer that your question is, the more likely it is that someone will be able to help you and provide you with an accurate answer, that you will find useful. What have you tired and what doesn't work, for example. Have you tried google? Does the first link help? – Greenonline Jun 19 '17 at 18:35
1
  1. If you have to authenticate, add the following lines to the following files:

    For general browsing, in /etc/environment add

    export http_proxy="http://username:password@host:port/"
    

    For apt-get, in /etc/apt/apt.conf.d/10proxy add

    Acquire::http::Proxy "http://username:password@host:port";
    
  2. If you do not have to authenticate, add the following lines to the following files:

    For general browsing, in /etc/environment add

    export http_proxy="http://host:port/"
    

    For apt-get, in /etc/apt/apt.conf.d/10proxy add

    Acquire::http::Proxy "http://host:port/";
    

Source: Connect Raspi to a Proxy

  • i tried this before but not working.. :( – Tanmay Yerunkar Jun 20 '17 at 6:34
  • @TanmayYerunkar - You are still being extremely vague... What exactly is not working? The Pi is not powering up??? What are you trying to do? Web browsing, apt, telnet, what exactly? If you tried this already, then why did you not say so in your question, in order to save people having to fish around trying to understand exactly what your issue is? If you are not more specific then your question will be closed, as it is very unclear what you are asking. – Greenonline Jun 20 '17 at 6:52
0

To connect proxy on raspi you need to add proxy at 3 places namely

  1. /etc/apt/apt.conf.d/10proxy and then type

    Acquire::http::Proxy “http://username:password@proxy_server_address:port/”;

  2. /etc/environment and then type

    export http_proxy=”http://username:password@proxy_server_address:port/”

  3. ~/.bashrc and then type

    export http_proxy=http://username:password@proxy_server_address:port

Source: TheAILearner, Connecting Raspberry pi to proxy server

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.