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


Hate these ads?
















> >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

















Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner





Views for this page
Today This Week This Month This Year  Overall
2311131 882

/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

More:
       - Newsgroup




Unix/Linux Consultants

Your ad here - $48.00 yearly!

SCO, OpenServer, UnixWare, software, servers, security, networks, installation, administration, troubleshooting, maintenance, Watchguard, firewalls, VPNs, e-mail. Visit us at http://opensystemscomputing.com and www.go2unix.com.


larryi@ccamedical.com SCO OS5, Debian Linux, RedHat Linux, MySQL, Apache, AJAX development using dXport/dL4/Unibasic, Windows Connectivity, Sharing Resouces, Automation, Shell Scripting


http://www.cleverminds.net Need expert advice? Want a second opinion? CleverMinds is a one-stop-shop for a wide range of technology solutions. We support Unix, Linux, SCO as well as CMS, ecom, blogs, podcasts, search engines consulting and more. Contact us at web2.0@cleverminds.net 0r (617) 894-1282



Twitter
  • Nov 19 17:29
    Cold today.. walked from South Station to Back Bay and later returned. Fingers hurt.. head hurt.. nice walk though :-)
  • Nov 19 17:28
    My voice mail suddenly gave me a pile of deleted messages - causing me confusion and stress as I thought things I fixed were broken again.




card_image








Change Congress


Related Posts