3 ms·
Nice. Interesting that you're doing it at the userland level and balancing across IP address and not interfaces. I may find a use for this. (On a network rate l
by bburky 13y ago
Nice. Interesting that you're doing it at the userland level and balancing across IP address and not interfaces. I may find a use for this. (On a network rate limited by IP address, not per physical connection or per MAC address, and allows me to use multiple IPs. Go figure.)
I haven't set this up myself, but I think the iptables method for doing this is `nexthop via`. Never found any great documentation, but this seems to describe it: http://lartc.org/howto/lartc.rpdb.multiple-links.html http://lartc.org/howto/lartc.rpdb.multiple-links.html
I think the iptables method balances across interfaces, not IPs. But I want to balance across IP aliases (multiple IPs, same interface). And I'm usually on a Mac. So I may see if dispatch-proxy is a better choice.
- bburky 13y agoIf anyone is interested in my particularly strange use case, this seems to work: $ sudo ifconfig en0 alias 192.168.2.210 255.255.255.0 $ sudo ifconfig en0 alias 192.168.2.211 255.255.255.0 $ sudo ifconfig en0 alias 192.168.2.212 255.255.255.0 $ dispatch start SOCKS5 server started on localhost:1080 Dispatching to addresses 192.168.2.28@1, 192.168.2.210@1, 192.168.2.211@1, 192.168.2.213@1 Also the link I mentioned is different from what other people have mentioned in this thread. It's not interface bonding or TCP multipath. It is actually similar to dispatch-proxy, it balances TCP connections across interfaces as far as I can tell.