I am trying to reroute HTTP traffic from 80 to 8080 to be used by Burp Suite.
Using iptables, my command was:
iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to 127.0.0.1:8080
By doing so, traffic did get rerouted to port 8080 and shown in Burp. However, the GET request keeps loading and if I disable the intercept, the requests flood the Burp history until it is full.
I have done a full flush and reset of iptables to no effect.
EDIT: After investigating more, I suspect that the same request keeps going back to Burp Suite after forwarding. This may be a problem with Burp instead. Help?
MORE INFO: I am doing this on an ubuntu 13 virtual machine and testing this with the browser of an android emulator (running in the VM) without proxy.