Hi Jarno,
thanks a lot for your hint. I had two issues. I missed "mode tcp" also in the
backend and additionally your tip works perfectly without acl but with the
"use_backend special if {src 10.0.0.1 10.0.0.2} " statement.Thanks Philipp -- ----------------------------------------------------------------------- DI Mag. Philipp Kolmann mail: [email protected] Technische Universitaet Wien web: www.it.tuwien.ac.at IT Solutions - Applications tel: +43(1)58801-42011 Operngasse 11, A-1040 Wien DVR: 0005886 ----------------------------------------------------------------------- ________________________________________ Von: Jarno Huuskonen <[email protected]> Gesendet: Montag, 28. Oktober 2019 17:52 An: Kolmann, Philipp Cc: [email protected]; Klasek, Johann Betreff: Re: Mode TCP and acl to choose backend Hi, On Mon, Oct 28, Philipp Kolmann wrote: > I load-balance TCP Port 25 on a haproxy. This works perfect. > > Now I need to check, if the connection is coming for a special host, then a > different backend smtp server should be used. I thought I could use acl and > use_backend but this seems only to work for http connections. What does special host mean in this context ? Is it something you can get from layer4 (src,src_port,dst,dst_port) or something from for example SMTP protocol ? > Has anyone a tip how to achieve this with mode tcp? If you can get special host from layer4 then for example: use_backend specialhost if { dst 10.10.10.10 } might work. -Jarno -- Jarno Huuskonen
smime.p7s
Description: S/MIME Cryptographic Signature

