[FreeGeek] Linux Routing Help
sim
reallifesim at gmail.com
Mon Jun 11 19:16:03 PDT 2007
Hi Joseph,
On 6/11/07, Joseph LeBlanc <unixd0od at hotmail.com> wrote:
> Hey guys,
>
> Just hoping there's a linux routing guru out there that can give me a hand.
> I'm having some trouble setting up a wireless card in my slackware linux
> router. The router uses NAT to share internet access with all the pc's on my
> wired network. I added a pci wireless card because I'd like to also make
> this pc into an access point so that my laptop can wirelessly access the
> internet and my other pc's on the wired network.
>
> I've got the card installed fine, and the drivers, and the hostapd daemon
> setup and running ok, and I configured my dhcp server to listen on both the
> wired and wireless interfaces. The laptop (running WinXP) can connect to the
> wireless network and obtain an ip from the dhcp server but it can't access
> the internet or any pc's on the network (and those pc's can't access the
> laptop). I think I'm just missing some routing configuration step. So
> essentially I'm trying to bridge the wired and wireless networks and keep
> all clients on the same subnet.
Everything sounds like it is set up properly except your iptables rules.
I'm not sure what you use for a firewall, so I can't tell you exactly
what to do, but if you can find the script (often in /etc/init.d) you
can edit it to set up NAT for both interfaces.
Most NAT scripts use the interface names for the rules, the NAT rules
on your router are probably set up to just work for your LAN
interface. You can probably just copy the rules that reference your
LAN interface and change the copy to your WiFi interface. Probably.
--
sim
More information about the FreeGeek-Van
mailing list