[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Network routing problem
david.willington@xxxxxxxxxxxx wrote:
> Dear All
>
> I hope someone can help - I've got to the tearing my hair out stage. I've
> moved my office to the garage and want to use a wireless link to a netgear
> router inside the house to provide internet access to machines inside the
> house and inside the garage. One machine (FC4) in the garage has a wireless
> card in it (ra0 192.168.0.100) and an ethernet card (eth0 192.168.1.3).
> There's a laptop in the garage with an ethernet card in (eth0 192.168.0.5).
> I can do the following
>
> from the FC4 machine (two cards, should act as a router) ping 192.168.0.1
> (the netgear router) and ping the outside world
> ping 192.168.1.5 (the other wired machine in the garage)
>
>>From laptop in the garage (192.168.1.5) I can ping 192.168.1.3 (eth0 on the
> router in the garage) and 192.168.0.100 (the wireless card on the router in
> the garage).
Just checking silly stuff
1. default gw on the lappie is set to 192.168.1.3 ?
2. default gw on the wireless side of the FC fw/router box is 196.168.0.1 ?
I have a four box setup here with OpenBSD and 3 nic cards in it. Once
you've set the default gateways you should be able to get through to the
netgear router. They need to be one hop away. If gws aren't set
properly then lappie will see router but not know how to get to much else.
>
> I can't ping 192.168.0.1 (the netgear router) or get any further from the
> laptop in the garage.
>
> As far as I know ip forwarding is on on the router (cat
> /proc/sys/net/ipv4/ip_forward outputs 1) and I've tried to use iptables to
> set up NAT masquerading on the router in the garage (iptables -A
> POSTROUTING -t nat -o ra0 -j SNAT --to 192.168.0.100)
Well I use OpenBSD for this and that nats okay. Suggest a good read of
a NAT how to if the default gw suggestion doesn't work. googling for
iptables howto gives
http://iptables-tutorial.frozentux.net/iptables-tutorial.html
which may or may nor be useful.
>
<snip>
HTH
Good luck
L.
_______________________________________________
Sheffield Linux User's Group
http://www.sheflug.org.uk/mailfaq.html
GNU - The choice of a complete generation