Yes I mean, that. Thank you for the explanation. I mean forward. I want to forward all, not redirect.
Here is my actual conf file, as I’ve worked a bit more onto it. I’ve forget the part where I redirect to backends, weirdly it hasn’t been copied…
global
maxconn 4096
log /dev/log local0
user haproxy
group haproxy
daemon
defaults
timeout connect 10s
timeout client 30s
timeout server 30s
log global
mode tcp
frontend tcpServers
bind *:8013
bind *:8014
bind *:8027
bind *:8383
bind *:8022
bind *:8020
bind *:8021
bind *:8443
bind *:8444
bind *:8031
bind *:443
bind *:9000
bind *:8085
bind *:9443
#ACL by Port
acl tcp_8013 dst_port 8013
acl tcp_8014 dst_port 8014
acl tcp_8027 dst_port 8027
acl https_8383 dst_port 8383
acl http_8022 dst_port 8022
acl https_8020 dst_port 8020
acl https_8021 dst_port 8021
acl https_8443 dst_port 8443
acl https_8444 dst_port 8444
acl https_8031 dst_port 8031
acl https_443 dst_port 443
acl tcp_9000 dst_port 9000
acl http_8085 dst_port 8085
acl https_9443 dst_port 9443
#ACL by domain name
acl host_supportcenter hdr(host) -i supportcenter.domainname.com
acl host_itam hdr_sub(host) -i itam
acl host_jss hdr_sub(host) -i voljss
use_backend fortiemstcp8013 if tcp_8013
use_backend fortiemstcp8014 if tcp_8014
use_backend itamtcp8027 if tcp_8027
use_backend itamhttps8383 if https_8383
use_backend itamhttp8022 if http_8022
use_backend itamhttps8020 if https_8020
use_backend itamhttps8021 if https_8021
#use_backend itamhttps8443 if https_8443
use_backend voljsshttps8443 if host_jss
use_backend itamhttps8444 if https_8444
use_backend itamhttps8031 if https_8031
use_backend supportcenterhttps443 if https_443
use_backend supportcentertcp9000 if tcp_9000
use_backend assetshttp8085 if http_8085
use_backend assetshttps9443 if https_9443
tcp-request inspect-delay 5s
#Backends implementation
backend fortiemstcp8013
server fortiems X.X.X.X:8013
backend fortiemstcp8014
server fortiems X.X.X.X:8014
backend itamtcp8027
server itam X.X.X.X:8027
backend itamhttps8383
server itam X.X.X.X:8383
backend itamhttp8022
server itam X.X.X.X:8022
backend itamhttps8020
server itam X.X.X.X:8020
backend itamhttps8021
server itam X.X.X.X:8021
backend itamhttps8443
server itam X.X.X.X:8443
backend itamhttps8444
server itam X.X.X.X:8444
backend itamhttps8031
server itam X.X.X.X:8031
backend supportcenterhttps443
server supportcenter X.X.X.X:443
backend supportcentertcp9000
server supportcenter X.X.X.X:9000
backend assetshttp8085
server assets X.X.X.X:8085
backend assetshttps9443
server assets X.X.X.X:9443
backend voljsshttps8443
server voljss X.X.X.X:8443
I have figured the way I would like to achieve this, and this is by the subdomain name. Each service has a different subdomain name. svc1.domain.com, svc2.domain.com, etc. But they can have same port.
So I’ve started to try this out, creating an acl section for targeting the subdomain and as far as my tests goes, I can’t make any acl match…
Sorry for forgetting to copy a portion of the configuration, so your help was impossible. Now I think everyhting is there.
Thank you by advance for your time.