[Techtalk] routing question

Ricardo Dalceno 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
--to 192.168.2.25

It should work, if you don't want access to the PC from 192.168.1.0 or
192.168.2.0.


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
> my
> poor old brain has forgotten how. Here is the setup:
>
> Internet
> |
> local router/WAP: 192.168.1.10, 192.168.2.10, 12.34.56.78 (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
> ping
> 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
> can
> access the rest of the LAN. I have the default gateway on the wired PC set
> to
> 192.168.3.10.
>
> So what am I doing wrong? Or better, how do I do it right?
>
> thanks!
> Carla
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Carla Schroder
> check out the shiny new Linux Networking Cookbook!
> Chock full o' step-by-step howtos for network admins!
> http://www.oreilly.com/catalog/9780596102487/
>
> many more Linux howtos at
> http://tuxcomputing.com/
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>


More information about the Techtalk mailing list