配置DD-WRT限制设备带宽及屏蔽BitTorrent客户端
Hey there! Let's tackle this problem step by step—since you've got DD-WRT on your WRT841-N, you've got two solid options here: limiting the problem user's bandwidth, or blocking BitTorrent traffic entirely. I'll walk you through both approaches with clear, actionable steps.
Capping this user's bandwidth is a targeted way to fix the congestion without affecting others. Here's how to do it:
- First, lock in the user's network identity: Assign them a static IP address via DD-WRT's
Setup > Networking > DHCP Serversection (look for "Static Leases"). This ensures their IP doesn't change, so your bandwidth rules stay consistent. You can find their current IP and MAC underStatus > LAN > Active Clients. - Navigate to
QoS > Bandwidth Managementin the DD-WRT web interface. - Check the "Enable" box to turn on QoS, then enter your actual ISP upload/download speeds (e.g., 100Mbps down / 10Mbps up—use your plan's real numbers, not the maximum possible).
- Scroll to the "Classified Computers" section. Add the user's static IP or MAC address, then set your desired max upload and download limits (e.g., 2Mbps up / 10Mbps down—adjust based on what's fair for your network).
- Save and apply the settings. Give it 1-2 minutes to take effect, and you'll see their bandwidth capped immediately.
If you'd rather stop BitTorrent entirely (either for this user or everyone), here are three reliable methods:
Option A: Use DD-WRT's Built-in BT Blocker
This is the quickest, simplest method:
- Go to
Security > Firewallin the web interface. - Check the "Block BitTorrent" box near the top of the page.
- Save and apply. This uses signature matching to block common BitTorrent traffic, though it might miss some newer or modified clients.
Option B: Create Custom Access Restrictions
For more control (like targeting only the problem user), use access rules:
- Navigate to
Access Restrictionsin DD-WRT. - Click "Add" under "Access Policy" to create a new rule. Name it something like "Block BT for Problem User".
- Under "Policy Restrictions", select the user's static IP/MAC (or choose "All Computers" to block BT network-wide).
- In the "Blocked Services" dropdown, select "BitTorrent" if it's available. If not, manually add port ranges (BitTorrent uses 6881-6889 by default, plus random high ports):
- For TCP: add
6881-6889and49152-65535 - For UDP: add the same ranges, since BitTorrent relies on UDP too
- For TCP: add
- Set the schedule to "Always" (or customize times if you only want to block BT during peak hours), enable the rule, and save/apply.
Option C: Throttle BT Traffic (Instead of Blocking)
If blocking feels too harsh, prioritize other traffic over BitTorrent:
- Go to
QoS > Priority. - Find "BitTorrent" in the "Service Priority" list and set it to the lowest priority (e.g., "Bottom" or "Low").
- This way, BitTorrent only gets bandwidth when no other devices are using the network—so it won't cause lag for browsing, streaming, or gaming.
内容的提问来源于stack exchange,提问作者Hikmatullah

