Proxy a TCP connection
Adam
amvandemore at gmail.com
Thu Jun 14 14:29:42 UTC 2018
On Thu, Jun 14, 2018 at 9:01 AM, Andrea Venturoli <ml at netfence.it> wrote:
> On 05/21/18 18:10, Andrea Venturoli wrote:
>
> Thanks to anyone who answered.
>>
>> I'm currently trying net/bounce, as suggested by Eugene.
>> If that won't work properly, I'll sure give plugdaemon a shot.
>>
>
> Just an update in case anyone is interested...
>
> Bounce is still dying occasionally; in some way it is better than
> tcpproxy, in that it uses different process, one for each port, so when one
> dies, the other ports will still work (when tcpproxy dies, all port
> redirections stop working).
>
> I still haven't managed to understang why it dies: really no clue is in
> the log...
> It's always the same port (same device) and once I had to tcpdrop a
> FIN_WAIT2 connection in order to be able to restart it.
>
> Guess I'll have to get daemontools' svscan out again.
>
haproxy or nginx can do tcp proxy/lb. I haven't used nginx for that
exactly but here's your doc:
https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/
--
Adam
More information about the freebsd-net
mailing list