About HAProxy#
PassWall comes with a built-in load balancing feature called HAProxy. I've tinkered with it before, so now I'm familiar with it. Currently, there are two pain points I need to address when using HAProxy:
- Bandwagonhost 500G traffic
- Serious UDP blocking
For OpenWrt firmware, I recommend Haiibo. It has proven to be very stable for those who love to tinker.
HAProxy Configuration#
Enable HAProxy#
PassWall - Load Balancing - Enable Load Balancing
-
Set username
-
Set password
-
Add nodes (try to keep the protocol, port, and password consistent)
-
Set load weight and mode according to your needs
-
Save & Apply
Access HAProxy#
- After saving, access the interface at the routing address:1188
- The password and username are the ones you just set
- You can see the traffic situation for each node, indicating that it has been successfully started.
Create a Load Balancing Node#
- In the Node List, create a new Socks Load Balancing as shown in the figure
- Fill in the address with the OpenWrt routing address
- Port: 1181
- Save
Apply the Load Balancing Node#
- Go back to PassWall Basic Settings
- Select the newly created Socks Load Balancing for TCP nodes
- Also create a new Socks Load Balancing node for Socks Configuration, port: 1081
- Save and apply, and you will see the traffic increasing in HAProxy.
- You can also use PassWall's traffic splitting feature
End
New Method for Socks Nesting#
After tinkering with the above, I found that it is possible to use only one node for Socks nesting. See the tweet at https://x.com/geekbb/status/1713820323274224118?s=20. Generally, when we use PassWall, we directly use nodes or split the usage of nodes. However, if we use a local Socks node to nest a layer of ladder nodes, I found that it can alleviate the situation of UDP traffic blocking, and even make it faster. You can try the following settings:
Configuration#
- In the Node List, create a new Socks Nesting as shown in the figure
- In Basic Settings - Socks Configuration, configure as shown in the figure:
- In TCP nodes, select [Socks Nesting], and enable Socks Configuration below. Select your ladder node for the Socks node.
Now let's look at the comparison:
Directly using nodes#
Using Socks Nesting#
Have fun~