You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+181Lines changed: 181 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,187 @@ Unlike traditional network impairment tools that target backbone network quality
92
92
- Python **3.8** or higher
93
93
- Linux system with `tc` and `iptables` support
94
94
- Root privileges for traffic control operations
95
+
- Ubuntu 22.04 LTS (or similar Linux distribution)
96
+
- At least **TWO** network interface cards (NICs)
97
+
98
+
---
99
+
100
+
## ⚙️ System Configuration
101
+
102
+
Before installing NetHang, you need to configure your Linux system as a software router. Follow the steps below to set up the required dependencies and network settings.
103
+
104
+
### 📦 Dependencies and Permissions
105
+
106
+
Install the required packages:
107
+
108
+
```bash
109
+
sudo apt update
110
+
sudo apt install iproute2 iptables libcap2-bin
111
+
```
112
+
113
+
Check command paths:
114
+
115
+
```bash
116
+
which tc
117
+
which iptables
118
+
```
119
+
120
+
They are typically located in `/sbin/tc` and `/sbin/iptables` (or `/usr/sbin/tc` and `/usr/sbin/iptables`).
121
+
122
+
Grant the `CAP_NET_ADMIN` capability, which is required for `tc` and `iptables`:
0 commit comments