Hi!
I've been trying to set up a router/gateway for my LAN on Slack for a while.
I got to say that i am a total newb to networking interiors and those HOWTOs and Tutorials just didn't work for me (my error/not suited for my problem).
My slack box has got 2 network cards:
one for LAN: eth0, set up as 192.168.0.1 255.255.255.0
one for WAN: eth1, set up as 192.168.1.11 255.255.255.0
eth1 is connected to my ADSL-modem (ip 192.168.1.11)
eth0 is connected to a switch/wlan AP (ip 192.168.0.99)
Now I got internet up and working, but how do i have to configure (iptables or route or something??) so that I can get internet access from a pc that is connected via wlan to the switch/AP and from there to my pc? On this machine, the one i want to give internet access, i use a static ip (192.168.0.11) as i do on all the computers on my LAN.
Note: I got the same setup on WinXP and it works, gateway on the client is set to 192.168.0.1
I can ping all the machines/switches/modems on my LAN, but I don't get the routing rules right...
Thanks in advance!
Any hints or links to info i got to read would be enough
I really am willing to learn, just don't know where to start.
another question btw: i got the drivers for my nics statically compiled in the kernel: how does the kernel decide which physical card becomes eth0, eth1, ethX??? Any links to manuals, docs or even RFCs will be greatly appreciated!
PS: sry for any lang typos/errors, no native, but i'm trying