Help me get started (traffic manipulation)

My main goal is to create an advanced program for managing packets that are routed on my network through a router. Let my program have full control over the router. Set the download / upload speed to my inputs, apply the effect to certain devices inside my network. Block downloading or traffic loading. Set a second delay for the download or download speed. Specify% loss packets and the list goes on.

The problem is that I do not know where to start. I know most languages ​​at the most basic level. I would like to create this program in C, C ++ or C #, but I don’t know yet. What else do I need to know before creating this program? Winsock or something else? Winpcap API?

This goal is my motivation to learn programming to the extreme, and I really look forward to it.

Thanks in advance!

+5
source share
4 answers

Hmmm, I think you would like to look at pcap (?): Pcap

+1
source

Departure:

http://beej.us/guide/bgnet/output/html/multipage/index.html

'Beej Network Programming Guide Using Internet Sockets

Everything you may need to know about socket programming for capture and manipulation.

If I were you, I would write it in C, I am writing a similar project at the moment in C ++, and this is hell, but to the end, to stop and start again.

Hope this helps.

+1

, , , .

, IPTABLES.

0

Desktop Windows, Windows Server, . libpcap , , . , Wireshark, , . , , NetFilter/IPTables Linux . - OpenWRT Linux-, Desktop Linux, , . NetFilter QUEUE IPTables ( ) . .

http://www.netfilter.org/projects/libnetfilter_queue/

0
source

All Articles