how to redirect packets with python?

how to redirect packets with python?

Postby Adel » Sat Jan 11, 2014 4:08 am

I want to write a Client program that reads all packets and redirect some of them to our proxy server. (to bypass internet filtering)

we have dedicated proxy servers and I want to redirect only "filtered web traffics" to them. the rest of the packets should send to the actual target. I want to read all packets and if they are filtered, then send them to our proxy servers and recieve the result from our proxy server. all of them must be encrypted.

I need TLS tunnels to do it. how can I do this?

I think "Twisted" is good for it and I don't know where to start?
Posts: 1
Joined: Sat Jan 11, 2014 4:01 am

Re: how to redirect packets with python?

Postby micseydel » Sat Jan 11, 2014 8:31 am

It sounds like you basically just want to take a standard proxy server written in Python, and modify it so that some of that traffic goes to another proxy. Is that about right?

If that sounds right, then it sounds like you'd just want to modify something like this.
Join the #python-forum IRC channel on for off-topic chat!

Please prefer not to PM members. The point of the forum is so that anyone can benefit. We don't want to help you over PMs/emails/Skype chats that others can't benefit from :)
User avatar
Posts: 2904
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Return to Networking

Who is online

Users browsing this forum: No registered users and 3 guests