LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-19-2006, 03:13 AM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
firewall script works for few minutes


Dear friends,

On one of my proxy machine, there runs a firewall script written by my senior. Now I am trying to replace that firewall script with one of my own. I have got one, i name it testing.sh.

so i run the script ./testing.sh

it runs, people can surf normally. I thought it work, but after a few minutes, no one can surf anymore. So I have to do service iptables restart to reload the original firewall written by my senior.

My problem here is why my script only work for few minutes and never work after that. I am sure the script is ok, because I was able to run things smoothly after I run it, it only stop working after say 5 mins.

And everytime if I service iptables restart and it reload the original firewall script, everything work again...
So basiclly what I am saying is, my script works, it only works for say 5 mins...anyone know what is actually wrong?

there seems to be nothing wrong in my script...but don't know why it never work long...

pls help me...thanks for taking time reading my thread...

Regards
Y
 
Old 07-19-2006, 05:02 AM   #2
abakali
Member
 
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75

Rep: Reputation: 15
check your iptables rules

check after 5 min your iptables rules iptables -L
 
Old 07-19-2006, 05:31 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Check crontabs for scripts that reload iptables?
 
Old 07-20-2006, 11:00 AM   #4
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
it is very likely that some other scripts get exectued and replaced your rule. Like cron job.
 
Old 07-25-2006, 02:38 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
how did it go with this, Niceman2005??

was it a cron thing?? state table issue?? ghost in the machine??
 
Old 07-25-2006, 03:15 AM   #6
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Hi!

haha sorry I am still lookin at it...just now I tried again. I checked the cron, nothing to reload the fw script....I can't figure out what is wrong....I loaded my own fw script, it works for say 15mins then stop working again.......this problem is really weird....
 
Old 07-25-2006, 03:36 AM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
do the rules change?? this sounds similar to this thread BTW:

http://www.linuxquestions.org/questi....php?p=2325026
 
  


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
ndiswrapper works - disconnects after few minutes Darkhack Linux - Wireless Networking 3 01-04-2006 03:44 AM
Why my Wireless USB works for only a couple minutes Isthisnametaken Fedora 2 10-18-2005 09:51 AM
a script that runs wget every 3 minutes Menestrel Programming 3 07-26-2005 12:22 PM
howto run a script from cron every 5 minutes except 11pm-8am ? cccc Programming 2 03-20-2005 04:52 AM
a script that runs every 5 minutes? zovres Linux - Newbie 5 08-19-2003 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:06 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
Open Source Consulting | Domain Registration