banner
Geek

Geek

🧠在家居士 | 🥦素食者 | 🏃🏻马拉松爱好者 | 📡AI降临派 | 过🪜技术资深学者 | 🤖科技狂 | 📤更新狂🆅 https://www.igeekbb.com/
twitter
github

PassWall Load Balancing HAProxy Nanny-level Configuration

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

image

Access HAProxy#

  • After saving, access the interface at the routing address:1188
  • The password and username are the ones you just set

image

  • You can see the traffic situation for each node, indicating that it has been successfully started.

image

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

image

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.

image

  • You can also use PassWall's traffic splitting feature

image

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

image

  • In Basic Settings - Socks Configuration, configure as shown in the figure:

image

  • 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#

image

image

image

Using Socks Nesting#

image

image

image

Have fun~

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.