First sorry for reviving such an old post back but I have a question.
I also have a Class-C /29 static ips (5 usables)....
My question is can this same script be used to route an ENTIRE bridge/vlan?
for example. I have 192.168.1.x (br0), 192.168.2.x (vlan6), 192.168.3.x(br1), and 192.168.4.x(vlan10)
I want to route all traffic in & out on
WAN ip xxx.xxx.221.99 with 192.168.1.x <---br0
then WAN ip xxx.xxx.221.98 with 192.168.2.x <---VLAN6
then WAN ip xxx.xxx.221.100 with 192.168.3.x <---br1
and so on? <---VLAN10
Will that work?
Because right now, modifying the script to use 192.168.3.1 (gateway) doesn't seem to work because everytime I go on the 192.168.3.1 subnet and do a whatismyip, I always get the static IP I used in the WebGUI setup. VLAN2 is the WAN interface (Broadcom Soc)
Using 192.168.3.0/24 will route the entire subnet. However, I am not sure why item line 4 is added in the POSTROUTING and nothing shows up in the PREROUTING to the iptables. _________________ ASUS RT-AC3200 - Deployed Client's site
ASUS RT-AC5200 - Merlin
ASUS RT-AX88U - Merlin