Apt-get behind proxy - setting authentication

exup

Renowned Member
Mar 24, 2011
11
1
68
Australia
Hi,

My corporate network has a proxy for internet access.
I confirmed from the network team what the ip address and port is to use.
I also know I have a valid and working user account.

I have been using various Proxmox versions over the years and it has been working ok if I configure directly the /etc/apt/apt.conf.d/70debconf file with the usual acquire settings see below.

Acquire::http:proxy "http://username:password@192.168.0.1:3129/";

I did a fresh install of the latest version of Proxmox Virtual Environment 4.2-2/725d76f0
Edited the 70debconf file as I normally do but it does not work, getting proxy authentication when performing apt-get update from the shell.

Now I did see from your forum that you can configure the proxy via the web GUI so I inserted the following, is it correct and will this be the only place to udpate. Even after trying and rebooting it still does not allow apt-get update. I could not find this described in your wiki. Am I using it correctly, or is there another apt conf file I should be editing?

http://username:password@192.168.0.1:3129
 
Hi exup,

We have a proxy on our network, and all we did (as for other linux servers), is to create an apt.conf file inside /etc/apt, and fill it it with :

Code:
# cat apt.conf
Acquire::http::Proxy "http://proxy:8080";
Acquire::https::Proxy "https://proxy:8080";

You should perhaps add https proxy to your configuration, as it is safer, and perhaps will be required, at least in the future (?). This simple configuration works for us.
 
Hi

OK thanks I will try tomorrow at work. It just seems so many places to update proxy settings, I never know which is the best place.
Also what the GUI proxy setting is applying to the host.

Cheers.
 
why don´t you just set the proxy in the GUI, your "Datacenter/Options"?
 
  • Like
Reactions: somehume
Hi
Yes that was the original question, I was not sure of the correct meaning of that setting or what the format was for the string to use.
I could not find reference to it in the wiki. See the second part of the original post.
I have tried this in the GUI, was not sure if HTTPS and or semi colon is required on the end.

http://username:password@192.168.0.1:3129

I am beginning to think though that even though my account is correct along with the address and port, the proxy is refusing connections. In the logs in Proxmox it says authentication required. I can ping and resolve addresses. I wonder if the machine needs to be a member of the corporate domain or even a member of a GPO setting.

I will continue to test but it looks like Proxmox is configure correctly so its likely to be an external related problem.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!