D
D
Decepticon2015-07-09 23:40:41
linux
Decepticon, 2015-07-09 23:40:41

How to modify outgoing TCP packets?

Hello,
my task is to create software that allows you to modify the optional fields of TCP headers of packets outgoing from any network interface of the server (Linux), and also be able to read these fields from incoming packets.
The problem is that I have never encountered such tasks and have no idea how packages are processed in Linux and so on. I would like not to interrupt the whole theory. Perhaps, tell me about what to read more specifically on the specifics of the task?
I would like to solve the problem in something other than C ++, just for the sake of changing the context.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ergil Osin, 2015-07-10
@Ernillew

iptables -t mangle
man

S
Sergey, 2015-07-10
@edinorog

I would like to solve the problem in something other than C ++, just for the sake of changing the context.

and what does this have to do with it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question