Here's what I'd like to do.
In my rule file (which I use with iptables-restore) I have (with limits removed):
-4 -A LOGDROP -j LOG --log-prefix "ipt:4:drop "
-6 -A LOGDROP -j LOG --log-prefix "ipt:6:drop "
-A LOGDROP -j DROP
And I want to not repeat myself at the end of every chain. So it would be awesome if in the other chains I am jumping from I could already set strings such that I could assemble them in my LOGDROP chain into the log-prefix.
Is there a way to accomplish this?
Aucun commentaire:
Enregistrer un commentaire