add rule priorities, and ability to set ip addr of interfaces