← Back to Blog

How to Set Up a Proxy on DD-WRT Router and Route All Network Traffic Through a Proxy Server

Setting up a proxy on a DD-WRT router protects all devices on the network at onceβ€”without manual configuration of each gadget. We explain step-by-step how to do it correctly.

πŸ“…June 6, 2026
```html

If you manage multiple advertising accounts, monitor prices on marketplaces, or handle dozens of profiles on Instagram β€” sooner or later, you will face the need to route all traffic through a proxy. Setting up a proxy on each device individually is time-consuming and inconvenient. A router with DD-WRT firmware solves this problem: you set up the proxy once, and all devices on the network automatically work through it.

What is DD-WRT and why set up a proxy on the router

DD-WRT is an alternative open-source firmware for Wi-Fi routers. It replaces the standard firmware from manufacturers (TP-Link, ASUS, Netgear, Linksys, and others) and opens up advanced network management capabilities. Unlike the standard router interface, DD-WRT allows you to configure traffic routing, work with VPNs, and proxy servers at the network level.

Why set up a proxy on the router instead of on each device separately? There are several reasons:

  • Time-saving. Set it up once β€” and all devices connected to the router (laptop, phone, tablet, Smart TV) automatically work through the proxy.
  • Single IP for the entire work network. If you have an office or workspace with multiple computers β€” they will all access the internet from one proxy IP address.
  • Inability to "forget" to enable the proxy. At the router level, the proxy is always active β€” you cannot accidentally visit a site with your real IP.
  • Devices without proxy settings. For example, Smart TVs or gaming consoles do not support manual proxy configuration β€” this is automatically resolved through the router.

It is important to understand: DD-WRT does not support all routers. Before purchasing or configuring, be sure to check the compatibility of your model on the official website dd-wrt.com in the Router Database section. The most popular compatible models include: TP-Link WR940N, Netgear R7000, ASUS RT-N66U, Linksys WRT54G.

Who needs this: arbitrage, SMM, e-commerce

Setting up a proxy at the router level is not just a technical trick. It is a working tool for specific tasks. Let’s break down who needs it and why.

Arbitrage specialists (Facebook Ads, TikTok Ads, Google Ads)

When working with multiple Facebook or TikTok Ads accounts, it is critically important that each account accesses the internet from a unique IP. If you are working from one workstation and using an anti-detect browser (Dolphin Anty, AdsPower, GoLogin), then a proxy on the router helps isolate all background traffic from your computer from the real IP of your provider. This reduces the risk that Facebook will "link" accounts by the device's IP outside of the browser.

SMM specialists (Instagram, TikTok, VK)

If you manage 10–50 client accounts and work from multiple devices on the same network β€” setting up a proxy on the router allows you to route all traffic through the desired IP. This is especially relevant if you are working with accounts from a specific region: by configuring a proxy with the geolocation of the desired country on the router, all your devices will "see" the required region.

Marketplace sellers (Wildberries, Ozon, Avito)

Monitoring competitor prices on Wildberries or Ozon requires constant requests from different IPs β€” otherwise, the marketplace will block your address. If you are using ready-made parsers that work as separate programs (not in the browser), setting up a proxy on the router allows you to route all their traffic through the proxy without additional configuration for each program.

Marketers (testing ads from different regions)

Checking how your ads appear in Yandex.Direct or Google Ads for users from another city or country is a standard task. By setting up a proxy for the desired region on the router, you see the ad output exactly as the target audience sees it, without the need to change browser settings each time.

What type of proxy is suitable for DD-WRT router

Not every type of proxy can be configured at the router level. DD-WRT supports working through SOCKS5 (with additional software) and HTTP/HTTPS proxies. Let’s break down the differences and what is better to choose for your tasks.

Proxy Type Support on DD-WRT Speed Better for
SOCKS5 Via redsocks / Entware High All traffic, arbitrage, SMM
HTTP/HTTPS Natively via iptables Medium Browser traffic, parsing
Residential Proxies Compatible (SOCKS5/HTTP) Medium Social networks, advertising, marketplaces
Mobile Proxies Compatible (SOCKS5/HTTP) Medium Facebook Ads, TikTok Ads
Datacenter Proxies Compatible (SOCKS5/HTTP) High Parsing, price monitoring

πŸ’‘ Recommendation for choosing the type of proxy

For most tasks (arbitrage, SMM, marketplaces), the optimal choice is residential proxies with SOCKS5 support. They have real IPs of home users, making your traffic indistinguishable from regular. Datacenter proxies are suitable for high-speed parsing, where speed is more important than the "naturalness" of the IP.

Preparation: what you need before starting the setup

Before proceeding to the setup, make sure you have everything necessary. Skipping any of these steps will result in the setup not working or the router not functioning correctly.

Preparation checklist:

  • βœ… Router with DD-WRT firmware. Check the firmware version in the control panel: Administration β†’ About. The version should not be older than 2020.
  • βœ… Proxy server details. You will need: proxy IP address or host, port, username and password (if the proxy requires authentication), protocol (SOCKS5 or HTTP).
  • βœ… Access to the DD-WRT panel. Usually, this is the address 192.168.1.1 or 192.168.0.1 in the browser.
  • βœ… Wired connection to the router. During setup, Wi-Fi may temporarily disconnect β€” use an Ethernet cable.
  • βœ… Enabled USB port on the router (for SOCKS5 via redsocks). Not all DD-WRT models support Entware β€” check in advance.
  • βœ… Backup of router settings. Before making changes, save the current configuration: Administration β†’ Backup.

It is also important to understand the limitations: DD-WRT does not support proxy authentication by username/password at the iptables level in the basic configuration. If your proxy requires authentication (and most quality proxies do), you will need a method through redsocks or a special script. We will cover both options below.

Step-by-step setup of SOCKS5 proxy via DD-WRT

This is the most functional method β€” SOCKS5 redirects all traffic (not just HTTP), supports authentication, and works reliably. This method uses the redsocks utility, which is installed via Entware (a package manager for routers with DD-WRT).

Step 1: Enable JFFS and SSH

Log into the DD-WRT panel. Go to Administration β†’ Management. Find the JFFS2 Support section and enable both options: Enable and Enable System. Click Save, then Apply Settings. After that, go to Services β†’ Services, find the Secure Shell section, and enable SSHd. Save the settings.

Step 2: Install Entware

Connect to the router via SSH. For this, use the PuTTY program (Windows) or terminal (Mac/Linux). The connection address is the IP of your router, port 22. The username and password are the same as for the DD-WRT panel.

After connecting, enter the command to install Entware. The exact command depends on your router's architecture (mipsel, mips, arm). You can find out the architecture in the Administration β†’ About section β€” the CPU line. For most TP-Link and Netgear routers, mipsel is used.

Step 3: Install redsocks

After installing Entware, update the packages and install redsocks via the opkg package manager. Redsocks is a daemon that intercepts TCP traffic and redirects it through SOCKS5 or HTTP proxies.

Step 4: Create a redsocks configuration file

Create a configuration file for redsocks. In it, specify your proxy server details:

base {
    log_debug = off;
    log_info = on;
    log = "file:/var/log/redsocks.log";
    daemon = on;
    redirector = iptables;
}

redsocks {
    local_ip = 0.0.0.0;
    local_port = 12345;
    ip = YOUR_PROXY_IP;
    port = YOUR_PROXY_PORT;
    type = socks5;
    login = "YOUR_LOGIN";
    password = "YOUR_PASSWORD";
}

Replace YOUR_PROXY_IP, YOUR_PROXY_PORT, YOUR_LOGIN, and YOUR_PASSWORD with the actual details of your proxy server.

Step 5: Configure iptables rules to redirect traffic

The iptables rules tell the router which traffic to redirect through redsocks. Create a startup script that will run at each router boot. In the DD-WRT panel, go to Administration β†’ Commands and paste the following into the Commands field:

# Create REDSOCKS chain
iptables -t nat -N REDSOCKS

# Exclude local addresses from redirection
iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURN
iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN

# Redirect all TCP traffic through redsocks
iptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-ports 12345

# Apply to traffic from the local network
iptables -t nat -A PREROUTING -i br0 -p tcp -j REDSOCKS

# Start redsocks
redsocks -c /opt/etc/redsocks.conf

After pasting, click Save Startup β€” this will save the script as an auto-start. Restart the router.

Setting up HTTP/HTTPS proxy via DD-WRT

If you have an HTTP proxy without authentication or a proxy with IP authentication (whitelist), the setup is simpler β€” without installing additional packages. This method is suitable for basic redirection of browser traffic.

Step 1: Configure the proxy via iptables (without authentication)

Go to Administration β†’ Commands and add the following rules to the Startup Script. They will redirect all HTTP traffic (port 80) and HTTPS traffic (port 443) through your proxy server:

# Redirect HTTP to proxy
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 \
  -j DNAT --to-destination YOUR_PROXY_IP:YOUR_PROXY_PORT

# Redirect HTTPS to proxy
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 443 \
  -j DNAT --to-destination YOUR_PROXY_IP:YOUR_PROXY_PORT

Step 2: Set up Squid as an intermediate proxy (with authentication)

If your HTTP proxy requires authentication via username and password, direct redirection through iptables will not work β€” iptables cannot add authorization headers. In this case, a combination is used: local Squid on the router β†’ external proxy with authentication.

Install Squid via Entware (opkg install squid). In the Squid configuration file, specify the external proxy as "cache_peer" with authentication parameters. Then redirect traffic from network devices to the local Squid port (usually 3128) via iptables. Squid will automatically add the authorization headers when accessing the external proxy.

πŸ’‘ Tip: IP authentication is the simplest option

If your proxy provider supports IP authentication (whitelist) β€” add your router's IP to the whitelist. This is the easiest way: no need to configure authentication in scripts, just basic redirection through iptables is sufficient.

How to check that the proxy works on all devices

After setting up, be sure to check that the proxy is indeed working and all devices on the network are going through it. Here is a step-by-step verification algorithm:

  1. Check IP from the computer. Open a browser and go to 2ip.ru or whatismyip.com. The displayed IP should match your proxy IP, not your real provider IP.
  2. Check IP from the smartphone. Connect your phone to the Wi-Fi router and open the same site. The IP should be the same as on the computer β€” this confirms that the proxy works at the router level.
  3. Check geolocation. On the 2ip.ru site, see what country and city are determined by the IP. This should be the geolocation of your proxy server, not your real address.
  4. Check for DNS leaks. Go to dnsleaktest.com and click Extended test. The DNS servers should belong to the proxy's country, not your provider. If you see your provider's DNS β€” configure the router's DNS servers to public ones (8.8.8.8 or 1.1.1.1) in the Setup β†’ Basic Setup β†’ Network Address Server Settings section.
  5. Check speed. On the fast.com or speedtest.net site, check the connection speed. Proxies always slightly reduce speed β€” this is normal. If the speed drops more than 5 times, the proxy may be overloaded or the setup may be incorrect.

Common mistakes and how to fix them

When setting up a proxy on DD-WRT, most problems are related to several typical mistakes. Let’s discuss the most common ones and how to resolve them.

❌ Error 1: Internet is lost after applying iptables rules

Reason: Incorrectly specified proxy IP or port, or the proxy is unavailable. There may also be a syntax error in the iptables commands.

Solution: Restart the router (Startup Script settings are applied at boot, but iptables can be reset with the command iptables -t nat -F via SSH without rebooting). Check the correctness of the proxy data and the availability of the proxy server.

❌ Error 2: IP does not change β€” devices are going out with the real IP

Reason: The iptables rules are applied, but redsocks is not running or has crashed. It is also possible that the traffic is not going through the br0 interface.

Solution: Check the status of redsocks via SSH with the command ps | grep redsocks. If the process is not found β€” start it manually and check the error log in /var/log/redsocks.log. Make sure the local network interface is indeed br0 (check with the command ifconfig).

❌ Error 3: Settings reset after rebooting the router

Reason: The script is saved not in Startup, but in another Commands section. Or JFFS is not enabled and the script is not saved in permanent memory.

Solution: Ensure that when saving the script, you clicked Save Startup, not just Run Commands. Check that JFFS is enabled in Administration β†’ Management.

❌ Error 4: Some sites do not open through the proxy

Reason: The proxy blocks certain resources, or the sites block your proxy's IP. There may also be a problem with UDP traffic β€” redsocks only works with TCP.

Solution: For sites that block the proxy's IP, change the proxy or use rotating residential proxies. UDP traffic (for example, some games and video calls) is not redirected through SOCKS5 on the router β€” this is a technical limitation.

❌ Error 5: DNS leak β€” real provider visible in the test

Reason: DNS queries are going directly through the provider, bypassing the proxy.

Solution: Go to Setup β†’ Basic Setup, find the Network Address Server Settings (DHCP) section and specify the DNS servers: 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google). Save and restart the router.

DD-WRT + anti-detect browser: how to properly combine

If you are an arbitrage specialist or SMM expert working with anti-detect browsers (Dolphin Anty, AdsPower, Multilogin, GoLogin, Octo Browser), it is important to understand how to properly combine the proxy on the router with the proxy in the profiles of the anti-detect browser. These are not mutually exclusive things, but they need to be configured correctly to avoid conflicts.

Scheme 1: Proxy only on the router (basic isolation)

In this scheme, one proxy (for example, a residential IP from the desired region) is set up on the router, and no proxy is specified in the anti-detect browser. All browser profiles go through the router's IP. This is suitable if you need basic protection of your real IP, but all accounts operate from one region.

Cons: All profiles in Dolphin or AdsPower will have the same IP β€” Facebook and Instagram may link accounts together.

Scheme 2: Proxy on the router + separate proxies in each profile (professional)

This is the correct professional scheme for arbitrage specialists and SMM. A proxy is set up on the router that hides the real IP of the entire network. In each profile of the anti-detect browser (Dolphin Anty, GoLogin, Multilogin), a separate proxy with a unique IP is configured. In this case, the traffic of each profile goes: device β†’ router proxy β†’ profile proxy β†’ site.

However, there is a nuance: if the profile proxy already hides the real IP, double proxying (through the router and through the profile) may slow down the connection. Therefore, in this scheme, the proxy on the router is often configured as "neutral" β€” for example, a proxy from the same country, just to hide the real IP of the provider.

Scheme 3: Router without proxy + proxy in each profile (standard)

The most common scheme among arbitrage specialists: the router operates normally (without a proxy), and each profile in Dolphin Anty or AdsPower uses its unique proxy. In this case, DD-WRT setup is not needed β€” all proxy management occurs within the anti-detect browser.

Scheme Who it suits Pros Cons
Only router Sellers, marketers Simple, all devices One IP for all accounts
Router + profiles Advanced arbitrage specialists Maximum protection More complex, slower
Only profiles Most arbitrage specialists Flexibility, speed Real router IP is visible

For working with Facebook Ads and TikTok Ads through an anti-detect browser, it is recommended to use separate mobile or residential proxies in each profile β€” they have the highest level of trust with advertising platforms and are less likely to raise suspicions during account checks.

Additional tips for security and performance

Setting up a proxy on the router is just part of the work. To ensure the system operates stably and securely, consider the following recommendations.

Use a static IP proxy or reliable host

If your proxy server's IP changes (rotating proxy), the iptables rules will stop working β€” they are tied to a specific IP. For router setup, use proxies with a static IP or a hostname that remains constant. Most quality residential and mobile proxies provide a stable host for connection.

Set exceptions for local services

Some devices on the network (printers, NAS, smart speakers) should not operate through the proxy β€” this may disrupt their functionality. Add exceptions in the iptables rules by MAC address or device IP. For example, to exclude a device with IP 192.168.1.100:

# Exclude a specific device from redirection through the proxy
iptables -t nat -A PREROUTING -s 192.168.1.100 -j RETURN

This rule needs to be added before the rules for redirecting traffic through REDSOCKS.

Monitor the load on the router

Proxies through redsocks create additional load on the router's CPU. Budget routers with a 300–500 MHz processor may not handle a large traffic flow. If you notice the router heating up, freezing, or speed drops β€” this is a sign of overload. In this case, consider a more powerful router (for example, Netgear R7000 or ASUS RT-AC68U) or switch to a scheme with proxies in the anti-detect browser.

Make backups of the configuration

After successful setup, save the router configuration: Administration β†’ Backup β†’ Backup. If something goes wrong during future changes, you can restore the working configuration in a couple of minutes.

Conclusion

Setting up a proxy on a router with DD-WRT is a powerful tool for those who want to protect the entire network at once, rather than configuring proxies on each device individually. This method is especially useful for marketers testing ads from different regions, marketplace sellers running parsers on multiple devices, and specialists who need to completely hide the real IP of their work network.

Key takeaways from the article: for full operation through the router, use SOCKS5 + redsocks β€” this is the most flexible and reliable method. Check the operation of the proxy through a DNS leak test. If you work with anti-detect browsers (Dolphin Anty, AdsPower, GoLogin), choose a scheme depending on the tasks β€” for most arbitrage specialists, a proxy at the profile level without router configuration is sufficient.

If you plan to set up a proxy on a DD-WRT router to protect the entire work network or for monitoring marketplaces, pay attention to residential proxies β€” they support SOCKS5 and HTTP protocols, have stable hosts for connection, and real IPs of home users, which minimizes the risk of blocks from websites and platforms.

```