Vadim Smirnov

Forum Replies Created

Viewing 15 posts - 1,351 through 1,365 (of 1,496 total)
  • Author
    Posts
  • in reply to: Kerio & WinPKFilter? #5791
    Vadim Smirnov
    Keymaster

      1. I should to change these values (Group: “Streams Drivers” Start: 1) in the registry?

      Current WinpkFilter build installed with the settings above.

      3. If I later unistall Kerio, these values will not break work of the driver?

      No, there is no actual dependency from the Kerio driver.

      Driver can’t to detect network cards RTL8139/810X Family Sad
      (Windows XP SP2) – any comments?

      There are no problems with any network cards because the details of realization or each one are hidden inside NDIS. The problem you have expirienced rather specific to the software installed (firewalls, traffic counting monitoring tools and etc.). Also it may appear that the driver start load order is broken…

      in reply to: Kerio & WinPKFilter? #5789
      Vadim Smirnov
      Keymaster

        Can you give more info about it?
        How I must install driver?
        What version of Kerio has conflict with WinPKFilter?

        Actually the only requirement for WinpkFilter driver is starting between NDIS.SYS and TCPIP.SYS, but some hooking drivers(like the case with Kerio) may add additional conditions (like start before or after these drivers). In case with Kerio the conflict was detected when WinpkFilter driver strats before Kerio driver, but the problem gone if WinpkFilter starts after Kerio. Thats why we had changed load order to “Streams Drivers” Start:1. However, the situation may change from release to release (by the date of the post mentioned the problem was with the newest Kerio release, and there were no problems with previous releases).

        in reply to: Net Firewall Blocking Packets On A Low Security Interface #5787
        Vadim Smirnov
        Keymaster

          You can create PASS ALL rule for the interface you want to disable NeT Firewall at. This rule should have highest priority(an example ID=1).

          in reply to: Net Firewall Blocking Packets On A Low Security Interface #5784
          Vadim Smirnov
          Keymaster

            Could you please e-mail the screenshot of the log with blocked packets and the screenshot of the rules list to [email protected].

            in reply to: Net Firewall Blocking Packets On A Low Security Interface #5782
            Vadim Smirnov
            Keymaster

              By default only fragmented packets are dropped in low security mode, others are passed.

              What the reason is speciifed for blocked packets? Is it a rule or just General Security Policy?

              in reply to: how to implement firewall #5781
              Vadim Smirnov
              Keymaster

                You can start from PASSTHRU sample from WinpkFilter package and extend it to the firewall by adding packet analises routines.

                in reply to: Limiting… #5770
                Vadim Smirnov
                Keymaster

                  At the NDIS level program context is not available for the packet but you can limit bandwidth by IP-address/IP-protocol/port information. So, an example you can limit HTTP bandwidth and etc… In order to limit bandwidth for certain application you would also need application level filter (LSP, TDI filter) in order to match application name to IP/protocol/port information extracted from the packet at the NDIS level.

                  Hope it helps…

                  in reply to: I want to make RST Packet. #5769
                  Vadim Smirnov
                  Keymaster

                    WinPkFilter can send it ?

                    Yes

                    if WinPkFilter can send the packet, How can i send them ?

                    Using SendPacketToAdapter function.

                    in reply to: IP Checksum #5767
                    Vadim Smirnov
                    Keymaster

                      I am not touching the ACK/SYN at all, I am modifying the ip_len and the payload only. that too, if the packet has payload then only i am modifying the packet.

                      If you change length of the TCP packet then you should modify SYN/ACK fields.

                      Is there any way I can drop the old packet? How can I remove it from the local stack?

                      Actually you already drop the original packet, but system generates it again and again (because your invalid packet is droped by remote system).

                      in reply to: IP Checksum #5764
                      Vadim Smirnov
                      Keymaster

                        Probably you modify TCP packet and do this wrong. Destination system drops your packet and don’t send ACK for it, thats why your local stack sends packet again after some timeout.

                        in reply to: WinPKFilter: Double packets handling #5756
                        Vadim Smirnov
                        Keymaster

                          You can try using MSTCP_FLAG_LOOPBACK_BLOCK for the adapter you work over. It drops incoming packets if source MAC is the same as local MAC. Regretfully there is no way to prevent packet indication on NT4 at all.

                          in reply to: IP Checksum #5761
                          Vadim Smirnov
                          Keymaster

                            Personally I use this one

                            //
                            // Function recalculates IP checksum
                            //
                            VOID
                            RecalculateIPChecksum (
                            iphdr_ptr pIpHeader
                            )
                            {
                            unsigned short word16;
                            unsigned int sum = 0;
                            unsigned int i = 0;
                            PUCHAR buff;

                            // Initialize checksum to zero
                            pIpHeader->ip_sum = 0;
                            buff = (PUCHAR)pIpHeader;

                            // Calculate IP header checksum
                            for (i = 0; i < pIpHeader->ip_hl*sizeof(DWORD); i=i+2)
                            {
                            word16 = ((buff<<8)&0xFF00)+(buff[i+1]&0xFF);
                            sum = sum+word16;
                            }

                            // keep only the last 16 bits of the 32 bit calculated sum and add the carries
                            while (sum>>16)
                            sum = (sum & 0xFFFF)+(sum >> 16);

                            // Take the one’s complement of sum
                            sum = ~sum;

                            pIpHeader->ip_sum = htons((unsigned short) sum);
                            }

                            in reply to: WinPKFilter: Double packets handling #5753
                            Vadim Smirnov
                            Keymaster

                              #define NDIS_FLAGS_DONT_LOOPBACK 0x00000080

                              in reply to: WinPKFilter: Double packets handling #5750
                              Vadim Smirnov
                              Keymaster

                                NDIS_FLAGS_DONT_LOOPBACK and NDIS_FLAGS_SKIP_LOOPBACK prevents the packet from being indicated back. However, these flags are OS/NDIS specific. You can see some details here http://www.ndis.com/papers/loopback.htm

                                in reply to: rules #5757
                                Vadim Smirnov
                                Keymaster

                                  Could you please post the rule you have created and short description what it is supposed to do, probably there is something wrong with it.

                                Viewing 15 posts - 1,351 through 1,365 (of 1,496 total)