4G Proxy Farm Setup: Hardware, Power and Software

Plan a 4g proxy farm with hardware, USB hub power math, SIM data, cooling and software for a reliable 10, 20 or 50-dongle setup, with testing steps.
Four 4G dongles connect through a powered USB hub and Raspberry Pi to cloud routing and a globe.

A 4g proxy farm turns several 4G USB dongles and their SIM cards into separately managed mobile proxy exits. The reliable way to build one is to plan power, data, cooling, identity and reachability together, then prove one complete proxy before adding dozens of devices.

What a 4G proxy farm is (and is not)

A farm is a collection of independent cellular connections managed from one Linux box or a small group of boxes. Each dongle has its own SIM, mobile session and exit path. Your clients or authorised automation connect to a public proxy endpoint, while the farm box maintains an outbound connection to the routing layer.

The useful mental model is:

client → public proxy endpoint → cloud router → Linux box → HiLink dongle → mobile network

That is different from renting mobile IPs from a proxy marketplace. You provide the hardware, SIMs and mobile data plans. The software layer manages the connections and exposes them for your own work, client work or a proxy-reselling operation.

It is also different from plugging many sticks into a Raspberry Pi and running an open proxy. A USB host has limited power, a carrier may place the SIM behind CGNAT, and an unauthenticated public proxy is an abuse and security problem. Treat the farm as infrastructure: inventory each device, restrict access, set limits and follow the carrier and destination service terms.

What you need

Start with the reference layout below. The Raspberry Pi is a tested platform, but the same design can run on another supported Linux box with enough USB connectivity and power.

ComponentStarting choiceWhat to check
4G USB dongleHuawei E3372 HiLink, or a similar Huawei HiLink modelIt should expose a usable network interface and local management page on your Linux host.
SIM cardOne activated SIM per dongleConfirm modem use, data allowance, APN requirements and carrier terms.
Linux hostRaspberry Pi with Ethernet or Wi-FiUse a current supported Linux image and a stable power supply.
USB hubExternally powered hub sized for the fleetThe hub, not the Pi’s USB ports, should provide the dongle power.
CablingShort, labelled USB cables or adaptersLeave space between dongles and avoid sharply bent cables.
SoftwareProxy routing, authentication and monitoringYou need public reachability without relying on an inbound port at the farm.

For a first build, buy or prepare one dongle and one SIM. A single working path tells you more than an untested box of 20 sticks. Once the first device can reach the internet, expose an authenticated proxy and rotate it successfully, you can repeat the layout.

If you want the complete single-proxy walkthrough first, use ProxyKite’s guide to building your own mobile proxy. This farm guide extends that pattern to repeatable groups of dongles.

The Raspberry Pi USB documentation explains why a self-powered hub is appropriate for higher-power peripherals. Raspberry Pi’s computer documentation also says that modems can require more current than the board should supply directly, and recommends an externally powered hub when the peripheral load exceeds the board’s USB capability.

Step 1: Plan your SIM and data mix

Why this matters: a proxy farm is limited by the SIM plans and radio conditions behind it, not only by the number of USB ports.

For each planned dongle, record the following before installation:

  1. SIM identifier and the legal account holder.
  2. Carrier and APN settings.
  3. Monthly data allowance and any speed or tethering conditions.
  4. Intended geography and legitimate workload.
  5. A label that connects the SIM to one physical dongle and one USB port.

Use SIMs in a way permitted by the carrier and local rules. Do not build your capacity estimate from an advertised speed number. Price monitoring, ad verification, social-media work for accounts you manage and QA can have very different traffic patterns. Begin with a small measurement period, then set per-dongle daily, weekly or monthly limits in the control panel.

If the SIM requires a custom APN, write that value on the inventory sheet rather than relying on memory. Keep the SIM and dongle pairing stable while testing. Changing several variables at once makes a mobile connection problem difficult to isolate.

Step 2: Lay out hardware for 10, 20 and 50 dongles

Why this matters: the physical layout determines how much power, cooling, cable length and troubleshooting time you need.

Use this as a planning map, not as a shopping list for a particular brand of hub:

Farm sizeLinux boxesDonglesUSB layoutOperations to plan
Pilot11–10One externally powered hub, with spare portsProve one dongle, then add devices one at a time.
Small farm1 or 211–20Split across hubs or boxes so one power fault does not affect the entire setKeep a port map and test each proxy separately.
Larger farmMultiple21–50Several powered hubs and a deliberate box-to-hub layoutPlan inventory, remote access, alerts, spare cables and a second box before the first is full.

For 10 dongles, a single box can be a sensible starting shape if its USB host, hub and power arrangement are sized correctly. At 20, separate the fleet into logical groups, such as ports 1–10 and 11–20, even if the software sees them from one box. At 50, treat each box as a repeatable cell rather than one giant tangle.

Give every device a stable name such as farm-a-01 in your own inventory. Record the dongle serial or identifying detail, SIM label, hub port, Linux interface and proxy ID. This is more useful than a shelf full of visually identical sticks.

ProxyKite’s public flow from owned 4G hardware to managed proxy access.
ProxyKite’s public flow from owned 4G hardware to managed proxy access.

Step 3: Size power and choose hubs

Why this matters: a hub that works with one idle dongle may fail when several devices register on the network or transmit at the same time.

Do not assume one universal amperage for every E3372 variant. Read the rating of the exact dongle and hub you have, then measure a representative device if possible. Use this calculation:

dongle load = number of dongles × rated or measured current per dongle
total supply = dongle load + hub conversion loss + Linux box and network load

For a worked example only, if your measured planning value is 1 A per dongle at 5 V:

FleetDongle-only planning currentDongle-only power at 5 V
1010 A50 W
2020 A100 W
5050 A250 W

Replace the 1 A example with your own measured or manufacturer-listed value. The table deliberately excludes the hub’s losses, the Pi, the network equipment and operating margin. Size the supply above the calculated load, and verify that the hub can deliver power to all of its downstream ports at the same time.

Use a powered hub for more than one dongle. Avoid stacking several bus-powered hubs and hoping the Pi will absorb the difference. The official Raspberry Pi USB hub documentation describes 900 mA at 5 V as the bus-powered budget shared across four downstream ports, while an externally powered hub can supply more; the exact hub specification still controls your design.

For a closer look at hub selection and failure points, see the guide to a powered USB hub for 4G dongles.

Bring devices online in stages:

  1. Connect one dongle and confirm that Linux sees it.
  2. Add a second and watch the host, hub and dongle status.
  3. Continue in small groups, checking for voltage drop, unexpected resets or a device that disappears under load.
  4. Stop and resize the power arrangement if the group is not stable.

Success means each connected device remains visible while the others register and pass traffic. A larger power supply is not a substitute for a hub with a suitable per-port and total output rating.

Step 4: Prepare cooling, labels and cable management

Why this matters: heat and physical confusion turn normal maintenance into a farm-wide failure risk.

Keep dongles separated enough for air to move around them. Do not cover ventilation openings, press hot devices against one another or bundle all the cables over the Pi’s airflow path. A small fan or ventilated enclosure may be appropriate for a dense layout; choose it based on the actual room temperature and device temperatures.

Label three places:

  • the dongle body or cable;
  • the hub port; and
  • the inventory record or dashboard name.

Use the same identifier in all three places. For example, a07 should identify one SIM, one E3372, one physical port and one proxy record. Keep enough slack to remove a dongle without pulling neighbouring devices. Take a photo of each finished hub before closing the rack or shelf.

The success check is simple: you can remove and replace one known device without guessing which SIM, cable or dashboard entry belongs to it.

Step 5: Install routing software and solve reachability

Why this matters: the Linux box can browse through a mobile connection even when clients cannot reach a proxy listening on the box.

First connect one HiLink dongle directly to the Linux host. On the box, check USB discovery, network interfaces and the default route:

lsusb
ip addr
ip route
curl -sS https://api.ipify.org && printf '\n'

Open the HiLink management page from the local host or an allowed machine. Many E3372 HiLink installations use http://192.168.8.1; confirm the address for your model rather than assuming it. The page should show a registered SIM and an active data session.

If the device appears as storage instead of a network interface, Linux may need the usb-modeswitch and usb-modeswitch-data packages. USB_ModeSwitch documents the common storage-to-modem transition and the device database in its official Linux guide. Reconnect the device after installing the distribution packages, then check lsusb and ip addr again.

Next install the software layer on the Linux box. ProxyKite’s reference install shape is:

curl -fsSL https://proxykite.com/install.sh | sudo bash -s -- \
  --key XXXX-XXXX-XXXX-XXXX

Use the key supplied for your account and follow the getting-started documentation for the current panel flow. The box makes an outbound connection to the cloud router. It does not need a static IP or an open inbound port, so the design can work when the mobile carrier uses CGNAT.

Success looks like the box and dongle appearing in the panel, with a public proxy endpoint assigned to the correct device. Test the first device before adding the hub.

Step 6: Add rotation, authentication and controls

Why this matters: a farm is useful when each proxy can be operated independently, not merely when all the dongles are online.

For each proxy, configure:

  • HTTP and SOCKS5 access, using shared or separate ports as your workflow needs;
  • username-and-password authentication or an IP whitelist;
  • an on-demand rotation action, a rotation link or a timer from 60 seconds to 7 days;
  • sticky behaviour when a session needs to stay on one IP;
  • daily, weekly or monthly bandwidth limits;
  • website allow and block rules; and
  • alerts or webhooks for the events you need to act on.

ProxyKite returns the old and new IP values after a rotation completes. Treat a rotation link like a credential. Store it outside public code and use the rotation-links guide when wiring a scheduler or application.

Export the connection in the format your client expects. Common exports include host:port:user:pass, user:pass@host:port, CSV, HTTP URLs and SOCKS5 URLs. The proxy formats guide covers the differences.

Sub-users, white-label controls, the REST API, SIM inbox for carrier messages, live traffic insights, webhooks and Telegram alerts are useful once the farm serves a team or resale customers. Give each customer only the proxies, quota and expiry they need.

Step 7: Verify one proxy before scaling

Why this matters: repeating an untested layout 50 times multiplies the original mistake.

Run the following sequence on one dongle:

  1. Confirm the SIM is registered and the HiLink page reports data service.
  2. Confirm Linux sees the dongle and its route.
  3. Confirm the panel associates the correct device with the correct proxy.
  4. Export credentials and test HTTP from a separate machine or network.
  5. Test SOCKS5 with DNS routed through the proxy.
  6. Rotate the proxy once, wait for the result, and test again.
  7. Apply a bandwidth limit and confirm that the dashboard records traffic.

Example tests:

export HTTP_PROXY_URL='http://user:password@proxy-host:30007'
export SOCKS_PROXY_URL='socks5h://user:password@proxy-host:30007'

curl -x "$HTTP_PROXY_URL" https://api.ipify.org
printf '\n'
curl -x "$SOCKS_PROXY_URL" https://api.ipify.org
printf '\n'

Do not put real credentials in a public shell history, issue or tutorial. socks5h asks curl to resolve the destination hostname through the SOCKS proxy, which makes it a useful check for the intended path.

When this one-device checklist passes, add the next dongle and repeat it. A green host does not prove that every SIM, port, route and credential is correct.

Step 8: Calculate monthly running cost per dongle

Why this matters: the recurring software cost is easy to model, while SIM data and hardware costs vary by country and workload.

Separate your budget into three lines:

Cost lineHow to calculate it
HardwareDongles, hubs, cables, Linux boxes, power supplies and cooling, amortised over the period you choose.
SIM and dataYour carrier plan for each SIM, including any taxes, limits or add-ons.
Routing softwareActive-dongle licences and any volume arrangement for a larger fleet.

ProxyKite’s licence is $9 per dongle /month, USD, billed monthly by Paddle (taxes added at checkout); only active dongles billed; no per-GB charges; 14-day money-back. That means 10 active dongles produce a software line of 10 × $9 = $90 per month, before your SIM plans and checkout taxes. For 50 or more dongles, ask about volume pricing through Contact ProxyKite.

For a deeper hardware-and-operations budget, see the related 4G proxy farm cost guide.

The traffic is carried by your own SIM data plans. The licence is not a replacement for those plans and does not include SIMs, dongles, IPs, data plans or bandwidth.

The pricing view shows the flat per-dongle software model.
The pricing view shows the flat per-dongle software model.

When to add a second box

Add another Linux box when the next group would make the power, USB, heat or troubleshooting boundary unclear. A second box also gives you a clean operational unit: one host, its hubs, a known device count and a repeatable checklist.

Before moving from one box to two, document:

  • the exact Linux image and installer version;
  • hub model, power rating and port map;
  • each dongle’s label, SIM and interface;
  • the proxy naming convention;
  • authentication and quota defaults; and
  • the test commands and expected results.

For 20 or 50 dongles, keep the groups intentionally boring. If box-a and box-b have the same layout, a failed device is easier to replace and a new operator can follow the same runbook.

Common mistakes

Plugging the fleet directly into the Pi

The Pi’s USB output is limited. Use externally powered hubs and check the total and per-port ratings. The official Raspberry Pi guidance is a good reference when deciding where the power boundary should sit.

Treating a mobile IP as an inbound server address

The dongle can have outbound internet access while the carrier blocks unsolicited inbound connections with CGNAT. Use the outbound cloud-router design or another properly secured reverse connection.

Buying SIMs before defining the workload

A data plan that suits light QA may not suit a scraper or ad-verification schedule. Measure usage, set limits and keep the intended workload within the carrier’s terms.

Skipping the inventory map

Without a SIM-to-port-to-proxy record, replacing one stick can put the wrong mobile connection behind a customer endpoint. Label the hardware before the farm grows.

Scaling before the first rotation test

Verify authentication, HTTP, SOCKS5, rotation and traffic reporting with one device. Then add capacity in small batches.

FAQ

How many dongles can one Raspberry Pi run?

There is no safe universal number. The limit depends on the Pi model, powered hub, total USB load, cabling, Linux setup and the traffic pattern. Start with one, validate the complete path and add devices only while the power and monitoring checks remain clean.

Do I need a static IP for a 4G proxy farm?

No. The reference design uses an outbound connection from the Linux box to the cloud router, so the box does not need a static public IP or an inbound port. This is useful when the SIM or uplink sits behind CGNAT.

What is the best SIM plan for a proxy farm?

That depends on your country, carrier, permitted modem use and expected traffic. Compare plans by allowed use, data volume, APN requirements and cost, then measure a pilot before buying capacity for 20 or 50 dongles.

Can I resell proxies from my own 4G proxy farm?

Yes, for legitimate, authorised workloads that comply with applicable laws, carrier terms and destination-service rules. ProxyKite includes sub-users and white-label features, and operators with 50 or more dongles can request volume pricing via contact.

How much does a 4G proxy farm cost per month?

Separate the SIM data, hardware and software lines. ProxyKite’s software is $9 per dongle /month, USD, billed monthly by Paddle (taxes added at checkout); only active dongles billed; no per-GB charges; 14-day money-back. Your hardware and carrier costs depend on the fleet size, country and workload.

Previous Article

How to Build Your Own Mobile Proxy with 4G and Raspberry Pi

Next Article

Proxidize Alternative: Flat $9 per Dongle