Proxmox proxy problems

DJohneys

New Member
Jun 17, 2025
2
0
1
Hi,
My proxmox host accesses the internet via a proxy server. Updates work fine, so it's working, but I have a couple of issues.

1. Command line wget, curl, apt don't work on the shell. I can set the environment variables manually, but is there a way to do this so that they persist?

2. Lets Encrypt certificate renewal is failing. I set this up with direct internet access and it worked fine, but now it's behind a proxy the scripts fail. Is there a way to fix this without having to modify the scripts? I am concerned that changes may be lost at some point if the files are ever updated.

Thanks,
D.
 
Hi @DJohneys , welcome to the forum.

1. Command line wget, curl, apt don't work on the shell. I can set the environment variables manually, but is there a way to do this so that they persist?
This is not PVE specific but rather standard Linux admistration. There are many ways to do what you want:

Code:
echo 'export http_proxy="http://proxy.example.com:8080"' >> ~/.bashrc
echo 'export https_proxy="http://proxy.example.com:8080"' >> ~/.bashrc
echo 'export ftp_proxy="http://proxy.example.com:8080"' >> ~/.bashrc
echo 'export no_proxy="localhost,127.0.0.1,.yourdomain.com"' >> ~/.bashrc

At app level:
wget ~/.wgetrc
curl ~/.curlrc

Etc,


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
  • Like
Reactions: UdoB
Hi @DJohneys , welcome to the forum.


This is not PVE specific but rather standard Linux admistration. There are many ways to do what you want:

Code:
echo 'export http_proxy="http://proxy.example.com:8080"' >> ~/.bashrc
echo 'export https_proxy="http://proxy.example.com:8080"' >> ~/.bashrc
echo 'export ftp_proxy="http://proxy.example.com:8080"' >> ~/.bashrc
echo 'export no_proxy="localhost,127.0.0.1,.yourdomain.com"' >> ~/.bashrc

At app level:
wget ~/.wgetrc
curl ~/.curlrc

Etc,


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Thankyou, I wasn't sure if there was a 'proper' way to do this with Proxmox.

That's sorted curl, wget etc on the shell, but not the ACME script for cert renewal.

I'm guessing that modifying the scripts is my only option on that.

Thanks again,
D.