ETH02 & PPOE1 – Internet side with 16 static IP’s
ETH00 – Lan side with sever vlans
on ETH00 add an external IP (78.xxx.xxx.xx2) to the vlan 12 to act as that gw address along with lan ip of 10.10.12.1
in Post Script add the following code:
route add -net 78.xxx.xxx.xx3 netmask 255.255.255.255 gw 10.10.12.1
Manually set the device with the static ip of 78.xxx.xxx.xx2
follow above but use next 2 WAN ip’s
Vlan 14 :
again as above but use next 2 WAN IP’s
Now the problem is that traffic from VLAN 12 should now see a what is my IP as 78.xxx.xxx.xx3, vlan 13 as 78.xxx.xxx.xx5, and vlan 14 as 78.xxx.xxx.xx7
However they all see what is my IP as 78.xxx.xxx.1 – the First WAN IP in the range.
I’ve tried using some of the scripts in the forum but failing miserable with masquerading.
this would look to me to be the most promising:
iptables -t nat -I POSTROUTING –source 78.xxx.xxx.xx3 -j SNAT –to-source 78.xxx.xxx.xx3
tried playnig around with the source to be the lan gateway ip of that vlan, the wan gateway ip of that vlan and the wan ip of the device on the end of that vlan.
Nothing works – all traffic sees what is my ip as the very First WAN IP.
this useually wouldn’t be problem other than i have a few remote backup servers that software checks its wan ip and then transfers data on this – and therefore getting lost and not working.