APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS














(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



ppp routing pphooks.sh


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From - Mon Oct  1 14:43:42 2001
Path: typhoon.ne.mediaone.net!chnws06.ne.mediaone.net!24.147.2.43!chnws02.mediaone.net!newsfeed2.skycache.com!newsfeed1.cidera.com!Cidera!cpk-news-hub1.bbnplanet.com!news.gtei.net!newshub2.home.com!news.home.com!news1.rdc1.nj.home.com.POSTED!not-for-mail
From: "Brian K. White" <brian@aljex.com>
Newsgroups: comp.unix.sco.misc
References: <9p18hr$jkc$1@neptunium.btinternet.com> <bq19rt4dcagad7gu1r3pn8n369gcmqktuf@4ax.com> <DE8t7.7910$c8.1076376@news1.rdc1.nj.home.com> <vsubrts64madmu4d27leivtbtpqditkd5d@4ax.com> <1Cqt7.13657$c8.1749739@news1.rdc1.nj.home.com> <m5hert4to4ug77897cq66uf0of4sblq0j5@4ax.com> 
Subject: Re: Routing question
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Message-ID: <0HIt7.18709$c8.2382392@news1.rdc1.nj.home.com> 
Date: Sun, 30 Sep 2001 17:32:44 GMT
NNTP-Posting-Host: 24.253.240.158
X-Complaints-To: abuse@home.net
X-Trace: news1.rdc1.nj.home.com 1001871164 24.253.240.158 (Sun, 30 Sep 2001 10:32:44 PDT)
NNTP-Posting-Date: Sun, 30 Sep 2001 10:32:44 PDT
Organization: Excite@Home - The Leader in Broadband http://home.com/faster
Xref: chnws06.ne.mediaone.net comp.unix.sco.misc:103950





> >In any event, has anybody told him yet that he can put commands in
> >/etc/ppphook.sh that add-remove routes and manipulate pre-made copies of
> >/etc/hosts and /etc/resolv.conf so that these files that I'm saying
should
> >be able to go without being changed all the time, can also be changed
> >automatically whenever pppattach and ifdown ppp0 is run ?
>
> I usually add them to whatever script calls the dialer for a specific
> ISP.  Putting it in /etc/ppphook.sh will work, but will need to be
> stuffed full of conditionals for each ISP.  Methinks seperate files
> for seperate ISP's would be better.

Yeah me too, but then we are into describing how to make a ppp up/down
script modeled after quickppp found on tony lawrences site. not trivial imo.
It seems putting the commands in such a start/stop script makes them happen
faster too. ppphook seems to take an inexplicably long time to be called
after the connection is up.

actually, taking another look at ppphook just now... it's trivial to do the
default route from there, it's just
route add default $6
well, as long as you are only using ppp to initiate connections to the
internet. If you had a net connection, but wanted to start a ppp connection
to a remote office for some non-internet task, this would screw up the
default route, which should have been left alone in that case.
But the nameservers would be completely impractical from there unless you
are lucky enough to be able to get away with just setting the nameserver to
the ip of the other end of the ppp link. really need an up/down script for
each isp otherwise. it's easy from there.

--
Brian K. White  --  brian@aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani









Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


LOD Communications, Inc.


/Bofcusm/841.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress