The problem: the computers [Xbox 360 and a Kubuntu 12.04.1 laptop] can't access Internet through a recently-installed desktopless Debian 6 laptop (which is wirelessly connected to a WLAN station) but addresses are successfully given by
/etc/dnsmaq.conf conffed according to http://wiki.debian.org/HowTo/dnsmasq: add lines
1.2) Follow http://www.cyberciti.biz/faq/rhel-fedora-linux-internet-connection-sharing-howto/ and use their script to setup iptables.
2) Follow the Ubuntu Internet Gateway Method (iptables) at https://help.ubuntu.com/community/Internet/ConnectionSharing recommended and which worked at Share internet in Linux.
The Debian laptop was rebooted many times and between each attempt, with and without the script auto-executing via
While adding the
iptables-restore command to that file I disabled the script.
Gateway is pingable and averages 39ms.
iptables -nvL with attempt #2 in effect, direct writing from the laptop's monitor after executing:
Chain INPUT (policy ACCEPT 179 packets, 26088 bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- wlan0 eth0 192.168.0.0/24 0.0.0.0/0 ctstate NEW 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED Chain OUTPUT (policy ACCEPT 88 packets, 10716 bytes) pkts bytes target prot opt in out source destination
iptables -t nat -nvL:
Chain PREROUTING (policy ACCEPT 232 packets, 56438 bytes) pkts bytes target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 60 packets, 4059 bytes) pkts bytes target prot opt in out source destination 4 1032 MASQUERADE all -- * eth0 0.0.0.0/0 0.0.0.0/0 Chain OUTPUT (policy ACCEPT 64 packets, 5091 bytes) pkts bytes target prot opt in out source destination
EDIT 3: I tried https://www.debian-administration.org/articles/23 by telling /etc/rc.local to run it, and it alone, but still exactly same problem. This time I switched eth1 with wlan0.