#!/bin/bash
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
sudo iptables -A FORWARD -i wlan0 -o usb0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i usb0 -o wlan0 -j ACCEPT
#sudo sh -c "echo nameserver 8.8.8.8 > /etc/resolv.conf"
#sudo sh -c "echo nameserver 8.8.4.4 >> /etc/resolv.conf"
