Wifi to Ethernet

sudo nano /etc/rc.local, add:

iptables-restore < /etc/iptables.ipv4.nat

edit wpa_supplicant.conf:

network={

ssid="zeshonet"

psk="zain2016"

}

/etc/network/interfaces

auto lo

iface lo inet loopback

auto wlan0

allow-hotplug wlan0

iface wlan0 inet manual

wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

/etc/dhcpcd.conf:

interface eth0

static ip_address=192.168.220.1/24

static routers=192.168.220.0