Yeah, specify an input interface (-i) and/or source IP range (-s) in the iptables rule.
e.g.
Code:
iptables -t nat -A POSTROUTING -i eth2 -o eth0 -j MASQUERADE
or
Code:
iptables -t nat -A POSTROUTING -s 172.16.1.1/<netmask> -o eth0 -j MASQUERADE
where <netmask> is the interface's netmask, seeable with
Code:
ip addr show dev eth2