Update system using VPN

I’m using a VPN on my mobile phone using HttpCustom, then I share the internet with my laptop using PDANet with a wifi hotspot and exporting the proxy in my terminal:

export http_proxy=
export https_proxy=

wget --spider https://codingflyboy.mm.fcix.net

Spider mode enabled. Check if remote file exists.
--2023-09-22 16:10:27--  https://codingflyboy.mm.fcix.net/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Connecting to connected.
Proxy request sent, awaiting response... 200 OK
Length: 4554 (4.4K) [text/html]
Remote file exists and could contain further links,
but recursion is disabled -- not retrieving.

However, when I try to update:
sudo pacman -Syu

:: Synchronizing package databases...
 core.db failed to download
error: failed retrieving file 'core.db' from codingflyboy.mm.fcix.net : Could not resolve host: codingflyboy.mm.fcix.net
warning: too many errors from codingflyboy.mm.fcix.net, skipping for the remainder of this transaction
error: failed to synchronize all databases (invalid url for server)

Hello @jjbenitez :wink:

Don’t know how HttpCustom or PDANet works, but if you just want to proxy everything to a specifc IP:Port then use a PAC file in NetworkManager.


function FindProxyForURL(url, host) {
    // Direct connection for local addresses
    if (isPlainHostName(host) ||
        shExpMatch(host, "*.local") ||
        isInNet(dnsResolve(host), "", "") ||
        isInNet(dnsResolve(host), "", "") ||
        isInNet(dnsResolve(host), "", "") ||
        isInNet(dnsResolve(host), "", "")) {
        return "DIRECT";

    // Proxy all other traffic through
    return "PROXY";

OR everything without exceptions:

function FindProxyForURL(url, host) {
  // Redirect all traffic through the proxy server at
  return "PROXY";

Save it as filename.pac somewhere in your home folder and set it in the NetworkManager (nm-connection-editor) at the proxy section. Restart the NetworkManager.