Ubuntu 16.04 LTS How to force all http/https traffic to use proxy?

45,794

You need to specify this proxies and apply them system wide. Just collect the IP and Ports for your HTTP and HTTPS proxies and do this with the system proxy setting GUI. Search for Network Proxy in dash.

Try user_name:password@Proxy_IP for the authentication. This seems to be the way to configure it in the configuration file. source

Ubuntu Main

Search the dash Initial view Proxy settings Input proxies here user:password@ip

Mate IN mate there's a checkbox for this if you click on details System-> Preferences-> Internet and Network-> Network Proxy enter image description here

Share:
45,794

Related videos on Youtube

TLabs
Author by

TLabs

Updated on September 18, 2022

Comments

  • TLabs
    TLabs over 1 year

    I'm just switched back to Ubuntu, from Windows. I had a program in Windows (Fiddler) which captured all outgoing traffic and could edit their header to use proxy.

    Are there any way to force all of my outgoing traffic to use proxy?

    If I have edited

    /etc/apt/apt.conf 
    

    it does not work.

    Someone proposed to use the system proxy settings. That panel edits this file, but not even capable to use the proxy authentication.

    Most of my program uses the proxy, but not all.

    I tried also to run it from terminal and before running it I set up this:

    tpeti@TLabs-MSI:~$ export http_porxy="http://username:password@ip:port"
    tpeti@TLabs-MSI:~$ export https_porxy="https://username:password@ip:port"
    

    But this didn't worked also.

    Are there any way to force all programs to use proxy, or edit all the outgoing traffic headers to go through the proxy?

    And can I do it, with just specific programs too?

    Thanks for your help!

    • David Foerster
      David Foerster over 7 years
      http_porxyhttp_proxy
  • userDepth
    userDepth almost 8 years
    It's the same options as I used in 15.10, maybe there where changes in 16.04 I'll check out the auth detail.
  • userDepth
    userDepth almost 8 years
    Mmm yes sorry, that's how FF settings look
  • TLabs
    TLabs almost 8 years
    Thanks! It works with almoast all of my programs. Just not, with the crucial one. :/
  • TLabs
    TLabs almost 8 years
    Your solution with the unity networking isn't working (It saves the whole line as if it would be the IP of the proxy). But with mate the system switches on the defeault authentication. BUT DONT FORCE IT ON ALL THE PROGRAMS :( So it doesen't solve my problem, because more of my programs doesn't use authentication. We checked it on the proxy logs, they not even tried to use the proxy )
  • userDepth
    userDepth over 7 years
  • Krishna
    Krishna over 6 years
    This works on ubuntu 16.04 an properly answers "Ubuntu 16.04 LTS How to force all http/https traffic to use proxy?" I cannot see how the "/etc/apt/apt.conf" file is related to this question.