gudenau on Nostr: Can you use iptables as a janky load balancer? I.E. have a protocol that supports ...
Can you use iptables as a janky load balancer? I.E. have a protocol that supports redirects, have a client connect, redirect it to a unique port, step iptables to look for that ip:port pair and forward the connection, remove the rule. I'm not sure what the performance of this would be compared to a more traditional forwarding load balancer with io_uring or whatever.
Published at
2025-03-29 02:58:35 UTCEvent JSON
{
"id": "02a2c3d8db71ce4a407d1d86408de5c35a71eb6fdb479b9d142fb4eeec6df0f7",
"pubkey": "db46a46e48fbb369dac7db115ec93ac88b3fd141eade8a6ba3e8e94e54ef0e9f",
"created_at": 1743217115,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@gudenau/114243476898151950",
"web"
],
[
"proxy",
"https://fosstodon.org/users/gudenau/statuses/114243476898151950",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/gudenau/statuses/114243476898151950",
"pink.momostr"
],
[
"-"
]
],
"content": "Can you use iptables as a janky load balancer? I.E. have a protocol that supports redirects, have a client connect, redirect it to a unique port, step iptables to look for that ip:port pair and forward the connection, remove the rule. I'm not sure what the performance of this would be compared to a more traditional forwarding load balancer with io_uring or whatever.",
"sig": "4a5bfad46aaa64a2fdbe207399acf557e4881e5ffa9a73ec3ef532428586771be714bf85f8cf618ea6c68b010ba530679d405a437035ba30b9d00b069316c8aa"
}