Re: gateway problems

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I am trying to set up a local network consisting out of two laptops
> under SuSE 8.0 (kernel 2.4.18). The modem on my laptop is not working unde
> r linux, so I want to use the other computer as a gateway. After dialing
> in via modem on the other laptop, the routing
> tables are looking like the following:
>
> - computer 1 (141.30.17.252):
> Kernel IP Routentabelle
> Ziel            Router          Genmask         Flags Metric Ref    Use
> Iface
> 141.30.17.252   0.0.0.0         255.255.255.255 UH    0      0        0
> eth0 141.30.17.0     0.0.0.0         255.255.255.0   U     0      0       
> 0 eth0 0.0.0.0         141.30.17.253   0.0.0.0         UG    0      0      
>  0 eth0
>
> - computer 2 gateway (141.30.17.253):
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 62.104.204.34   0.0.0.0         255.255.255.255 UH    0      0        0
> ppp0 141.30.17.0     0.0.0.0         255.255.255.0   U     0      0       
> 0 eth0 0.0.0.0         62.104.204.34   0.0.0.0         UG    0      0      
>  0 ppp0
>
>  From 141.30.17.252 I am able to connect to 141.30.17.253 in our local
> network, but I do not have access to the outer space. I even cannot ping
>  to 62.104.204.34. On 141.30.17.252 I have a pcmcia network card and the
> other computer has a internal network card.  I am running out of idea
> s how to get the network working and would appreciate all suggestions.
> Michael.
Have you a kernel with ip forwarding and have you enabled it ?
echo "1" > /proc/sys/net/ipv4/ip_forward

And have you same basic masquing rules ?
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux