[sr-dev] [kamailio/kamailio] Proxy Protocol support (#1757)
Henning Westerholt
notifications at github.com
Thu Dec 6 22:36:13 CET 2018
Your idea sounds interesting, and I can see a benefit as well especially for the mentioned use cases (AWS and haproxy setups). Daniel has probably also some comments on this, but in my opinion your approach sounds reasonable.
* Add a core variable, e.g. ksr_tcp_accept_proxy
* add a function to parse the proxy protocol(s), like tcp_read_proxy_protocol(..)
* probably it makes sense to add a own flag for this as well to check the proper parsing later on (similar to the hep3 execution path)
* call the tcp_read_proxy_protocol() in tcp_read_req(..)
* add also a proxy_process_msg(..) function to actually use the data to set the internal connection information(s)
* then check the flag in receive_tcp_msg(..) and call this function, after your special handling related to the proxy protocol call the normal receive_msg(..) function to process the payload
Just to show you one possible approach (obviously from a high level view).
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1757#issuecomment-445038109
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20181206/f0f5a5a8/attachment.html>
More information about the sr-dev
mailing list