LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2003, 11:33 AM   #1
Angelis
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Fedora Core 4
Posts: 39

Rep: Reputation: 15
Question Running Scripts When Modem Starts Up


Hi Guys!

How do I run scripts (firewall for instance) when my modem connects to the internet

Thanks
 
Old 08-22-2003, 01:39 PM   #2
PhilD
Member
 
Registered: Mar 2003
Location: Iowa, US
Distribution: Gentoo!!, Mandrake 9.1
Posts: 170

Rep: Reputation: 30
You should have some scripts located in /etc/ppp/ by the name of ip-up.local and ip-down.local. (there should be several in there) You can edit these to do what you want them to. Ip-up.local is called from ip-up when ppp is assigned an ip address. Ip-down is just the opposite.

To be fair, I use Mandrake so Red Hat may have slightly different names for the scripts. Look in the directory /etc/ppp. It should be simple enough to figure out.

Hope this helps,

PhilD
 
Old 08-31-2003, 01:46 PM   #3
Angelis
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Fedora Core 4
Posts: 39

Original Poster
Rep: Reputation: 15
thanks, I got that going
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluxbox starts slow/X11 keeps CPU running at 9x% kaon Slackware 0 02-10-2005 12:28 PM
Running programs when x starts kzar Debian 3 08-03-2004 04:49 PM
running a command everytime kde starts Menestrel Linux - Newbie 3 05-22-2004 08:11 AM
Running programs when Flux starts mattp Linux - Newbie 16 03-31-2004 07:07 PM
stopping programs running when linux starts face_master Linux - General 1 02-10-2003 08:04 AM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration