HAproxy
haproxy-network-allowed.cfg
1
frontend www
2
3
bind *:80
4
bind *:443 ssl crt /etc/some/cert.pem
5
6
#
7
# Route based on source ip
8
#
9
# acl network_allowed src 1.1.1.1 2.2.2.2
10
# tcp-request connection reject if !network_allowed
11
# acl block_1 src 192.167.0.0/16
12
# acl block_2 src 192.168.0.0/16
13
#
14
# use backend block_1_hosts if block_1
15
# use backend block_2_hosts if block_2
16
17
use_backend k8-cluster
18
19
backend k8-cluster
20
21
server node1 10.10.0.11:12345 check
22
server node2 10.10.0.12:12345 check
23
server node3 10.10.0.13:12345 check
Copied!
Last modified 3yr ago
Copy link