Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] gateway problems
Date: Mon, 19 Aug 2002 18:42:16 +0000	[thread overview]
Message-ID: <marc-lartc-102978262113733@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102977511504940@msgid-missing>

> 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/

      reply	other threads:[~2002-08-19 18:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-19 16:39 [LARTC] gateway problems Michael Graupner
2002-08-19 18:42 ` Stef Coene [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-102978262113733@msgid-missing \
    --to=stef.coene@docum.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox