Re: ssl proxy server
On Tue, May 14, 2013 at 9:14 PM, Skip Montanaro s...@pobox.com wrote: I haven't touched the SpamBayes setup for the usenet-to-mail gateway in a long while. For whatever reason, this message was either held and then approved by the current list moderator(s), or (more likely) slipped through unscathed. No filter is perfect. Skip A filter on this guy altogether would be. He sent 24 messages there since February 25. All of them spam. -- Kwpolska http://kwpolska.tk | GPG KEY: 5EAAEA16 stop html mail| always bottom-post http://asciiribbon.org| http://caliburn.nl/topposting.html -- http://mail.python.org/mailman/listinfo/python-list
Re: ssl proxy server
On Wed, May 15, 2013 at 1:58 PM, Chris “Kwpolska” Warrick kwpol...@gmail.com wrote: On Tue, May 14, 2013 at 9:14 PM, Skip Montanaro s...@pobox.com wrote: I haven't touched the SpamBayes setup for the usenet-to-mail gateway in a long while. For whatever reason, this message was either held and then approved by the current list moderator(s), or (more likely) slipped through unscathed. No filter is perfect. Skip A filter on this guy altogether would be. He sent 24 messages there since February 25. All of them spam. You can always set your own filter. I had been somewhat confused by this thread until I realized the initial message had been killed by a filter I set up a while back. -- http://mail.python.org/mailman/listinfo/python-list
ssl proxy server
ssl proxy server http://natigtas7ab.blogspot.com/2013/05/ssl-proxy-server.html -- http://mail.python.org/mailman/listinfo/python-list
Re: ssl proxy server
On Tue, May 14, 2013 at 2:34 PM, 23alagmy hossamala...@gmail.com wrote: ssl proxy server hxxp://natigtas7ab.blogspot.com/2013/05/ssl-proxy-server.html -- http://mail.python.org/mailman/listinfo/python-list I have been seeing those mails for a long time. Why didn’t anybody ban that guy? If it comes from Usenet (and headers say it does), and you can’t destroy stuff easily there, maybe just put a ban on the Mailman side of things, making the world much better for at least some people? -- http://mail.python.org/mailman/listinfo/python-list
Re: ssl proxy server
I haven't touched the SpamBayes setup for the usenet-to-mail gateway in a long while. For whatever reason, this message was either held and then approved by the current list moderator(s), or (more likely) slipped through unscathed. No filter is perfect. Skip On Tue, May 14, 2013 at 1:40 PM, Chris “Kwpolska” Warrick kwpol...@gmail.com wrote: On Tue, May 14, 2013 at 2:34 PM, 23alagmy hossamala...@gmail.com wrote: ssl proxy server hxxp://natigtas7ab.blogspot.com/2013/05/ssl-proxy-server.html -- http://mail.python.org/mailman/listinfo/python-list I have been seeing those mails for a long time. Why didn’t anybody ban that guy? If it comes from Usenet (and headers say it does), and you can’t destroy stuff easily there, maybe just put a ban on the Mailman side of things, making the world much better for at least some people? -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: python: HTTP connections through a proxy server requiring authentication
The shipped python library code does not work. See http://bugs.python.org/issue7291 for patches. Barry -- http://mail.python.org/mailman/listinfo/python-list
Re: python: HTTP connections through a proxy server requiring authentication
Hi , Thanks barry, I solved that issue. I reconfigured squid3 with ncsa_auth, now its working same python code. Earlier I used digest_pw_auth. Actually I am trying to fix an issue related to python boto API. Please check this post https://groups.google.com/forum/#!topic/boto-users/1qk6d7v2HpQ Regards Saju Madhavan +91 09535134654 On Tue, Jan 29, 2013 at 5:01 AM, Barry Scott ba...@barrys-emacs.org wrote: The shipped python library code does not work. See http://bugs.python.org/issue7291 for patches. Barry -- http://mail.python.org/mailman/listinfo/python-list
python: HTTP connections through a proxy server requiring authentication
Hi, I followed http://dabase.com/blog/Minimal_squid3_proxy_configuration/ to setup proxy server. I tested my proxy server with firefox with IP:127.0.0.1 and Port:3128 and it working (asking for proxy username and password). But, i could not make http connection through proxy server requiring authentication using following python code.. ## Python code ## import urllib2 proxy = urllib2.ProxyHandler({'http':'http://saju:123@saju-Inspiron-N5010:3128'}) opener = urllib2.build_opener(proxy, urllib2.HTTPHandler) urllib2.install_opener(opener) conn = urllib2.urlopen('http://python.org') return_str = conn.read() print ===return_st, return_str ERROR Traceback (most recent call last): File my_proxy.py, line 6, in module conn = urllib2.urlopen('http://python.org') File /usr/lib/python2.7/urllib2.py, line 127, in urlopen return _opener.open(url, data, timeout) File /usr/lib/python2.7/urllib2.py, line 407, in open response = meth(req, response) File /usr/lib/python2.7/urllib2.py, line 520, in http_response 'http', request, response, code, msg, hdrs) File /usr/lib/python2.7/urllib2.py, line 445, in error return self._call_chain(*args) File /usr/lib/python2.7/urllib2.py, line 379, in _call_chain result = func(*args) File /usr/lib/python2.7/urllib2.py, line 528, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required ## Proxy Server Settings ## sudo vim /etc/squid3/squid.conf --- auth_param digest program /usr/lib/squid3/digest_pw_auth -c /etc/squid3/passwords auth_param digest realm saju-Inspiron-N5010 acl authenticated proxy_auth REQUIRED http_access allow authenticated http_port 3128 Setting up user -- htdigest -c /etc/squid3/passwords saju-Inspiron-N5010 saju == -- http://mail.python.org/mailman/listinfo/python-list
Re: python: HTTP connections through a proxy server requiring authentication
Hi, /etc/squid3/squid.conf --- saju@saju-Inspiron-N5010:~$ cat squid.conf | grep ^[^#] auth_param digest program /usr/lib/squid3/digest_pw_auth -c /etc/squid3/passwords auth_param digest realm saju-Inspiron-N5010 acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 acl authenticated proxy_auth REQUIRED acl SSL_ports port 443 acl Safe_ports port 80# http acl Safe_ports port 21# ftp acl Safe_ports port 443# https acl Safe_ports port 70# gopher acl Safe_ports port 210# wais acl Safe_ports port 1025-65535# unregistered ports acl Safe_ports port 280# http-mgmt acl Safe_ports port 488# gss-http acl Safe_ports port 591# filemaker acl Safe_ports port 777# multiling http acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow authenticated http_access deny all http_port 3128 coredump_dir /var/spool/squid3 refresh_pattern ^ftp:144020%10080 refresh_pattern ^gopher:14400%1440 refresh_pattern -i (/cgi-bin/|\?) 00%0 refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 refresh_pattern .020%4320 saju@saju-Inspiron-N5010:~$ Thanks, -- http://mail.python.org/mailman/listinfo/python-list
Uploading files to an an FTP site through a proxy server which requires authentication
I would like to upload files to a ftp site, but can't seem to get through our proxy server, which requires authentication. How can one do this in Python (I use 2.7, but am more than happy to use 3.2 rc2) Thanks in advance Thomas Philips -- http://mail.python.org/mailman/listinfo/python-list
use smtpd as a gmail proxy server
A bit of googling reveals that it's possible to use smtplib to do mailing using gmail. Is there a way to use smtpd as a proxy server with gmail. This apparently works with smtplib, mailServer = smtplib.SMTP('smtp.gmail.com', 587) mailServer.ehlo() mailServer.starttls() mailServer.ehlo() mailServer.login(gmailUser, gmailPassword) mailServer.sendmail(gmailUser, recipient, msg) mailServer.close() but I'm trying to test an application that will use its host's mta eventually to send mail so I need to set up a local proxy that can log in to gmail. Is there an easy way forward with smtpd? Looking in the PureProxy code it seems that I need to mess with the _deliver method to use the above approach, but there isn't any convenient hook. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list
[issue872815] How to pass the proxy server use socket
Changes by Daniel Diniz aja...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue872815 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue872815] How to pass the proxy server use socket
Changes by Daniel Diniz aja...@gmail.com: -- priority: normal - low status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue872815 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue872815] How to pass the proxy server use socket
Daniel Diniz aja...@gmail.com added the comment: I don't understand the problem. I will close this one if no opposition arises. -- components: +Library (Lib) -None nosy: +ajaksu2 type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue872815 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: Proxy server?
Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gary schrieb: Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You can't make any TCP/IP communication run through a proxy, unless it's transparent. Thanks for all the info. I'm puzzled though that a such a transaction isn't possible by rewriting the headers. So client X connects to my PS, which passes on the data to the target but with the header changed to indicate the PS as the original source. The intended target responds to the PS, this is then resent to client X with the header modified so that the transaction appears transparent. So it's *effectively* transparent targetclient but non-transparent clienttarget, if you see what I mean. Can you please explain why this wouldn't work? Thanks, Gary -- http://mail.python.org/mailman/listinfo/python-list
Re: Proxy server?
Am Mittwoch, 30. Juli 2008 13:48:08 schrieb Gary: Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gary schrieb: Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You can't make any TCP/IP communication run through a proxy, unless it's transparent. Thanks for all the info. This is not entirely true. There are libc-plugins (i.e. LD_PRELOAD hacks) which use SOCKS (which is a generic proxying protocol for [TCP/]IP) to redirect all locally originating TCP/IP traffic _which is managed through the socket interface of the libc_ in the application that you applied the LD_PRELOAD hack to through a specified SOCKS-proxy (this should capture pretty much everything, except for communication originating in the *nix-kernel itself). I seem to recall that something similar exists for WinSock, but I wouldn't know for sure. Check the web for documentation on setting up a SOCKS proxy, and for the respective libc-plugins or WinSock SOCKS hack. If you cannot make the user use SOCKS through a means like this (in which case there has to be no application support) or by instructing a specific application to use a SOCKS proxy directly (which all browsers can out of the box AFAIK), and you don't have the possibility to put yourself somewhere in the middle by means of a transparent proxy (i.e., a firewall applicance which does this; I seem to recall that there was some FreeBSD-based software which basically did just this kind of transparent proxying for a network), you're out of luck, just like Diez said. -- Heiko Wundram -- http://mail.python.org/mailman/listinfo/python-list
Proxy server?
I've seen examples for HTTP and FTP use, but not for simply any TCP data on any port, which is what I require. Can anyone please point me in the right direction? TIA -- http://mail.python.org/mailman/listinfo/python-list
Re: Proxy server?
Gary wrote: I've seen examples for HTTP and FTP use, but not for simply any TCP data on any port, which is what I require. Can anyone please point me in the right direction? For what? How to use such a thing, a transparent proxy? There is nothing to it, just plug it between your router and the internet, that's all. Or do you want to know how to capture all traffic using some other process, for analysis? Use wireshark. Diez -- http://mail.python.org/mailman/listinfo/python-list
Re: Proxy server?
Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gary wrote: For what? A non-transparent proxy, for anonymity purposes only. -- http://mail.python.org/mailman/listinfo/python-list
Re: Proxy server?
Gary schrieb: Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gary wrote: For what? A non-transparent proxy, for anonymity purposes only. You can't make any TCP/IP communication run through a proxy, unless it's transparent. HTTP (and maybe FTP, I personally don't know) have that built-in, and of course anything that builds upon them (SOAP, XMLRPC). But e.g. CORBA or bittorrent or don't support that. You can try and install TOR or use it. It is a transparent proxy: http://wiki.noreply.org/noreply/TheOnionRouter/TransparentProxy Diez -- http://mail.python.org/mailman/listinfo/python-list
Re: imap4_SSL from behind a proxy server
Diez B. Roggisch wrote: Dave schrieb: I'm trying write some Python code to connect to Gmail from work, where I need to direct all non-HTTP traffic through a proxy server. AFAIK that's simply not possible. It's possible. Proxying that is not transparent is only (for practical matters, there might be esoteric protocols that do that as well) defined for HTTP. Your mixing terms here. So I need to direct all non-HTTP traffic through a proxy server. does not make much sense - at least to me. The fact you don't know about it does not mean it does not make much sense. ;-) E.g. when using HTTPS the proxy does not see any HTTP traffic except the HTTP CONNECT going to the proxy itself. Do you have an example of an application (e.g. mailclient or such) that *does* support the above scenario? Widely used: OpenVPN, Netscape Communicator 4.x (at least for NNTPS - 10 years ago) etc. The key-word to search for is HTTP CONNECT method. I'd try to implement a file-like object for it and pass that into imap module. But the proxy configuration may disallow it. Firewall admins also know the commonly used freemail services. Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list
imap4_SSL from behind a proxy server
First to admit I'm a newbie at Python, IMAP, or SSL. And it's been a long time since I've posted anything to a Usenet group. But I've spent countless hours spinning my wheels on this one, so I thought I'd ask for help. I'm trying write some Python code to connect to Gmail from work, where I need to direct all non-HTTP traffic through a proxy server. Can anyone provide syntax which would redirect the imap4_SSL method through a proxy server:port? I suspect there are some environment variables which, when set, will do this very easily and elegantly. I also suspect there is a really complicated way to 'wrap' the imap classes so as to force requests to go through a proxy which, as a newbie, I am trying to avoid. FYI, I'm currently running Python 2.5.2. via IDLE on Windows XP. But when this project is done, I will move it to Linux. Thanks for any help. Dave fkaprince, at Gmail, dot-com -- http://mail.python.org/mailman/listinfo/python-list
Re: imap4_SSL from behind a proxy server
Dave schrieb: First to admit I'm a newbie at Python, IMAP, or SSL. And it's been a long time since I've posted anything to a Usenet group. But I've spent countless hours spinning my wheels on this one, so I thought I'd ask for help. I'm trying write some Python code to connect to Gmail from work, where I need to direct all non-HTTP traffic through a proxy server. Can anyone provide syntax which would redirect the imap4_SSL method through a proxy server:port? I suspect there are some environment variables which, when set, will do this very easily and elegantly. I also suspect there is a really complicated way to 'wrap' the imap classes so as to force requests to go through a proxy which, as a newbie, I am trying to avoid. FYI, I'm currently running Python 2.5.2. via IDLE on Windows XP. But when this project is done, I will move it to Linux. AFAIK that's simply not possible. Proxying that is not transparent is only (for practical matters, there might be esoteric protocols that do that as well) defined for HTTP. So I need to direct all non-HTTP traffic through a proxy server. does not make much sense - at least to me. In other words: there is no such thing as general proxying, and thus no support in any library e.g. imaplib or such. Do you have an example of an application (e.g. mailclient or such) that *does* support the above scenario? Diez -- http://mail.python.org/mailman/listinfo/python-list
HTTP proxy server for Motorola E815 phone in Python
Hi all, I've recently written an HTTP proxy server for the Motorola E815 cell phone, based on Suzuki Hisao's Tiny HTTP Proxy (http:// www.okisoft.co.jp/esc/python/proxy/). This cell phone allows free Internet access if you change the default proxy server, but it has a severely buggy HTTP client implementation which will freeze if there's no Content-Length header. Basically, it's impossible to read normal web pages without some massaging of the headers. So my proxy adds the correct Content-Length header and tweaks the response in a couple of other ways. It works great now, you can get the code from: http://tonquil.homeip.net/~dlenski/cellphoneproxy/ I've MIT licensed it. It works fine as a proxy for a normal web browser too! One of the things I had trouble with was getting decent speed out of this proxy. The original Tiny HTTP Proxy didn't support persistent connections... which seriously slows down web browsing with a proxy, since it essentially DOUBLES the number of TCP connections that need to be made for each page access. So my proxy *does* support persistent connections, using the standard Connection or non-standard Proxy-Connection headers to determine whether to keep the connection alive or not. It's still not perfect though... apparently sometimes a web browser will SAY that it wants to keep a connection alive, and then just drop it. The proxy normally runs in a multi-threaded mode, and it counts the number of times that each connection is reused, printing this when the RequestHandler.finish() method is eventually called. If I force the proxy to run in a single thread, and use it as a proxy for Firefox, it will freeze up after a few page requests... the proxy will wait around for a new request on the same socket that never comes. So, my question is... is there any way to improve on this? Is there a way to make BaseHTTPRequestHandler detect when its connection has been closed by the peer without waiting for a long timeout? Is there a way to get the browser to always reuse a connection when it says it's going to? Any advice on improving the code is appreciated! Thanks, Dan Lenski -- http://mail.python.org/mailman/listinfo/python-list