Example #1
0
 public void AddRule()
 {
     using (var client = _system.GetTableAdapter(Chain.IpVersion))
     {
         AddRule(client);
     }
 }
Example #2
0
 public void AddRule()
 {
     if (Chain == null)
     {
         throw new IpTablesNetException("Unknown Chain");
     }
     _system.GetTableAdapter(Chain.IpVersion).AddRule(this);
 }
Example #3
0
        public void Sync(IEnumerable <IpTablesRule> with,
                         INetfilterSync <IpTablesRule> sync)
        {
            var tableAdapter = _system.GetTableAdapter(_ipVersion);

            tableAdapter.StartTransaction();

            SyncInternal(with, sync);

            tableAdapter.EndTransactionCommit();
        }