parse input like "192.168.1.0 - 192.168.1.255"