Re: SMTP loadbalancer haproxy and logs

2010-04-23 Thread Israel Garcia
I forgot to say I'm using HA-Proxy version 1.3.22 2009/10/14

regards
Israel

On Fri, Apr 23, 2010 at 4:52 PM, Israel Garcia igalva...@gmail.com wrote:
 My haproxy configuration running prefectly. A simple LB with two smtp
 servers. But in both smtp servers only report smtp connections from
 haproxy server and I want to log en every smtp server the original ip
 from the sending source server. Is it possible?

 global
  maxconn 500
  log   127.0.0.1       local0
  user haproxy
  group haproxy
 #  debug
 defaults
  log global
  mode http
    stats enable
    stats auth hadmin:XX
  balance roundrobin
  maxconn 500
  option httplog
  option abortonclose
  retries 3
  option redispatch
  clitimeout 15000
  contimeout 3
  srvtimeout 3

 listen stats :80
        mode http
        stats enable
        stats auth hadmin:X
        stats refresh    20s

 listen smtp :25
        mode tcp
        maxconn 500
        option tcplog
        balance roundrobin
        server smtp1 xx.xx.xx.xx:25 check inter 1
        server smtp2 xx.xx.xx.xx:25 check inter 1


 --
 Regards;
 Israel Garcia




-- 
Regards;
Israel Garcia



haproxy administration web interface

2009-12-07 Thread Israel Garcia
Hi,
A simple question, is there any web interface to administer haproxy via web?

-- 
Regards;
Israel Garcia



Re: haproxy administration web interface

2009-12-07 Thread Israel Garcia
On 12/7/09, Duncan Hall dun...@viator.com wrote:


 Israel Garcia wrote:
 Hi,
 A simple question, is there any web interface to administer haproxy via
 web?


Hi Duncan,


 HAProxy has a dashboard that shows the status of the load balancing. It
 doesn't include an interface for making changes.
Yes, a very good stats page in deed..:-)


 PFsense (a FreeBSD based firewall http://pfsense.org) has a php
 interface for administering the haproxy package, but it does not include
 all of the configuration options (yet).
I'll take a look...
thanks in advance

regards,
Israel.

 Regards,

 Duncan



-- 
Regards;
Israel Garcia



Re: haproxy administration web interface

2009-12-07 Thread Israel Garcia
On 12/7/09, Holger Just w...@meine-er.de wrote:
 Hi,

 On 07.12.09 20:49, Israel Garcia wrote:
 Hi,
 A simple question, is there any web interface to administer haproxy via
 web?

Hi Holder,

 A simple answer: Nope, at least no free one I have heard of. Maybe you
 could find something from loadbalancer.org

 However, I am currently looking into developing a simple twisted and/or
 django based REST-webservice to manage some aspects of Haproxy.
That's very interesting.. I'll take a look at this... I'll keep you posted..


 Currently, I am planning the following features:

 * Create and edit a complete configuration by using something like
   haproxy-config (http://github.com/finnlabs/haproxy)
 * Add, edit and remove complete sections
 * Allow member servers of backends and listeners to be added and
   removed

 * Use the stats-socket to interface directly with Haproxy
 * Set the weight of individual backend servers (for Haproxy 1.4)
 * Provide a (readonly) webservice API to the various Haproxy stats

 Optionally: Provide a callback interface to perform certain used defined
 actions based on state changes of ressources by providing callbacks to
 which user code can register itself. This interface could be called from
 something like syslog-ng in nearly realtime.

 I plan on hacking on it during the evenings / nights of the upcomming
 26c3. So if you have any ideas, feel free to provide them here.
thanks in advance
regards,

Israel.

 --Holger




-- 
Regards;
Israel Garcia