Permalink
Browse files

index: handle examples using /sbin/...

$ /sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
 nft add rule ip mangle PREROUTING ct state invalid counter drop

Example from: https://javapipe.com/iptables-ddos-protection
Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com>
  • Loading branch information...
scanf committed Mar 24, 2017
1 parent 652225a commit a6803530b3a72e8af44d15941a517fe03687675b
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -29,6 +29,7 @@ var convert = function(data, debug) {
for (var j in ignore_prefixes) {
var prefix = ignore_prefixes[j];
rule = rule.replace("/sbin/"+prefix, "");
rule = rule.replace(prefix+"-translate", "");
rule = rule.replace("# "+prefix, "");
rule = rule.replace(prefix, "");

0 comments on commit a680353

Please sign in to comment.