Manual:$wgApplyIpBlocksToXff

Details
When it's set to, IP address blocks apply also to users having a blocked IP in their XFF header (X-Forwarded-For).

Useful when dealing with vandals making use of well-behaving proxies.