Add support for forwarding traffic to localhost

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>