Port mapping
The following mappings (using rawrouter and udprouter or iptables directly) should be added:
smtp
127.0.0.1:25 -> 127.0.0.1:2525 10.x.x.x:25 -> 127.0.0.1:2525
http
127.0.0.1:80 -> 127.0.0.1:8080 10.x.x.x:80 -> 127.0.0.1:8080
https
127.0.0.1:443 -> 127.0.0.1:8443 10.x.x.x:443 -> 127.0.0.1:8443
ftp
127.0.0.1:20 -> 127.0.0.1:2020 10.x.x.x:20 -> 127.0.0.1:2020 127.0.0.1:21 -> 127.0.0.1:2121 10.x.x.x:21 -> 127.0.0.1:2121
dns
127.0.0.1:53/udp -> 127.0.0.1:5353/udp 10.x.x.x:53/udp -> 127.0.0.1:5353/udp 127.0.0.1:53 -> 127.0.0.1:5353 10.x.x.x:53 -> 127.0.0.1:5353
Investigate if allowing free unprivileged port mapping is a better approach
This will be required for implementing the solution described here: #18