Results 1 to 8 of 8

Thread: Configuring Lubuntu to use company proxy

  1. #1
    Join Date
    Apr 2014
    Beans
    7

    Question Configuring Lubuntu to use company proxy

    I am fairly new to Lubuntu and come from a Windows background.

    I have installed Lubuntu on a couple of old Dell XP PCs. These PCs are intended for mulitiple users with their own logins. I want to set them up so that the users will be redirected to the company proxy server to access the internet. In Windows, this is a fairly simple setting but not so much in Unbuntu.

    First of all, Unbuntu apparently has a "Network Proxy" configuration utility right in Preferences but Lubuntu doesn't have anything. Is there supposed to be one?

    Most of the information I've found about Unbuntu and proxy use look like this...

    Your /etc/environment needs to have the following proxy configuration:

    no_proxy=localhost,127.0.0.0/8,*.local
    NO_PROXY=localhost,127.0.0.0/8,*.local
    all_proxy=socks://proxy.example.com:8080/
    ALL_PROXY=socks://proxy.example.com:8080/
    http_proxy=http://proxy.example.com:8080
    HTTP_PROXY=http://proxy.example.com:8080
    ftp_proxy=http://proxy.example.com:8080
    FTP_PROXY=http://proxy.example.com:8080
    https_proxy=http://proxy.example.com:8080
    HTTPS_PROXY=http://proxy.example.com:8080

    You must log out before your desktop environment will refresh it's environment variables. As all desktop applications are started by the desktop environment, they subsequently inherit its environment settings.
    Next, you'll need to update your apt configuration. Create a file called /etc/apt/apt.conf and edit it to contain these declarations:

    Acquire::http:roxy "http://proxy.example.com:8080/";
    Acquire::ftp:roxy "ftp://proxy.example.com:8080/";
    Acquire::https:roxy "https://proxy.example.com:8080/";

    I've tried this but it doesn't seem to work the way I would expect it. To test I went to Xterm and entered the command ...
    sudo apt-get update
    All the updates fail with the message "407 Proxy Authentication Required". I expected when the command is launched you'd be prompted once for a username and password and then the
    command would continue and finish successfully.

    What am I missing?
    Last edited by Bob_Hartung; May 5th, 2014 at 09:46 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Configuring Lubuntu to use company proxy

    Is 8080 this the correct port ?
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |

  3. #3
    Join Date
    Apr 2014
    Beans
    7

    Re: Configuring Lubuntu to use company proxy

    That is the port our firewall uses. Apparently this is a fairly common practice when a proxy is used.

  4. #4
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Configuring Lubuntu to use company proxy

    That was not my question

    Now if the port is correct, you need authentication.

    http_proxy=http://username:password@proxyhost:port/

    https://help.ubuntu.com/community/Ap...e_a_http-proxy
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |

  5. #5
    Join Date
    Apr 2014
    Beans
    7

    Re: Configuring Lubuntu to use company proxy

    Then my previous answer was not my answer.

    Our proxy does require authentication. I tried the command you referenced, even tried all uppercase (HTTP_PROXY). Unfortunately, that did not seem to correct the problem. I still got a bunch of errors like this when I used apt-get...

    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required

    Our proxy, which is part of our firewall device, doesn't seem to accept this particular format.

  6. #6
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Configuring Lubuntu to use company proxy

    Is this a ISA proxy ?
    http://ubuntuforums.org/showthread.php?t=1802306

    Edit: the trailing semicolon is _mandatory_.
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |

  7. #7
    Join Date
    Apr 2014
    Beans
    7

    Re: Configuring Lubuntu to use company proxy

    No, it is a firewall appliance called an Instagate (eSoft). It has a Linux based OS.

  8. #8
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Configuring Lubuntu to use company proxy

    Quote Originally Posted by Bob_Hartung View Post
    No, it is a firewall appliance called an Instagate (eSoft). It has a Linux based OS.
    I am not familiar with these firewalls. Could you please contact the person in charge and see if they could authorize apt-get ?
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •