private NfTablesRule CastRule(INetfilterRule rule)
        {
            NfTablesRule castRule = rule as NfTablesRule;

            if (castRule == null)
            {
                throw new IpTablesNetException("Invalid rule type, not nftables");
            }

            return(castRule);
        }
Exemplo n.º 2
0
 public override void AddRule(NfTablesRule rule)
 {
     throw new NotImplementedException();
 }
 public abstract void AddRule(NfTablesRule rule);
 public abstract void ReplaceRule(NfTablesRule rule);
 public abstract void InsertRule(NfTablesRule rule);
 public abstract void DeleteRule(NfTablesRule rule);
 public override void AddRule(NfTablesRule rule)
 {
     throw new NotImplementedException();
 }
 public abstract void AddRule(NfTablesRule rule);
 public abstract void ReplaceRule(NfTablesRule rule);
 public abstract void InsertRule(NfTablesRule rule);
 public abstract void DeleteRule(NfTablesRule rule);