All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] dial on demand
@ 2002-06-17 14:35 Andreani Luca
  2002-06-17 19:51 ` Greg Scott
  0 siblings, 1 reply; 2+ messages in thread
From: Andreani Luca @ 2002-06-17 14:35 UTC (permalink / raw)
  To: lartc

hi,

I would like to configure my linux box in ordere to have a PPP link as
default gateway.
How can I do this? In particular I want that, when, for instance, I put ping
123.123.123.123, the box automatically connects to my ISP and then
disconnect.
I read the PPP-HOWTO and configured the /etc/ppp/options adding the "demand"
command.
But, how I can add the default route? I usually use an ethernet and then I
put:

route add default gw xyz.xyz.xyz.xyz

but with PPP is not possible, because I can't associate the address with the
interface!

Helps and references are really welcome!

Best regerds,

	Luca Andreani
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [LARTC] dial on demand
  2002-06-17 14:35 [LARTC] dial on demand Andreani Luca
@ 2002-06-17 19:51 ` Greg Scott
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Scott @ 2002-06-17 19:51 UTC (permalink / raw)
  To: lartc

I will take a shot at this:

I think I get what you want - Is this picture accurate?

internal ethernet    Firewall   PPP to the Internet
----------------------+     +---------------------+--
                 eth0 |     | ppp0                |
                     +-------+                ISP Router
                     |       |
                     +-------+ 

So the problem is, you don't know the IP Address of that
ppp interface, right?

If so, why not use the eth0 IP Address as the default gw
for your internal systems?  When the firewall dials out, it
would set up its own routing and forwarding through the ppp0
interface wouldn't it?

As for the default gw of the Linux firewall system itself, 
what about using the IP Address of your end of the ISP's router?
This should be fixed and should be part of the same network as
your ppp0 interface.  

If I'm completely missing the point then apologies in advance.

- Greg



-----Original Message-----
From: Andreani Luca [mailto:landreani@seltatel.it]
Sent: Monday, June 17, 2002 9:36 AM
To: LARTC mailing list (E-mail)
Subject: [LARTC] dial on demand


hi,

I would like to configure my linux box in ordere to have a PPP link as
default gateway.
How can I do this? In particular I want that, when, for instance, I put ping
123.123.123.123, the box automatically connects to my ISP and then
disconnect.
I read the PPP-HOWTO and configured the /etc/ppp/options adding the "demand"
command.
But, how I can add the default route? I usually use an ethernet and then I
put:

route add default gw xyz.xyz.xyz.xyz

but with PPP is not possible, because I can't associate the address with the
interface!

Helps and references are really welcome!

Best regerds,

	Luca Andreani
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-17 19:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-17 14:35 [LARTC] dial on demand Andreani Luca
2002-06-17 19:51 ` Greg Scott

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.