support ip filter
Merge pull request #7 from leoner/foreign

support ip filter