LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-07-2003, 12:29 AM   #1
kurtroach
LQ Newbie
 
Registered: Jun 2003
Posts: 1

Rep: Reputation: 0
Problem with iptables on system startup


I have iptables acting as a NAT gateway for a home LAN on a single cable connection. A gateway script is run from the /etc/rc.d/init.d/iptables script that sets up the iptables rules that i need.

I think for some reason or another the rules applied by the gateway script are being flushed soon after they're applied. This only happens during startup though, so I'm guessing something else run afterwards is flushing the iptables rules.

I can manually run /etc/rc.d/init.d/iptables or even just the gateway script /etc/iptables/eth1-gateway.sh and everything works as I expect it to.

I know that the script is being run because I put a line in the gateway script /etc/iptables/eth1-gateway.sh that creates a file in my home directory. This file is created every time with the correect contents so I know the line (and therefore the gateway script) are being run at startup.

Anyone have any idea why this is happening?
 
Old 06-07-2003, 05:20 PM   #2
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
What distro?

If RedHat, do you have Lokkit installed?
 
Old 06-08-2003, 07:03 PM   #3
pjcp64
Member
 
Registered: Dec 2002
Location: Omaha, NE
Distribution: Ubuntu Server and SuSE
Posts: 69

Rep: Reputation: 15
1. Run your iptables scripts.
2. iptables -L ==> will show the current rules
3. repeat until they get flushed.
4. look at the cron log to see a list of suspects.
Of course, the following could be placed in cron.
* * * * * /sbin/iptables -L >> /tmp/iptables.tmp.log
It'll grow rapidly, so don't leave it running too long!
 
  


Reply



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
problem loading iptables script on startup manicajk Linux - General 8 04-12-2009 11:37 AM
Iptables Startup Ionmag Linux - Security 5 04-11-2005 11:01 PM
Fedora 3, system hangs in startup. S-ATA problem? e99swa Fedora 1 04-02-2005 06:20 PM
autostart iptables script on system startup step Linux - Networking 2 03-21-2003 07:25 AM
X / Monitor problem at system startup dannyk Linux - Hardware 3 03-08-2003 05:51 PM

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

All times are GMT -5. The time now is 05:30 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