Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39435 > unrolled thread
| Started by | Luca Bongiorni <bongio87@gmail.com> |
|---|---|
| First post | 2013-02-21 07:24 -0800 |
| Last post | 2013-02-21 17:47 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.python
Transparent Proxy and Redirecting Sockets Luca Bongiorni <bongio87@gmail.com> - 2013-02-21 07:24 -0800
Re: Transparent Proxy and Redirecting Sockets Rodrick Brown <rodrick.brown@gmail.com> - 2013-02-21 10:39 -0500
Re: Transparent Proxy and Redirecting Sockets Luca Bongiorni <bongio87@gmail.com> - 2013-02-21 17:47 +0200
| From | Luca Bongiorni <bongio87@gmail.com> |
|---|---|
| Date | 2013-02-21 07:24 -0800 |
| Subject | Transparent Proxy and Redirecting Sockets |
| Message-ID | <d14ab355-a134-405c-ada4-9ae64d7a8aac@googlegroups.com> |
Hi all,
Around I have found plenty useful sources about TCP transparent proxies. However I am still missing how to make socket redirection.
What I would like to do is:
host_A <--> PROXY <--> host_B
^
|
host_C <------
At the beginning the proxy is simply forwarding the data between A and B.
Subsequently, when a parser catches the right pattern, the proxy quit the communication between A and B and redirect all the traffic to the host_C.
I would be pleased if someone would suggest me some resources or hints.
Thank you :)
Cheers,
Luca
[toc] | [next] | [standalone]
| From | Rodrick Brown <rodrick.brown@gmail.com> |
|---|---|
| Date | 2013-02-21 10:39 -0500 |
| Message-ID | <mailman.2176.1361461192.2939.python-list@python.org> |
| In reply to | #39435 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, Feb 21, 2013 at 10:24 AM, Luca Bongiorni <bongio87@gmail.com> wrote: > Hi all, > Around I have found plenty useful sources about TCP transparent proxies. > However I am still missing how to make socket redirection. > > What I would like to do is: > > host_A <--> PROXY <--> host_B > ^ > | > host_C <------ > > At the beginning the proxy is simply forwarding the data between A and B. > Subsequently, when a parser catches the right pattern, the proxy quit the > communication between A and B and redirect all the traffic to the host_C. > > I would be pleased if someone would suggest me some resources or hints. > > Are you looking for a Python way of doing this? I would highly recommend taking a look at ha-proxy as its very robust, simple and fast. If you're looking to implement this in Python code you may want to use a framework like Twisted - http://twistedmatrix.com/trac/wiki/TwistedProject Twisted provides many functionality that can leverage to accomplish this task. > Thank you :) > Cheers, > Luca > > -- > http://mail.python.org/mailman/listinfo/python-list >
[toc] | [prev] | [next] | [standalone]
| From | Luca Bongiorni <bongio87@gmail.com> |
|---|---|
| Date | 2013-02-21 17:47 +0200 |
| Message-ID | <mailman.2177.1361461659.2939.python-list@python.org> |
| In reply to | #39435 |
[Multipart message — attachments visible in raw view] — view raw
2013/2/21 Rodrick Brown <rodrick.brown@gmail.com> > On Thu, Feb 21, 2013 at 10:24 AM, Luca Bongiorni <bongio87@gmail.com>wrote: > >> Hi all, >> Around I have found plenty useful sources about TCP transparent proxies. >> However I am still missing how to make socket redirection. >> >> What I would like to do is: >> >> host_A <--> PROXY <--> host_B >> ^ >> | >> host_C <------ >> >> At the beginning the proxy is simply forwarding the data between A and B. >> Subsequently, when a parser catches the right pattern, the proxy quit the >> communication between A and B and redirect all the traffic to the host_C. >> >> I would be pleased if someone would suggest me some resources or hints. >> >> > Are you looking for a Python way of doing this? I would highly recommend > taking a look at ha-proxy as its very robust, simple and fast. If you're > looking to implement this in Python code you may want to use a framework > like Twisted - http://twistedmatrix.com/trac/wiki/TwistedProject > > Twisted provides many functionality that can leverage to accomplish this > task. > Thank you for the hint. I will start to delve on it right now. Cheers, Luca > > >> Thank you :) >> Cheers, >> Luca >> >> -- >> http://mail.python.org/mailman/listinfo/python-list >> > >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web