On Wed, Dec 10, 2014 at 12:34 PM, Philipp Kolmann
<[email protected]> wrote:
> Hi,
>
> we use HAproxy infront of a Exchange 2010 System to balance the load. It
> works very well.
>
> Now we have an issue with one HubTransport Server in the Exchange Farm. I
> have set this Server to maintainance via admin socket:
>
> echo "disable server mail-intern/htc1" | socat stdio
> /var/run/haproxy-admin.sock
>
>
> Config:
>
> listen mail-intern
>         bind 128.130.30.55:25 transparent name smtp
>         bind 128.130.30.55:80 transparent name http
>         bind 128.130.30.55:135 transparent name loc-srv
>         bind 128.130.30.55:143 transparent name imap
>         bind 128.130.30.55:443 transparent name https
>         bind 128.130.30.55:587 transparent name submission
>         bind 128.130.30.55:993 transparent name imaps
>         bind 128.130.30.55:60001 transparent name RPC_60001
>         bind 128.130.30.55:60002 transparent name RPC_60002
>         mode tcp
>         maxconn 10000
>         log-format %ci:%cp\ [%t]\ %ft\ %s\ %si:%sp\ %Tw/%Tc/%Tt\ %B\ %ts\
> %ac/%fc/%bc/%sc/%rc\ %sq/%bq
>         balance leastconn
>         stick-table type ip size 10240k expire 60m peers ha-cluster
>         stick on src
>
>        server  htc1 128.130.30.51: maxconn 10000 check
>         server  htc2 128.130.30.52: maxconn 10000 check
>
>
>
> All clients are now redirected to htc2 and don't see the troublesome htc1.
>
> We now would like to debug this issue and specify special source ip
> addresses that get routet to the htc1 in maintainance mode. Is this
> possible?
>
> thanks
> Philipp
>
> --
> -----------------------------------------------------------------------
> DI Mag. Philipp Kolmann                  mail: [email protected]
> Technische Universitaet Wien                  web: www.zid.tuwien.ac.at
> Zentraler Informatikdienst (ZID)                 tel: +43(1)58801-42011
> Wiedner Hauptstr. 8-10, A-1040 Wien                        DVR: 0005886
> -----------------------------------------------------------------------
>


Hi Philip,

Which version of HAProxy are you running?

In 1.5, you can do:
use-server htc1 if { src 10.0.0.1 }

add as many IPs as needed.

Baptiste

Reply via email to