Try removing the interface names (-i wlan0 -o wlan2
) from the first FORWARD chain rule. Also, the "state" extension has been superseded by "conntrack".
This should work:
sudo iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT