Block ips from file

Home Forums Discussions Support Block ips from file

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5408
    Cybotx
    Participant

      Huge Thank you for Winpkfilter team ..
      I have installed winpkfilter runtime and tools..reading help file.
      I want to build simple application that can block ips from file.In file each ip line by line

      e.g. blockip.txt
      192.168.1.1
      127.0.0.1

      So far i understand few things from samples (filter program)…I have created my own sniffer using winsock …that dumps IPs , and also other extra info (like src address protocol)..

      How do i read packet …and then check for src or destination ips in IP header ..and compare them with given ips from text file..if ip found in text file..block it (drop all packets from that ip)…this is completely based on ip from text file.. 🙂

      #7177
      Cybotx
      Participant

        Hello ,
        I tried to run Packetsniffer from samples ..it is not printing ip address..it does print MAC ..How to get it to work ?? I tried on XP and Win 7 …
        Can anyone please help ?

        #7178
        Vadim Smirnov
        Keymaster

          To block IP addresses you should take PassThru sample as a base. MSVC sample of this utility demonstrates parsing packet for IP address.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.