port: added correct rules for redirection of localhost