iptables route out/to of 127.0.0.1
I want to use iptables to either:a) route tcp packets from 55.55.55.55:3000 to 127.0.0.1:3000
b) route tcp packets from 127.0.0.1:3000 to 55.55.55.55:3000
prefered no 1. Can somebody tell me how to do it? I've been trying many prerouting commands but non seem to work with 127.0.0.1. Perhaps I sould specify input/output interface for 127.0.0.1 (lo) ?