LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 10: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, 12:39 PM   #2
PhilD
Member
 
Registered: Mar 2003
Location: Iowa, US
Distribution: Mint
Posts: 174

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, 12: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 11:28 AM
Running programs when x starts kzar Debian 3 08-03-2004 03:49 PM
running a command everytime kde starts Menestrel Linux - Newbie 3 05-22-2004 07:11 AM
Running programs when Flux starts mattp Linux - Newbie 16 03-31-2004 06:07 PM
stopping programs running when linux starts face_master Linux - General 1 02-10-2003 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:09 AM.

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
Open Source Consulting | Domain Registration