In Kong ip restrictions done automatically?

i am run and test commands on service and rout for ip restrictions in white list . but in that command i have put manually ip address .any one can hint me or help me to do it automatically.