Sidenote
This question is nearly the same to this question: Forward all traffic on a specific port depending on the domain to another port but I have a totally different aim with my one.*
Schematic
I want to have an IPTABLE rule for this schematic: click to open image.
Description of Image
- Traffic from 123.123.123.1 which accesses 123.123.123.3:80 is NOT going to be forwarded.
- Traffic from 123.123.123.2 which accesses 123.123.123.3:80 IS going to be forwarded to 123.123.123.3:8080
I already went through http://www.howtoforge.com/nat_iptables and other pages about NAT and stuff but I couldn't manage to figure it out.