We are forwarding the traffic from WLAN0 to WLAN1 , For this we are using iptables. for this to work first we need to enable IP forwarding. by editing the /etc/sysctl.conf file and uncommenting
net.ipv4.ip_forward=1

Then The following commands Forwards traffic

sudo iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE sudo iptables -A FORWARD -i wlan1 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o wlan1 -j ACCEPT