I once used my laptop to give my desktop wireless access. You are doing the same thing. The only difference is that I subnetted my network into 192.168.0.0 & 192.168.128.0 with a 255.255.128.0 netmask.
The other computers should use the Linux box's NIC IP address as the default gateway.
On the linux box you need to enable ip_forward
As root: echo 1 >/proc/sys/net/ipv4/ip_forward.
On some Linux systems, this is done in a startup script. On others, you can enable ip forwarding in the network setup program.
IIRC, I still needed to modprobe the ip_conntrack kernel module (or was it tcp_conntrack) for forwarding to work. On recent kernels it is called the nf_conntrack module. The description of the module is that it is used for masquerading, which I wasn't doing, but I still needed this module for forwarding to work.
I don't use ipv6 at all and don't know if something else needs to be done in that case.
|