Solved my own problem ... I just had to add the IP for each in the list,
such as:
ip addr add 1.2.3.4/24 dev eth0
--
Joe Drago
StreamLine Communications
Joe Drago <(E-Mail Removed)> wrote in
news:Xns950859C224D8Djoedragosl@129.250.35.204:
> The Netfilter NAT HOWTO shows this as an example to source NAT to
> multiple source IPs:
>
> iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 1.2.3.4-1.2.3.6
>
> I've successfully gotten this to work as expected if I use a single
> "--to" address, and the Internet interface -uses- that address, but it
> fails every time I try to use a multiple SNAT list, and I feel that it
> is because my machine is not answering ARP requests for those other
> IPs. Do I need to add a subinterface for each IP I want to SNAT to? Or
> is there a much simpler command I haven't learned yet?
>
> Thanks in advance.
>
|