Jump to content

Python proxy (UDP/TCP) lib / server?

Joveice

Hello, I'm looking to make a simple python proxy (udp and tcp), with some basic block IP, Port and such. What lib can I use / guides? I have found really little on this :P

 

I found some basic TCP proxy server snippets, but I want one that supports UDP and TCP.

Back-end developer, electronics "hacker"

Link to comment
Share on other sites

Link to post
Share on other sites

Don't try to accept both UDP and TCP with the same proxy. You should make two different processes listening on different ports, one for UDP and one for TCP.

 

 

For TCP I recommend using Listener and Client from multiprocessing.connection. For UDP it doesn't matter, it's a bad protocol anyway and the implementation is incredibly simple.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×