Click to See Complete Forum and Search --> : Dial On Demand with pppd, ip masqurading??


Ice0
11-05-2000, 02:05 AM
Hey All,

I was hoping that someone could possibly help me with a problem that I'm going to have...

I will have one Win98 box, and 2 linux boxes one acting as the router and firewall, I want the Linux and Win98 boxes to use the router for their internet access.

Theres one prob, I'm on a 56k modem, and get disconnected every two hours, and sometimes the connection gets terminated by itself http://www.linuxnewbie.org/ubb/frown.gif - I want the router to start pppd if it isn't already connected to the net if one of the box's want a net connection...

Oh and the Linux boxes will be running Redhat 6.1... and I heard somewhere that the latest version of pppd provides dial-on-demand, however looking at the change logs for pppd on freshmeat and on the ftp site I can't find mention of it anywhere.. :/

Help?! heh...

As usual, any help greatly appreciated http://www.linuxnewbie.org/ubb/biggrin.gif

Thanks, Jamie
jamie@inetezine.org
Power to the penguin!

Morphius
11-06-2000, 05:25 PM
Your setup sounds verys similiar to what I already have setup. Just FYI, when all is said and done and working, you'll love it. :-)

About the dial-on-demand: some programs such as wvdial will automatically redial upon a disconnection. However, if you actually start your connection using ppd, adding "demand" should cause make the daemon dial on demand.

For my setup, I use a hybrid cablemodem to connect to the internet, meaning outgoing data travels on a phone line, incoming data over coaxial cable. Therefore, I have to dial in to connect to the net. My ISP disconnects me after 30 minutes of inactivity, so what i did was setup a cron job to ping a site every 20 minutes. Perhaps something similiar will work for you. Also, in case of a chance disconnection, I have a script that will check for a net connection every 10 minutes and, if there isn't one, the computer redials. Now, wvdial may try an infinite number of times to reconnect upon disconnection. I'm not extremely familiar with the program. If so, this will mean you'll be connected until you decided to manually disconnect the machine. Just something to be aware of if you desire it or not.

I hope that made some sense. If you have anymore questions, ask away.

Morphius
- Who draws the line that determines where here stops and there begins?