PPP solution and DNS question (Was: PPP problems)


Subject: PPP solution and DNS question (Was: PPP problems)
From: Paul J. Lucas (pjl@barefooters.org)
Date: Sun Mar 05 2000 - 16:30:22 MST


On Sat, 4 Mar 2000, Jim Cole wrote:

> It can be done.

        You're right. I'm replying to this e-mail right now from my
        PowerBook. Woohoo! :) I do have an additional question at the
        end (so please make sure you read that far!).

        Unless I've missed it, this information should be on YDL's web
        site.

        I RTFM and have modified your setup given below. IMHO, this
        kind of setup is over-kill for a PowerBook that will (most
        likely) ever have only one user and one modem; hence, it's more
        applicable to desktop Macs; but, if I ever get a desktop Mac
        running Linux, I'll have a head start.

                # /etc/ppp/options
                /dev/ttyS0
                defaultroute
                demand
                hide-password

                # /etc/ppp/options.ttyS0
                57600
                asyncmap 0
                crtscts
                disconnect "/usr/sbin/chat -- \d+++\c\d OK ATH0 OK"
                lock
                modem

        I split out the modem-independent and modem-dependent options
        into two files: pppd supports this directly.

                # /etc/ppp/peers/best
                205.149.180.188:204.156.128.1
                connect '/usr/sbin/chat -v -f /etc/ppp/scripts/best-chat'
                domain best.com
                mtu 500
                name pjl
                passive

        Here I've created a separate peer file (best.com is my ISP). I
        specify best-specfic options here. Having separate files is
        nice if you have more than one ISP. Again, pppd directly
        supports this.

        I specify my local static IP address (I love my static IP
        address and they'll have to pry it out of my cold, dead fingers
        to get it away from me) and the IP address of the Unix box that
        I'm connecting to.

        By using a peer file, my call to pppd in my pppup script
        reduces to:

                /usr/sbin/pppd call best

        Nice. My best-chat script is:

                ABORT "BUSY"
                ABORT "ERROR"
                ABORT "NO ANSWER"
                ABORT "NO CARRIER"
                ABORT "NO DIALTONE"
                REPORT CARRIER
                REPORT CONNECT
                "" AT&C1E1%E2L1M1Q0S0=0V1X4 TIMEOUT 5
                OK ATDT964-0240 TIMEOUT 30
                CONNECT "\c"
                ogin:--ogin: <login>
                assword: <password>

        I got a copy of Apple's AT command set from their tech info
        library. Most of the options I specified are the defaults, but
        I'd rather explicitly set them to ensure they're right.

        ----------

        OK, and now my question. I've realized that the ethernet IP
        address can be different from the PPP IP address. For me, this
        is great because when I am at home, I want to connect to my ISP
        via PPP via the static IP address they assigned me; when I am
        at work, I plug an ethernet cable and use THAT IP address
        behind my company's firewall.

        However, it seems like I'll always have to keep flipping
        /etc/resolv.conf around: one config for home and the other for
        work so I can point my PowerBook at the right DNS servers and
        search domain.

        Is there an easier way to handle this?

        - Paul



This archive was generated by hypermail 2a24 : Sun Apr 02 2000 - 21:09:29 MDT