PPP link works but none of the routing is working

PPP link works but none of the routing is working

Post by PullnOutHa » Thu, 26 Feb 2004 23:57:22



This is my network setup as it stands.

                ************
                * firewall * 10.0.0.1
                ************
                      |
            ----------------------------
            |       |     .....        |
            |   10.0.0.3          10.0.0.254
            |
   ******************10.0.0.2
   *linux ppp server*
   ******************10.0.1.1
            |
   ------------------------------------
   |         |          ....          |
 10.0.1.2 10.0.1.3              10.0.0.254

where the 10.0.1.xxx subnet is a ppp subnet with 200+ clients all
connected via modems.  Currently I can get the ppp link up and running
and I can ping the ppp server but cann't get to anything outside of
that.  I need to run NAT so that I can access the ppp client machines
from inside the original 10.0.0.xxx subnet.  Are there any great
tutorials or How-to's that relate?  I haven't found any relevant docs
yet.  Also is there a way to use diald on the server so that it will
call any of the clients when they have traffic?  I have seen how to
make the client call the server when there is traffic but is there a
way to reverse this to 250+ different phone numbers?

 
 
 

PPP link works but none of the routing is working

Post by joseph phili » Sat, 28 Feb 2004 14:55:48



> This is my network setup as it stands.

>                 ************
>                 * firewall * 10.0.0.1
>                 ************
>                       |
>             ----------------------------
>             |       |     .....        |
>             |   10.0.0.3          10.0.0.254
>             |
>    ******************10.0.0.2
>    *linux ppp server*
>    ******************10.0.1.1
>             |
>    ------------------------------------
>    |         |          ....          |
>  10.0.1.2 10.0.1.3              10.0.0.254

> where the 10.0.1.xxx subnet is a ppp subnet with 200+ clients all
> connected via modems.  Currently I can get the ppp link up and running
> and I can ping the ppp server but cann't get to anything outside of
> that.  I need to run NAT so that I can access the ppp client machines
> from inside the original 10.0.0.xxx subnet.  Are there any great
> tutorials or How-to's that relate?  I haven't found any relevant docs
> yet.  Also is there a way to use diald on the server so that it will
> call any of the clients when they have traffic?  I have seen how to
> make the client call the server when there is traffic but is there a
> way to reverse this to 250+ different phone numbers?

Enable ip forwarding on your ppp server.
echo 1 > /proc/sys/net/ipv4/ip_forward

Enable SNAT on the ppp server.

iptables -t nat -A POSTROUTING -i $EXTIF -j SNAT --to 10.0.0.2

 
 
 

PPP link works but none of the routing is working

Post by PullnOutHa » Sun, 29 Feb 2004 01:17:37


Thanks, the routing is now pretty much working.  I just have some
cleanup left to do so that the links work properly and reliably.

 
 
 

1. PPP working, /etc/ppp/ip-up not working, HELP Please

The title explains it all. . .

Current status:  I walked through the entire ppp document again, and was
able to create a chat script to autologin using information inside the
/etc/ppp/options file, ppp-on, ppp-on-dialer, and ppp-off.

But I can't get ip-up to run.  I was careful to follow the exact
tutorial that the PPP HOWTO gave, and it wouldn't run.

In /var/log/messages I can see 'cannot execute /etc/ppp/ip-down, Exec
format error'

It indeed was not the correct format.  I have added a #!/bin/sh to the
first line, and have changed this to #!/bin/bash, and have messed with
all kinds of permissions.  Inside each corresponding file I just edited
down each file until they say:

echo IPUP is RUNNING > ipup.log

or

echo IPDOWN is RUNNING > ipdown.log

And I can run these files by hand and they work, but damned if it will
run with a ppp network layer comes up.  ip-down looked like it has tried
to run as mentioned above, but I can't recreate it.  ip-up has never
tried, according to the /var/log/messages.  I bring the ppp connection
down using ppp-off.  I also have added recommendations accordingn to
documentation and they don't run with exact syntax lifted from these
documents.

I am completely stumped.  Can anyone help?   I cannot find anything
anywhere that gives me a clue about what I might be missing.

I can manually alter the client routing on dialup, and I have an idea on
how to get the server side to alter the routing based on a mickey mouse
script I can write, but it is not the way it should work. If ip-up and
ip-down worked, it would be a piece of cake.  But I can't figure out
this last piece. . .

Help anyone??  Thanks, I would be very grateful.  Have installed and run
several other items under Linux and it all makes sense.  Have used dip
sacripts as well as chat scripts, and they all work fine.  But
/etc/ppp/ip-up and ip-down just flat aren't executing and I can't figure
out why.

Am running PPPD 2.2 under RedHat Linux 4.0.  Everything else works like
a champ.

tx, david

-------------------------------------------------

-------------------------------------------------

2. UMSDOS trouble with 2.0.10. No init process.

3. "Never Logged In" problem solved ... THANKS

4. Linux on Dell Inspiron 7000

5. RIPQUERY works with routed but it does not work with gated???

6. Setting up linux and Netscape

7. Advanced Routing: How does linux detect a non-working network link?

8. PPP connection:Windows works, Linux stopped working

9. ppp-2.2 doesn't work whereas ppp2.1.2d works - why?

10. PPP connection works well ,while SLIP connection doesn't work,why and how?

11. Routing for a ppp client via another ppp link - possible?