When trying to use a port in haproxy that is already used as container port it cannot be used even when on different listen-address
Example:
container name mail port tcp-993 {
destination 993
listen-address 2001:0db8::25
source 993
}
load-balancing haproxy service wan-993 {
backend mail-imaps
listen-address 192.0.2.1 {
}
mode tcp
port 993
}vyos@vyos# commit [ load-balancing haproxy ] TCP port "993" is used by another service [[load-balancing haproxy]] failed Commit failed vyos@vyos# set container name mail port tcp-993 source 994 [edit] vyos@vyos# commit [edit] vyos@vyos# set container name mail port tcp-993 source 993 [edit] vyos@vyos# commit [edit]
netstat shows the container listening on the correct address.
Also it works if i remove the container port, commit the haproxy config and then add the container config. Except that this prevents the config from applying at boot, as the container config is applied before haproxy.