Hot answers tagged

2

For BSD i would look into relayd(8) - its native to OpenBSD, but i believe FreeBSD has a port too. It is quite powerful and can do more than a few things (ex., proxy, load balancer, application gateway) including what you are asking. Read through man pages, particularly the 'Filter Rules' and 'Protocols' section: ...


2

The problem I see here is that you have to accept the TCP connection before you get to see the http request. So even if the system could use application level data it would not have that data at the time it needs to decide where the connection needs to go. I don't think there is much choice but to have a "reverse proxy" which terminates the TCP connection ...



Only top voted, non community-wiki answers of a minimum length are eligible