IPtables VLANS Masquerading ALL in one.
Posted on 2005-04-21
I am looking for a way to use ONE linux box with IPtables, and 2 NIC's to do some interesting routing for me....
On the internal interface (eth1) i want to send an 802.1Q Trunk signal that is carrying ALL my vlans... each of the different vlans will masquerade as a different external address (on eth0)..
ex: vlan 1 with subnet 10.1.1.0 - 10.1.1.255 will masquerade on the outside as x.x.x.11
vlan 2 with subnet 10.2.2.0 - 10.2.2.255 will masquerade on the outside as x.x.x.12
and so on... For some reason I knew how to do this while I was thinking the idea up, but now I am drawing a blank...