Report comment

I got my error. With the command sudo iptables -S, I got the output as
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
but when I run the rule
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT

problem solved. Now how do I make it autorun? while restart I need to run the rule every time, it's not autostarting after reboot.