Add support for custom IP versions from the user

Let the user whether to create rules for IPV4, IPV6, or both.

Default to both.