Changeset 22523


Ignore:
Timestamp:
2010-08-07T01:00:57+02:00 (7 years ago)
Author:
cyrus
Message:

[packages] haproxy: add transparent mode, needed for SNAT-TPROXY-Load-Balancing which is working since [r21883], thanks jow

Location:
packages/net/haproxy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/haproxy/Makefile

    r22281 r22523  
    1111PKG_NAME:=haproxy 
    1212PKG_VERSION:=1.4.8 
    13 PKG_RELEASE:=1 
     13PKG_RELEASE:=2 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    4343                LD="$(TARGET_CC)" \ 
    4444                LDFLAGS="$(TARGET_LDFLAGS)" \ 
    45                 SMALL_OPTS="-DBUFSIZE=16060 -DMAXREWRITE=8192 -DSYSTEM_MAXCONN=65530" \ 
     45                SMALL_OPTS="-DBUFSIZE=16060 -DMAXREWRITE=8192 -DSYSTEM_MAXCONN=65530" USE_LINUX_TPROXY=1 \ 
    4646                all install 
    4747endef 
  • packages/net/haproxy/files/haproxy.cfg

    r22281 r22523  
    7878        # the address 192.168.1.1 and port 25 as source. 
    7979        balance roundrobin 
     80  #use next line for transparent proxy, so the servers can see the  
     81  #original ip-address and remove source keyword in server definition 
     82  #source 0.0.0.0 usesrc clientip 
    8083        server server01 192.168.1.10:123 source 192.168.1.1:25 
    8184        server server02 192.168.1.20:123 source 192.168.1.1:25 
Note: See TracChangeset for help on using the changeset viewer.