File: cttproxy-src.cfg

package info (click to toggle)
haproxy 1.3.15.2-2%2Blenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,780 kB
  • ctags: 2,264
  • sloc: ansic: 21,832; perl: 543; sh: 407; makefile: 339; xml: 124
file content (63 lines) | stat: -rw-r--r-- 1,749 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# test tproxy

#
# ip a a 2.0.0.1/16 dev eth0
# ip a a 1.0.0.1/16 dev eth1
# ip li set eth1 up
# 
# sudo rmmod -r iptable_tproxy
# modprobe ip_conntrack hashsize=65536
# modprobe iptable_tproxy hashsize=65536


# or :
# sudo insmod net/ipv4/netfilter/ip_conntrack.o hashsize=65536;sudo insmod net/ipv4/netfilter/iptable_nat.o;sudo insmod net/ipv4/netfilter/iptable_tproxy.o hashsize=65536


# This is a test configuration.
# It must load-balance across active servers. Check local apache logs to
# verify :
#
#  tail /var/log/apache/access_log


global
	maxconn		10000

listen  sample1
        mode            http
        option		httplog
        option          dontlognull
        retries         1
        redispatch
        contimeout      5000
        clitimeout      5000
        srvtimeout      5000
        maxconn 40000
        bind 1.0.0.1:8081
        balance roundrobin
        server  srv1 10.0.3.2:80 cookie s0 source 10.0.3.1 usesrc 1.0.0.3
        #server  srv1 10.0.3.2:80 cookie s0 source 10.0.3.1 usesrc client
        #server  srv1 10.0.3.2:80 cookie s0 source 127.0.0.1 usesrc clientip
        #server  srv1 10.0.3.2:80 cookie s0 source 10.0.3.1 usesrc client check inter 1000
	option  httpclose
	#errorloc 503 /503

listen  sample1
        mode            http
        option		httplog
        option          dontlognull
        retries         1
        redispatch
        contimeout      5000
        clitimeout      5000
        srvtimeout      5000
        maxconn 40000
        bind 1.0.0.1:8082
        balance roundrobin
        server  srv1 10.0.3.2:80 cookie s0 source 10.0.3.1
        #server  srv1 10.0.3.2:80 cookie s0 source 10.0.3.1 usesrc client check inter 1000
        option  httpclose
	#errorloc 503 /503