Update rules to and from server.