Quote:>I want to use my Linux PC as a gateway to the Internet. I have recompiled
>kernel to use IP forwarding. The Linux PC successfully connects via PPP
>local service provider. From the Linux PC I can ftp to any system on the
>Internet. I also can ftp and ping etc. to all systems on the local
>and vice versa. However I have no access from any other system through
>Linux PC to the Internet.
>The Linux PC has the ppp0 interface as its default gateway (route add
>dev ppp0). The Sun system has the IP address of the Linux PC as its
Your linux box should have 2 IP addresses, one for the PPP connection,
which is supplied by your ISP, and one for the ethernet card. You have to
have a registered class C network for your subnet (Or a portion of a class
C) also from your ISP, and they need to be routing to your subnet.
The default gateway for the linux box should be itself (The IP on the
then whan dialup for your PPP, you use the defaultroute option - example:
I have an IP from my ISP for my PPP account (18.104.22.168)
I have a Class C domain for my subnet (205.246.60.x) which my ISP has set
up routing for.
The ethernet card in the Linux box is 22.214.171.124, Which is what I set as
the default gateway on that box, as well as the other machines on my
I use the following arguments with pppd when dialing into the ISP
/dev/modem 38400 crtscts modem defaultroute 126.96.36.199:
This tells ppp0 to be 188.8.131.52, and once the connection is
establised, to use the link as the default route. Once the link is
established, if i type 'route' to get my route table, the gateway machine
at my ISP is listed as the default route, and all the other machines on my
subnet have access to the internet (For instance i use Win95 on my
pentium, and can run any winsock apps I want).
You also want to make sure you are not defining a default route in your
rc.inet1 file, or the defaultroute option will not work on the pppd
I did have problems with ppp when i originally installed linux, but is was
a really old kernal version (Something like 1.0.9), I went out and got a
current slakware CD set (v1.2 kernal) and have had no problems. Since then
I've upgraded the kernel to the lastest 1.2.13 version, and continue with
Feel free to e-mail me if you have any questions.