first commit compiled to .net 4.5 and using IPNetwork for CIDR comparision of network range

First match of network range is the rule applied. hence always apply the
most specific rule as the first rule to add to the configuration