LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-21-2003, 02:25 AM   #1
step
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat 8
Posts: 4

Rep: Reputation: 0
autostart iptables script on system startup


How to autostart an iptables script on system startup? I tried putting the path of the script in /etc/rc.d/rc.local and found that it doesn't get executed on system startup.

Is there any other tools i can use for checking the vulnerability of my system?

Where is the location of the iptables log files? is there any tools to analyst the log?

Any insights are very much appreciated.

Thanks..
 
Old 03-21-2003, 04:09 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
put it in /etc/rc.local - this is exected at every bootup.

A lot of tools are available:

nmap (nmapfe - gui based)
snort

or google around for 'port scanners'.

u can find out some iptables status under /proc (yah, it's somewhere there) but i normally include the logging feature in the iptables ruleset with something like this:

iptables -A INPUT -j LOG --log-prefix "INPUT_DROP: "
iptables -A OUTPUT -j LOG --log-prefix "OUTPUT_DROP: "

this will then visible via /var/log/messages file.

hth.
 
Old 03-21-2003, 07:25 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You also might want to make sure that your firewall script is executable because having ./path/to/firewall/firewall.script in your rc.local should work. Personally, I've got a similar statement in my rc.M so that the iptables script runs before the network card gets an IP address.
 
  


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
problem loading iptables script on startup manicajk Linux - General 8 04-12-2009 11:37 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
IPtables startup script - Fedora Nickj Linux - Security 2 07-29-2005 08:45 AM
iptables startup script vishamr2000 Linux - Security 3 04-29-2005 08:21 AM
iptables startup script mushmaster Linux - General 12 02-25-2005 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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