IP Restrictions

Another Diff that allows sources to be set. Includes the ipv6 branch