add rules.
Add ipaddress getter.