Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
|
|
09-30-2004, 08:46 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Posts: 3
Rep:
|
Priority: script to run on boot vs. "service iptables save"
Suppose you have the rc.firewall script setup to run on boot and you also have saved a set of rules using the ‘service iptables save’ command. Also, you have used ntsysv to enable iptables to initialize for runlevels 3, 4, and 5. If you now boot, which rule set will be in effect – the rc.firewall rule set or the /etc/sysconfig/iptables rule set?
Thanks guys...
|
|
|
09-30-2004, 08:53 PM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,364
|
I would say that which ever script runs last would be in effect.
|
|
|
09-30-2004, 08:56 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
I don't have the service thing-a-majick so I
wouldn't be able to test :) ... but why don't you
just do a "iptables-save > ~/test" and compare
that file to your saved rule-set? ;}
Cheers,
Tink
|
|
|
09-30-2004, 09:22 PM
|
#4
|
LQ Newbie
Registered: Sep 2004
Posts: 3
Original Poster
Rep:
|
Well most of the time in linux the first has the say in whats going on. When you write a script the first rules always win priority...
|
|
|
09-30-2004, 09:30 PM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Not if the second script flushes all rules ;)
... which is what most firewall scripts would
do, just to make sure.
Cheers,
Tink
|
|
|
09-30-2004, 10:53 PM
|
#6
|
LQ Newbie
Registered: Sep 2004
Posts: 3
Original Poster
Rep:
|
To flush I would have to run a flush command... Right? It's what I'm studying right now in my linux firewall class...
|
|
|
All times are GMT -5. The time now is 10:36 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
|
|