auto lo iface lo inet loopback #iface eth0 inet dhcp iface eth0 inet static address 192.168.1.30 netmask 255.255.255.0 gateway 192.168.1.150 auto wlan0 #Normal Wifi Mode #allow-hotplug wlan0 #iface wlan0 inet manual #wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf #ACCESS POINT MODE iface wlan0 inet static address 192.168.4.1 netmask 255.255.255.0 up iptables-restore < /etc/iptables.ipv4.nat