[Techtalk] routing question
rddalceno at gmail.com
Mon Oct 6 15:20:32 UTC 2008
Have you tryed to use iptables ?
iptables -t nat -A POSTROUTING -s 192.168.3.0/24 -d ! 192.168.3.10 -j SNAT
It should work, if you don't want access to the PC from 192.168.1.0 or
Ricardo "j0k3r" Dalceno
2008/10/6 Carla Schroder <carla at bratgrrl.com>
> I want to use a wireless laptop as a temporary router for a wired PC. But
> poor old brain has forgotten how. Here is the setup:
> local router/WAP: 192.168.1.10, 192.168.2.10, 220.127.116.11 (Internet)
> laptop 192.168.2.25 (wireless), 192.168.3.10 (wired)
> wired PC 192.168.3.11
> I have IP forwarding turned on in the laptop. The laptop and wired PC can
> each other, and the PC can ping both laptop addresses. But I can't get past
> that- can't ping the router or get Internet. The laptop has Internet and
> access the rest of the LAN. I have the default gateway on the wired PC set
> So what am I doing wrong? Or better, how do I do it right?
> Carla Schroder
> check out the shiny new Linux Networking Cookbook!
> Chock full o' step-by-step howtos for network admins!
> many more Linux howtos at
> Techtalk mailing list
> Techtalk at linuxchix.org
More information about the Techtalk