Find the answer to your Linux question:
Results 1 to 3 of 3
I was wondering if we can drop network packet by python. I really have no clue about how to do it. One of my friend suggested me to learn about ...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    12

    python : Dropping Network Packet

    I was wondering if we can drop network packet by python. I really have no clue about how to do it. One of my friend suggested me to learn about how iptables works, but I don't think it'll worth.

    Last time I tried python, and succeeded in capturing network packet with pycap. This was extremely easy, compared to libpcap (gcc). Now I wonder if we can drop the packet that has been read with the same way, or is there any other way?

    Please tell me if you know how to do it .


    Thanks b4

  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Location
    Camp Pendleton
    Posts
    55
    Looks like this may work.

    freshmeat.net: Project details for python-iptables

    or maybe this:
    About a python module (iptables)

    But they look like they assume a knowledge of iptables...

  3. #3
    Just Joined!
    Join Date
    Apr 2007
    Posts
    12

    thanx, I'll try it

    Er, it seems I still have to learn iptables after all.
    But thanks a lot, I'll try it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...