this line in my haproxy config:
acl bad_guys_ip hdr(X-Forwarded-For) -f /etc/haproxy/block_ip.txt

will block a single ip, but i can't figure out the syntax for specifying a
subnet
this block_ip.txt blocks my ip
<snip>
# comment lines ok

# block an ip
x.x.x.86

# block a subnet doesn't work for some reason
# x.x.x.0/24
</snip>

this one does not:
<snip>
# comment lines ok

# block an ip
# x.x.x.86

# block a subnet doesn't work for some reason
x.x.x.0/24
</snip>

how should i specify ip networks in ip txt files?

Reply via email to