Re:tcpcp - passing TCP connections between hosts (2005)
by touisteur on Monday April 25, 2022 @06:37PM
(#31161715)
netlink has all you need https://github.com/tgraf/libnl/blob/master/src/nf-ct-add.c
The Linux kernel stack is crazy.
Re:tcpcp - passing TCP connections between hosts (2005)
by leohonexus on Monday April 25, 2022 @11:05PM
(#31163543)
For conntrack, one possibility might be to bypass conntrack on incoming connections using `iptables -j NOTRACK`, effectively making the firewall stateless.
b) In general your right, but this is already a fairly niche use case. But I do wonder if reprogramming the conntrack entry in linux would work, or for lvs which already has a userspace daemon for state synchronization, how it would behave if reprogramming an existing state. It's at least not implausible to do that rewrite somewhere real time... if you control the edge system.
Also, again in a you control the network scenario, OpenFlow switches might allow you to reprogram the state tables while they're live.