I don't think you can tell it to let through certain IPs (without 3rd party software at least), but you can open up certain ports I believe....

Its in the advanced settings of the particular network connection that you'll be connecting to.