Пример #1
0
 private void PermitTrafficFromNetworkInterface(string id, uint weight)
 {
     _ipLayer.ApplyToIpv4(layer =>
     {
         _sublayer.CreateNetInterfaceFilter(
             new DisplayData("ProtonVPN permit OpenVPN", "Permits tap adapter traffic"),
             Action.SoftPermit,
             layer,
             weight,
             id);
     });
 }
Пример #2
0
        private void PermitFromNetworkInterface(string id, uint weight)
        {
            _ipLayer.ApplyToIpv4(layer =>
            {
                _baseProtectionFilters.Add(_sublayer.CreateNetInterfaceFilter(
                                               new DisplayData("ProtonVPN permit VPN tunnel", "Permit TAP adapter traffic"),
                                               Action.SoftPermit,
                                               layer,
                                               weight,
                                               id));
            });

            _ipLayer.ApplyToIpv6(layer =>
            {
                _baseProtectionFilters.Add(_sublayer.CreateNetInterfaceFilter(
                                               new DisplayData("ProtonVPN permit VPN tunnel", "Permit TAP adapter traffic"),
                                               Action.SoftPermit,
                                               layer,
                                               weight,
                                               id));
            });
        }