dont loose packages

O

Oguz Yarimtepe

Hi,

I am trying to write a program that will work on a machine which is
between a client and a server. What i want is to simulate the bridging
process. So the program should take the packages and able to send them
to the other interface. I dont want to loose package and i want
efficiency. I tried to write a program in a multithreaded way but i
couldnt get an effciency. I used scapy and its sniff method to sniff
packages.

I am not sure the right way to solve the problem with Python. I will be
happy if you help me with your ideas?
 
B

Bjoern Schliessmann

Oguz said:
I am trying to write a program that will work on a machine which
is between a client and a server. What i want is to simulate the
bridging process. So the program should take the packages and able
to send them to the other interface. I dont want to loose package
and i want efficiency.

Okay, you just want to simulate? For efficiency, you'd best use
kernel packet filtering, e. g. netfilter (for GNU/Linux).
I tried to write a program in a multithreaded way

Why? There isn't even any concurrency, just reading and writing
packets in a linear fashion.
I am not sure the right way to solve the problem with Python. I
will be happy if you help me with your ideas?

I think the most direct way would be using raw sockets. You could
need to have root/administrator privileges.

Regards,


Björn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top