Proxy IP Allowlist vs Username and Password

Proxy authentication depends on the client making the connection. When you test from a browser, a CI runner or an online tool, the proxy may see a different source address or receive a different set of credentials.

Technician holding an access card beside a server rack and two blue network cables

Choose how the proxy identifies your client

With IP allowlisting, the proxy accepts connections from approved source addresses. The address that matters is the public source the proxy sees when your client connects to its gateway. A laptop’s private address or the proxy’s advertised exit IP describes a different point in the route. An allowlist fits a workload that reaches the gateway from a stable, known address.

With username and password authentication, the client presents credentials to the proxy. This can suit callers whose public IP changes, such as a hosted build runner, if the provider permits that setup. Check the product’s authentication options and the protocol on the specific endpoint. Providers can offer different methods on HTTP and SOCKS5 endpoints, and some deployments apply additional account or network rules. An example of product-specific allowlist rules.

Think about who shares the public source address. Several clients behind the same NAT may appear to come from one IP, so an address rule identifies that network exit. Per-workload credentials, where supported, give you a way to revoke one job’s access separately. For a stable egress IP assigned to a single deployment, keep a record of which service uses it and update its allowlist when that service moves.

Find the source IP of the client that actually connects

Run a direct public IP check from the same machine and network where the proxy connection will originate. On a network that permits a direct request to this endpoint, the command below returns the address observed by TestMyProxies in its ip field. On Windows, run curl.exe when your shell uses curl for a different command.

curl --disable --noproxy "*" --fail --silent --show-error --max-time 15 "https://testmyproxies.com/api/my-ip"

Treat that value as a baseline for the route to the lookup. A VPN, policy-based routing or different IPv4 and IPv6 routes can make the source that reaches the gateway differ. The proxy’s connection logs, or the source IP recorded by your provider for that attempt, are the best way to confirm what to authorize. Record the time and the specific gateway when asking support to look it up. Check the address family of a proxy connection.

  • Browser. Check the browser’s approved network path. A computer can have a private local address while your router or company gateway presents a public address to the proxy.
  • Server or CI runner. Run the check inside the job or workload environment. It may use a shared NAT address or a different outbound route from your workstation. When workers have changing or shared addresses, confirm whether the provider supports credentials or whether your deployment can use a dedicated egress address.
  • Hosted TestMyProxies check. The test request is made by the hosted tester after you submit it. Look for its currently documented allowlist address in the tester’s help. If your provider permits hosted checks, authorize that address for the account or endpoint you are testing, following your access policy. TestMyProxies proxy tester and format help.

For example, suppose your laptop reaches the proxy from 192.0.2.24 while a hosted job reaches it from 198.51.100.18. An allowlist containing only the first address can explain why the same proxy works locally and fails in the job. Connect attempts and credentials should be checked independently for each environment. These addresses are documentation examples. Compare host and container proxy behavior.

Test each configured authentication method

For an IP-authorized endpoint, test without a credential option from the approved client. Replace the example hostname and port with your provider’s authorized endpoint and use the exact proxy scheme they supplied. These examples use an HTTP-family proxy and an HTTPS destination. On success, the JSON field is the exit IP observed by the destination. Compare it with the exit your provider expects. The allowlist still refers to the source used by your client on its connection to the gateway. Check HTTP and SOCKS5 proxies with cURL.

curl --disable --noproxy "localhost" --proxy "http://gateway.example:8080" --fail --silent --show-error --max-time 15 --write-out "\nconnect=%{http_connect}\n" "https://testmyproxies.com/api/my-ip"

For username and password authentication, supply the credentials using your client’s approved secret mechanism. In cURL, a private config file can hold the proxy-user option outside the command line. Create it with access limited to the intended user, through your secret store if available, and keep it outside shared workspaces and logs. A placeholder config line and its corresponding command are shown below. This second example assumes the gateway supports TLS on its proxy listener.

proxy-user = "example-user:replace-with-password"
curl --disable --config "proxy-auth.conf" --noproxy "localhost" --proxy "https://secure-gateway.example:8443" --fail --silent --show-error --max-time 15 --write-out "\nconnect=%{http_connect}\n" "https://testmyproxies.com/api/my-ip"

The HTTPS proxy scheme describes the link to the proxy. The destination URL still controls the protocol to the site. On an ordinary HTTP proxy or a basic SOCKS5 username and password exchange, destination TLS by itself does not protect the proxy credentials sent earlier. Use the transport and method approved for your deployment. Keep credential values out of screenshots and traces when sharing a failed test. cURL config file format. Proxy protocols and TLS.

Troubleshoot an authentication failure in the right place

Look at the connect line in these cURL examples. A 200 there means the proxy accepted the tunnel. A 407 identifies an authentication challenge even if cURL only prints a generic HTTP error. If cURL shows connect=000, it could not report a CONNECT status. Check its accompanying message for DNS, connection or TLS errors. cURL’s CONNECT status field.

An HTTP 407 response during an HTTP proxy tunnel is an authentication challenge from the proxy. Check the scheme, gateway, account, credentials and any source IP rule the provider enforces. With SOCKS5, the client can instead report that the authentication method is unsupported or that the user was rejected. An IP-based denial can appear as a connection refusal, timeout or protocol-specific policy response, depending on how the operator enforces it. The exact message and timestamps help distinguish a rejected login from a connection that never reached authentication. HTTP 407 Proxy Authentication Required. Format credentials and addresses for the online tester.

All proxy testing guides · Open the proxy tester