Questions tagged [packet-mangling]
9 questions
14
votes
2 answers
Packet mangling utilities besides iptables?
I'm looking for a linux utility that can alter the payloads of network packets based on a set of rules. Ideally, I'd use iptables and the netfilter kernel module, but they don't support generic payload mangling: iptables will alter various header…

Adam Liss
- 47,594
- 12
- 108
- 150
10
votes
2 answers
Python port forwarding/multiplexing server
I would like to make server that listen on UDP port 162 (SNMP trap) and then forwards this traffic to multiple clients. Also important is that the source port & address stays same (address spoofing).
I guess that best tool for this would be Twisted…

Ib33X
- 6,764
- 4
- 28
- 30
4
votes
1 answer
Forcing packet loss
For testing purposes, to determine how a protocol implementation behaves in the presence of packet loss, I would like to force packet loss on one of my network devices. Specifically, I would like to be able to tune the packet loss anywhere between…

Confusion
- 16,256
- 8
- 46
- 71
4
votes
1 answer
Packet modification with netfilter queue?
I'm currently trying to use codes with libnetfilter_queue in userspace to modify packets that were queued in the NFQUEUE target in iptables. However I have little idea as to how to go about doing it.
I have set it to copy the packet with…

user849336
- 51
- 1
- 4
2
votes
2 answers
Library to Perform Link-Layer Packet Modification
Is there a library out there that will allow me to perform link-layer packet modification for both incoming and outgoing packets?
Basically I want to do some transformations to a packet (for eg. changing IP payload) based on incoming MAC address, IP…

TripShock
- 4,081
- 5
- 30
- 39
1
vote
0 answers
Can Winsock LSP on a router modify forwarded packets?
If a Windows machine acts like a router (gateway) for others, will Winsock LSP filters that are installed on it be able to capture/mangle traffic of those machines?
If no, which technologies are there for this?

hamstergene
- 24,039
- 5
- 57
- 72
1
vote
1 answer
LSP packet modify
anybody care to share some insights on how to use LSP for packet modifying ?
I am using the non IFS subtype and I can see how (pseudo?) packets first enter WSPRecv. But how do I modify them ? My inquiry is about one single HTTP response that causes…

kellogs
- 2,837
- 3
- 38
- 51
0
votes
2 answers
netfilter_queue ipv4 optional header removal
I'm implementing netfilter_queue-based user program that deletes ipv4 optional header 'Time Stamp'
ping works well with this program, because it uses ICMP transmission.
But TCP-based applications doesn't work. I've checked it with wireshark, and…

CStriker
- 1
- 2
0
votes
4 answers
Issue reading packets from a pcap file. dpkt module. What gives?
I am running the following test script to try to read packets from a sample .pcap file I have downloaded. It won't seem to run. I have all of the modules, but no examples seem to be running.
import socket
import dpkt
import sys
pcapReader =…

Chris
- 21,549
- 25
- 71
- 99