Ok, so I am terrible with iptables so I need some help. Here is what I am trying to do.
I have a lan box on vlan 4 (172.16.9.65)
I have another box on vlan 9 (10.1.0.1)
My gateway for my 172.16.9.65 is a linux firewall and has to remain so.
Gateway/Firewall( 172.16.15.254 )
I have another box with two interfaces, one on each vlan.
Other box (eth0 172.16.9.8 ; eth1 10.1.0.2)
So my flow is like this
Desktop goes to 10.1.0.1 on port 80
Desktop(172.16.9.65)vlan4 --> GateWay/Firewall(172.16.15.154)vlan4 --> OtherBox(ETH0:172.16.9.8_vlan4 --> ETH1:10.1.0.2_vlan9) --> 10.1.0.1_originl destination.
I want to do this with iptables rules on two boxes