# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface # allow-hotplug eth0 iface eth0 inet static address 192.168.0.7 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 192.168.0.1 auto wlan0 iface wlan0 inet static address 192.168.0.7 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 192.168.0.1 dns-search local dns-domain local wpa-ssid MotoGuzzi wpa-psk ---- #iface wlan0 inet dhcp # essid Freewave # wpa-ssid airaccess # essid metalab_802.11g_NOCRYPT allow-hotplug n900 auto n900 iface n900 inet static address 192.168.2.7 netmask 255.255.255.0 up iptables -A POSTROUTING -t nat -s 192.168.2.15/32 -j MASQUERADE up echo 1 > /proc/sys/net/ipv4/ip_forward down iptables -D POSTROUTING -t nat -s 192.168.2.15/32 -j MASQUERADE down echo 0 > /proc/sys/net/ipv4/ip_forward gateway 192.168.2.15 dns-nameservers 192.168.2.15