iptables, multiple interfaces
Here's my problem:
I have 5 static IP's from my ISP, they are however in two different series. They look like this:
These also have different GW's. 188.8.131.52 and 184.108.40.206.
What I want to do is to add all these IP's to a linuxbox that act like a router/gateway and send those IP's through to a local ip (192.168.100.x). Four IPs should be passed on, the last one should be the machines own, which is also used for the general internetsharing.
220.127.116.11 -> 192.168.100.10 Machine1
18.104.22.168 -> 192.168.100.11 Machine2
22.214.171.124 -> 192.168.100.12 Machine3
126.96.36.199 -> 192.168.100.13 Machine4
188.8.131.52 -> 192.168.100.* Machine5+
So, I want all internet trafic that commes to/from Machine1 to go in and out through the given ISP-IP. Machine2 through that given one etc etc. Machine5 (server) shares it's IP with the rest of the computers that doesn't have an external IP of their own, some regular nat solution there.
Righ now, the machine only have one NIC, but I will add another one when I know how to do this routing.
Can someone give me a hand here? I've thought about using iptables for it, perhaps there's some other solution that you know of, please tell me anything you can about this.
There is another NIC in the machine now.