portsentry - KILL_ROUTE question
Hello,
my portsentry`s default dropping rule is KILL_ROUTE="iptables -I INPUT -s $TARGET$ -j DROP" and it works fine but... Since I dont use iptables-save/restore options (iptables rules are loaded from file) I would like to save portsenty`s dropping rules into a txt file. I thougt it might be something like: KILL_ROUTE="iptables -I INPUT -s $TARGET$ -j DROP >> /etc/rc.d/rc.masq_denied" but the new rule is not being added into the file. Any hints? |
Use the custom command an echo/logger the line.
|
Thank you for your input.
Finally i tested below line and it seems it works ok. KILL_ROUTE="iptables -I INPUT -s $TARGET$ -j DROP | echo 'iptables -I INPUT -s $TARGET$ -j DROP' >> /etc/rc.d/rc.masq_denied" |
Excellent. Only make it use a semicolon instead of a pipe sign.
|
Do you mean | should be replaced with ; ?
|
Uhuh.
|
All times are GMT -5. The time now is 02:15 AM. |