Manual:$wgSysopRangeBans

Details
Allow sysops to ban IP ranges