Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-19-2006, 03:13 AM
|
#1
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Rep:
|
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
|
|
|
07-19-2006, 05:02 AM
|
#2
|
Member
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75
Rep:
|
check your iptables rules
check after 5 min your iptables rules iptables -L
|
|
|
07-19-2006, 05:31 AM
|
#3
|
Moderator
Registered: May 2001
Posts: 29,415
|
Check crontabs for scripts that reload iptables?
|
|
|
07-20-2006, 11:00 AM
|
#4
|
Member
Registered: Mar 2004
Posts: 135
Rep:
|
it is very likely that some other scripts get exectued and replaced your rule. Like cron job.
|
|
|
07-25-2006, 02:38 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
how did it go with this, Niceman2005??
was it a cron thing?? state table issue?? ghost in the machine??
|
|
|
07-25-2006, 03:15 AM
|
#6
|
Member
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330
Original Poster
Rep:
|
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....
|
|
|
All times are GMT -5. The time now is 01:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|