On Friday 19 October 2001 16:23, you wrote:
> Hi,
>
> I've got LM 8.0 installed.
> What is the best way to organize dial on demand for several
> linux/win/mac boxes.
>
> Thanks
>
>                   Alex

Here's another method that is a bit more work initially, but I find that is 
works well.

As root...

In /etc/ppp/peers create a file.  Name it for your isp, eg: 
/etc/ppp/peers/la-tierra.  Put the following lines in the file.

/dev/modem 115200 crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/chat-la-tierra'
noauth user yourusername

In /etc/ppp create a chat file called chat-isp.  Mine is chat-la-tierra.
Enter the following:

TIMEOUT 40
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT ERROR
ABORT "NO ANSWER"
ABORT BUSY
ABORT "Username/Password Incorrect"
"" ATZ
OK AT&F1
OK ATDT5555555
CONNECT ""

replace the 5555555 with your isp's phone number

Modify your /etc/ppp/options file as follows:

lock
defaultroute
192.168.1.101:192.168.1.102
ipcp-accept-remote
ipcp-accept-local
demand
holdoff 5
idle 300

The 'demand' entry is what makes dial-on-demand work.  The ip addresses on 
the third line are dummies and must not exist on your local subnet.

If your isp uses PAP or CHAP:
Modify your /etc/chap-secrets and /etc/pap-secrets as follows:
add the line
username * password *

If your isp requires a login script(EXPECT SEND pairs), add the script to the 
end of your chat-isp file.

Enter your username and password of course.  These entries should be 
separated by tabs.  Both of these files are essentially the same.  The 
permissions for these files should be set to 0600 or pppd will complain.

Modify /etc/sysconfig/network
change FORWARD_IPV4=false to FORWARD_IPV4=true
remove any lines that start with GATEWAY or GATEWAYDEV

To start pppd at boot, add the following to the end of your 
/etc/rc.d/rc.local file.

/usr/sbin/pppd call isp

on your other computers, set the gateway entry to the ip of your linux box 
and the DNS entry to the ip of your isp's DNS server and dial-on-demand 
should work from any computer on your local subnet without the need for being 
logged into the Linux box.

Much more detail can be found on mandrakeuser.org.

This setup makes it fairly easy to reconfigure when upgrading if you back up 
your /etc directory prior to the upgrade and restore the appropriate files.

There is a caveat.  You will probably need to install and setup iptables to 
keep netbios name requests from your windows machines from triggering the 
dialer.

hope this helps.




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to