Vinicius Massuchetto wrote at 2009-10-10 08:44 -0500: > On Fri, Oct 2, 2009 at 4:03 PM, green <greenfreedo...@gmail.com> wrote: > > Here is one way: > > 1. Set the IP address statically on the laptop for eth0 (192.168.0.1). > > I did this. My eth1 is on 192.168.1.1.
eth0 is on the WAN/internet side? > > 2. Set up a DHCP server (I use dnsmasq) on the laptop, listening on eth0. > > And this: > $ cat /etc/dnsmasq.conf > domain-needed > bogus-priv > interface=eth1 > dhcp-range=192.168.1.3,192.169.1.100,12h That looks okay; hopefully nothing is missing. > > 3. Configure the DHCP server to give the router a specific IP address, using > > the MAC address of the router (IP 192.168.0.2). > > The router configuration allows me to fix its IP. Is it still necessary? > The router is on 192.168.1.2 That should work. > > 4. Disable the DHCP server on the router. > > I did this too. On LAN and WLAN interface. Good. > > 5. Install the ipmasq package, and configure as necessary. > > ipmasq is not available on sid. What package replaces it? Well, I'm not sure. I've always just used the ipmasq package. You could try echo 1 > /proc/sys/net/ipv4/ip_forward To apply this permanently put the following line in /etc/sysctl.conf: net.ipv4.ip_forward=1 If that doesn't work, maybe someone else knows how. I'm sure you can do it with nothing more than Linux + iptables, but I don't know how.
signature.asc
Description: Digital signature