Is it a good idea to put all rules in one single .sh file?So when I want to make some changes, I will edit this file, and start/restart it. File will begin with something like:
And one more question: my ipfw restricts all connections by default. I have added 200-300 rules. What will happen if role 300 is
and I start/restart this .sh file? Will be packets lost (.sh file start with flush) or this delete/add is fast and all will be fine?
Thanks
Code:
#!/bin/sh
/sbin/ipfw -q -f flush
/sbin/ipfw -q -f resetlog
/sbin/ipfw -q -f zero
And one more question: my ipfw restricts all connections by default. I have added 200-300 rules. What will happen if role 300 is
Code:
allow all from any to 192.168.1.20
Thanks