Double Rewards

Rotating IPs:Buy 50GB, get 10GB free

Static IPs:Get 7 extra days for every 30 days purchased, plus 500MB per order

Buy Now >

Security AlertA fraudulent phishing site ( rola-ip.com) is impersonating our previous official website. ROLA IP's only official website is rola-ip.co (make sure it uses the .co domain suffix). To protect your funds, do not make payments on any other domain!

How to Make Residential Proxies: DIY Setup Guide and Limits

Marcus Bennett

Dec 2, 2026 · Guides · 13 min read

This guide covers the small, private version: one controlled home connection, one proxy host, one authenticated client, and one test target. It does not describe how to build a commercial residential proxy network from other people’s devices, which involves consent, node enrollment, routing control, abuse handling, and provider terms.

Quick answer: can software generate a residential IP?

No. A script can generate a proxy configuration, rotate an existing pool, or start a listening service, but it cannot turn a cloud VPS address into a residential allocation. When a proxy sends traffic directly through a VPS’s own hosting address, the destination generally sees a datacenter or hosting exit. Installing different proxy software does not turn that address into a residential allocation. A VPS can also relay traffic through a home connection; in that design, the final home egress determines the address seen by the destination. IP classification can vary across databases and over time.

To make your own residential proxy, you need all of the following:

  • A home broadband connection assigned by an ISP.
  • Permission from the connection owner and compliance with the ISP’s terms.
  • A host device on that network, such as a mini PC or Raspberry Pi.
  • Squid proxy software, authentication, firewall rules, and an encrypted access path.
  • A verification method that compares the home IPv4, direct client IPv4, and proxied exit IPv4.

If your goal is to route requests through residential exits across multiple countries, states, or cities without maintaining home hardware, a managed network is the direct path. Rola IP’s residential proxy network operates on real home broadband connections and issues ready-to-use host, port, username, and password credentials. As detailed in the Rola IP residential proxy documentation, you can control country, state, city, sticky session, and per-request rotation directly through connection parameters.

Prerequisites: software, versions, and network parameters

The steps below target Ubuntu Server 24.04 LTS or Debian 12 on an always-on host using the distribution’s Squid package and OpenSSH server.

Component Recommended choice Role in the setup
Host Mini PC, Raspberry Pi, or spare computer Stays on the home LAN and runs continuously
Operating system Ubuntu Server 24.04 LTS or Debian 12 Standard Linux environment with systemd and UFW
HTTP/HTTPS proxy Squid (distribution package) Mature ACL and HTTP CONNECT controls
Remote transport OpenSSH server (openssh-server) Encrypts traffic and forwards the proxy port over SSH
Local host IP Example: 192.168.1.50 Stable LAN destination for router port forwarding
Public endpoint ISP public IP or a DDNS hostname Address the remote client connects to
Listening port Example: 54321 Bound to 127.0.0.1 in SSH-tunnel mode
Authentication Squid NCSA credentials + SSH key login Prevents open-proxy abuse and secures remote access
Test target https://api.ipify.org or an endpoint you control Verifies IPv4 egress safely

If your client specifically requires a SOCKS5 endpoint rather than HTTP CONNECT, you can use SSH’s built-in dynamic forwarding (ssh -D) over the same SSH setup or evaluate a dedicated SOCKS5 server such as 3proxy as a separate deployment. This walkthrough focuses on Squid for HTTP/HTTPS proxying.

Step 1: give the proxy host a stable LAN address

Create a DHCP reservation in your router for the host’s MAC address, or assign a static IPv4 address through the operating system. A DHCP reservation keeps the router as the single source of truth.

For this guide, assign the proxy host 192.168.1.50. Confirm that no other device uses this address and that the host has direct internet connectivity.

Do not expose the router’s or host’s web administration interface to the internet. Only expose the inbound port required by your chosen remote-access method.

Step 2: install Squid and create credentials

On Ubuntu or Debian, install Squid, the NCSA password utility, UFW, and OpenSSH server, then create the proxy user:

sudo apt update
sudo apt install squid apache2-utils ufw openssh-server -y
sudo htpasswd -c /etc/squid/passwd proxyuser

squid-installation

Enter the password interactively so it is not stored in shell history. Set ownership and permissions so the proxy service user can read the password file without making it world-readable:

sudo chown root:proxy /etc/squid/passwd
sudo chmod 640 /etc/squid/passwd
squid -v | head -n 1

Choose your remote-access architecture before writing ACLs

How you connect from your remote client determines what source IP Squid sees, how you bind http_port, and which port you open on your router and firewall:

Setting SSH-tunnel mode (Recommended) Direct source-restricted mode
Traffic encryption Encrypted inside SSH Unencrypted HTTP proxy hop
Squid http_port 127.0.0.1:54321 54321 (all interfaces)
Source IP seen by Squid 127.0.0.1/32 (loopback) YOUR_CLIENT_PUBLIC_IP/32
Router port forward External SSH port → 192.168.1.50:22 54321 → 192.168.1.50:54321
UFW inbound rule Allow SSH from YOUR_ADMIN_IP Allow 54321/tcp from YOUR_CLIENT_PUBLIC_IP/32
Proxy password check Enforced via tunnel_source + authenticated Enforced via trusted_client + authenticated

Important: In SSH-tunnel mode, Squid receives connections from 127.0.0.1, not from your remote client’s public IP. Default distribution configs in /etc/squid/squid.conf often include http_port 3128 and http_access allow localhost. Leaving http_access allow localhost active allows any tunneled request to bypass Squid’s password prompt, while leaving http_port 3128 active leaves a second listener open.

Configure Squid cleanly for your chosen mode

First, inspect /etc/squid/squid.conf for active http_port, include, localhost, localnet, and http_access deny all lines:

sudo grep -nE 'http_port|include|allow localhost|allow localnet|http_access deny all' \
  /etc/squid/squid.conf

In /etc/squid/squid.conf:

  1. Comment out the default http_port 3128 line so port 54321 is your only Squid listener.
  2. Disable any ordinary http_access allow localhost, http_access allow localnet, or other broad allow rule that would permit proxy traffic outside the authentication policy shown here. Check included configuration files as well as squid.conf, while keeping the necessary Safe_ports, CONNECT, and cache-manager protection rules intact.
  3. Confirm that include /etc/squid/conf.d/*.conf (or /etc/squid/conf.d/*) appears above http_access deny all.

Create the custom configuration file:

sudoedit /etc/squid/conf.d/20-private-residential-proxy.conf

Install exactly one of the following mode-specific configuration blocks, and keep the final http_access deny all after the custom access rules:

Option A: SSH-tunnel mode configuration (Recommended)

Use this block when connecting through an SSH tunnel. It binds Squid strictly to loopback and requires both loopback origin and valid proxy credentials:

http_port 127.0.0.1:54321

auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic realm Private residential proxy
acl authenticated proxy_auth REQUIRED
acl tunnel_source src 127.0.0.1/32

http_access allow tunnel_source authenticated

Option B: Direct source-restricted mode configuration

This mode uses an unencrypted HTTP proxy hop. A source-IP restriction does not encrypt Basic proxy credentials or ordinary HTTP traffic. Prefer the SSH mode for remote access over the public internet; do not treat a fixed client IP as a substitute for an encrypted transport.

http_port 54321

auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic realm Private residential proxy
acl authenticated proxy_auth REQUIRED
acl trusted_client src YOUR_CLIENT_PUBLIC_IP/32

http_access allow trusted_client authenticated

Leave http_access deny all as the final rule at the bottom of /etc/squid/squid.conf. Any request that does not match your explicit allow rule above it is denied.

squid-config-deny-all

Validate, restart, and verify the listening socket

systemctl enable --now squid only starts a stopped service; it does not reload a Squid instance that was already started during package installation. Always parse the configuration, restart Squid explicitly, and verify the listening sockets:

sudo squid -k parse && sudo systemctl restart squid
sudo systemctl enable squid
sudo systemctl status squid --no-pager
sudo ss -lntp

Confirm in the full ss -lntp output that Squid listens only on your configured port (127.0.0.1:54321 in SSH-tunnel mode) and that no unintended 3128 listener remains active. If squid -k parse reports an error, fix the syntax before restarting. If your distribution places basic_ncsa_auth in another directory, locate it with dpkg -L squid | grep basic_ncsa_auth and update auth_param.

To inspect service or proxy errors, check the journal and cache log:

sudo journalctl -u squid -n 50 --no-pager
sudo tail -n 50 /var/log/squid/cache.log

squid-service-status

Step 3: lock down access and establish the SSH tunnel

Before enabling UFW, add an allow rule for your administrator IP so you do not lock yourself out. If you manage the host over your home LAN, use your LAN IP or subnet (for example, 192.168.1.0/24); if you manage it remotely, use your fixed public IPv4 address.

For SSH-tunnel mode (Recommended):

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow from YOUR_ADMIN_IP to any port 22 proto tcp
sudo ufw enable
sudo ufw status verbose

Port 54321 stays closed in UFW and unforwarded on your router because Squid listens only on 127.0.0.1:54321.

For Direct source-restricted mode:

Add the proxy port rule alongside your SSH rule:

sudo ufw allow from YOUR_CLIENT_PUBLIC_IP/32 to any port 54321 proto tcp
sudo ufw reload
sudo ufw status verbose

ufw-firewall-rule

Configure SSH prerequisites and open the tunnel

Ensure your proxyadmin account on the home host has SSH key-based authentication working before disabling password or root logins in /etc/ssh/sshd_config, and confirm AllowTcpForwarding yes is active. Keep your current SSH session open while validating and reloading the SSH daemon, then test a new connection before closing the session:

sudo sshd -t && sudo systemctl reload ssh

On your home router, forward your chosen external SSH port (YOUR_EXTERNAL_SSH_PORT, such as 22 or a custom high port) to 192.168.1.50:22. Disable UPnP port mappings for this host.

From your external client, open the encrypted tunnel binding explicitly to 127.0.0.1:3128:

ssh -N -o ExitOnForwardFailure=yes \
  -L 127.0.0.1:3128:127.0.0.1:54321 \
  -p YOUR_EXTERNAL_SSH_PORT proxyadmin@HOME_DDNS_NAME

ExitOnForwardFailure=yes ensures SSH exits immediately if local port 3128 cannot be bound. Keep this terminal session open while routing proxy requests through 127.0.0.1:3128.

Watch for upstream NAT and dynamic residential IPs

If your router’s WAN IPv4 differs from the public IPv4 reported by an external check, investigate upstream NAT and routing before configuring port forwarding. A second router, an active VPN, or ISP CGNAT can produce this mismatch. A WAN address in 100.64.0.0/10 is a clue to shared address space used for CGN (see RFC 6598 on shared address space), so confirm your topology and ask your ISP whether inbound IPv4 connections are supported. If you control both routers, configure both forwarding layers or an appropriate bridge mode. For ordinary inbound port forwarding, you need a publicly routable IPv4 with inbound access; it can be dynamic and tracked with DDNS, and a fixed or dedicated address is not always necessary.

Step 4: verify the exit IPv4 and authentication

Test from a client outside your home network (such as a laptop on a mobile hotspot), using an endpoint you are authorized to access. Run these commands in a bash shell on Linux or macOS using curl and OpenSSH. Pin all three checks to IPv4 (-4) and the same HTTPS endpoint so dual-stack IPv6 routing or pre-existing proxy environment variables do not skew the comparison.

First, record the home connection’s public IPv4 on the proxy host:

HOME_IP=$(curl -4 --noproxy '*' --fail --silent --show-error \
  --max-time 20 https://api.ipify.org) || exit 1
printf 'Home public IPv4: %s\n' "$HOME_IP"

Next, run the direct and proxied checks on the external client (using 127.0.0.1:3128 for SSH-tunnel mode, or HOME_DDNS_NAME:54321 for direct mode). Passing --proxy-user "$PROXY_USER" without a password prompts curl to ask for the password interactively:

export PROXY_HOST='127.0.0.1'
export PROXY_PORT='3128'
export PROXY_USER='proxyuser'

DIRECT_IP=$(curl -4 --noproxy '*' --fail --silent --show-error \
  --max-time 20 https://api.ipify.org) || exit 1

PROXY_IP=$(curl -4 --noproxy '' --fail --silent --show-error \
  --max-time 20 --proxy "http://${PROXY_HOST}:${PROXY_PORT}" \
  --proxy-user "$PROXY_USER" https://api.ipify.org) || exit 1

printf 'Direct client IPv4: %s\n' "$DIRECT_IP"
printf 'Proxied exit IPv4:  %s\n' "$PROXY_IP"

Compare PROXY_IP against the HOME_IP recorded earlier:

  • PROXY_IP must match HOME_IP and differ from DIRECT_IP.
  • Negative authentication check: Run the same curl command without --proxy-user or with an incorrect password. Squid must return 407 Proxy Authentication Required. If it succeeds without a password in SSH-tunnel mode, remove http_access allow localhost from /etc/squid/squid.conf and restart Squid.

ip-verification-callout

For managed workflows, Rola IP’s proxy quick-start documentation follows the same verification principle: connect with your generated endpoint and credentials, then confirm that the returned exit IP matches your target location.

Common errors and what to check

Symptom Likely cause Next check
Connection timed out Router port forward missing, upstream NAT, or UFW drop Compare router WAN IP with public IP; check UFW rules and router port mapping
Connection refused Squid is stopped or SSH tunnel is not running Run systemctl status squid, ss -lntp, and check your active SSH tunnel terminal
Squid is active, but port 54321 is not listening Edited config was not reloaded, or include path missed Run sudo squid -k parse && sudo systemctl restart squid, check include in squid.conf, and inspect ss -lntp
Squid returns 403 or logs TCP_DENIED Source IP or destination port failed ACL rules Check ACL rule order, Safe_ports/CONNECT rules, and ensure SSH-tunnel mode uses 127.0.0.1/32
407 Proxy Authentication Required Wrong credentials, password helper path, or file permissions Verify /etc/squid/passwd permissions (640, root:proxy), the helper path, and Squid logs; the proxy authentication troubleshooting guide explains how to distinguish credential failures from other proxy errors
Direct and proxied IPs are identical Client is on the same home LAN or NO_PROXY bypassed the proxy Test from an external network and use --noproxy '' on the proxied curl command
Stops working after reboot Dynamic ISP IP changed, service not enabled, or LAN IP shifted Enable DHCP reservation, systemctl enable squid, and configure DDNS

DIY residential proxy versus a managed network (Rola IP)

A single DIY home proxy works well for a private development lab, localized app previews, or network diagnostics from your own connection. However, a single residential line cannot provide multi-country targeting, IP rotation, high upload concurrency, or multi-carrier coverage.

Factor DIY home proxy Rola IP managed residential network
IP source & pool Single ISP connection you own Real home broadband IPs across global locations
Geo-targeting Fixed to your home city/ISP Country, state, and city targeting parameters
Session & rotation Static until your ISP rotates it Automatic per-request rotation or sticky sessions
Cost & billing Hardware purchase, electricity, home broadband, and maintenance time Usage-based or plan-based billing; refer to current Rola IP plans for applicable pricing units
Reliability & scale Limited by home upload speed, power outages, and upstream NAT Provider-managed proxy infrastructure; no maintenance of your own home proxy host

When your project outgrows a single home line, choose a managed proxy product based on the exit type, location requirements, and session duration your application needs:

  • Rotating residential IPs: Use Rola IP’s residential proxy network for country, state, or city targeting and supported session controls. The sticky vs rotating proxies guide explains which session mode fits a workflow, while the residential proxy setup guide covers client configuration.
  • Persistent sessions: Evaluate static residential proxies when a workflow requires keeping one consistent residential IP address for long-lived logins or allowlisted integrations.
  • Carrier-grade routing: Choose mobile proxies when your workload specifically requires mobile-carrier network exits rather than home broadband.

Whatever route you choose, use residential proxies only for authorized access, and respect target rate limits, robots rules, and terms of service.

Need residential IPs in multiple regions without maintaining your own home proxy? Open the Rola IP console to choose a location and configure a managed connection.


Get Multi-Region Residential IPs

FAQs