Пример #1
0
 public PumpOut(NatSpec spec) : base(
         "loopback and ip.DstAddr == 127.255.0.1",
         IPAddress.Parse("192.168.127.1"),
         IPAddress.Parse("192.168.127.2"),
         WinDivertDirection.Outbound,
         false)
 {
 }
Пример #2
0
 public PumpIn(NatSpec spec) : base(
         $"ip and ifIdx == {spec.FindInterfaceIndex()} and inbound and ip.DstAddr == 192.168.127.1",
         IPAddress.Parse("127.255.0.1"),
         IPAddress.Parse("127.0.0.1"),
         WinDivertDirection.Outbound,
         true)
 {
 }