iptables in a difficult configuration
hi,
here's my configuration
internet->router1->linuxbox->router2->pc
how would I go about setting up iptables?
tried different things but no avail.
e.g.
Code:
/sbin/iptables -t nat -A POSTROUTING -o ath0 -j MASQUERADE
/sbin/iptables -A FORWARD -i ath0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o ath0 -j ACCEPT
where ath0 is between router1 and linuxbox and
eth0 is between linuxbox and router2
still no internet on the pc, even though i can ping router2 on the linuxbox.
any help?
thanks in advance