What I like to do is make an rc.firewall script that has all my firewall
rules in it.  I put this file in /etc/rc.d and run it from rc.local.  Doing
it this way will insure that your firewall script will run everytime your
machine boots.

There are better ways of doing this, but this is the best generic approach.

Ben Vaughan
Systems Engineer, Engineering Computing Support Services
210 Marston 515 294-1629, Iowa State University
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-----Original Message-----
From: Nahual Guerrero [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 03, 2001 8:50 PM
To: [EMAIL PROTECTED]
Subject: How to iptables.


        Hi everyone.
I've been using linux for 6 months. As in windows all the firewall rules 
could easily be established and authomatized , i found myself in trouble
when 
I tried to do this in my linux box. My first instinct was to ask other 
friends that often use iptables. They told me to type the typical command 
iptables -A INPUT -j REJECT -p tcp -s ! 127.0.0.0/255.255.255.0 
--destination-port xxxxx.(and this helped me to find out how does a firewall

block requests or wathever) As my skills where growning and my knowledge too

, I wandered how to authomatize this process. 
I first tried to look in the manuals when this trouble appeared , but with
no 
success. So i was wondering if someone could give me a clue to solve it up. 
Anyway thank everyone , and dont blame me for my english... 

Reply via email to