I have a LAN with private IP addresses that I need to route to two ISP's for redundancy and load balancing.
/eth1----------SWITCH --- wireless x.x.x.x/27 public addresses (SNAT --to x.x.x.35-x.x.x.62)
192.168.0.0 LAN ---eth0--linux----|
\ppp0 ---------ADSL (masquerade with this interface)
For the traffic going through wireless interface, I would like to use a range of ip addresses.
ip forwarding - on
proxy arp for eth1 - on
iptables -t nat -A POSTROUTING -o eth1 -s 192.168.0.0/27 -j SNAT --to x.x.x.35-x.x.x.62
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
If I use MASQUERADE or SNAT to interface's real address, everything is OK, but I can't make eth1 advertise x.x.x.35-x.x.x.62 range for ARP.
If I try to ping from 192.168.0.2 to x.x.x.34, on x.x.x.34 host, I receive ICMP request, but it can't reply because eth1 is not replying for ARP requests for x.x.x.35-62.
Any suggestion ?