pytunnel 0.2 released

john pyguy30 at yahoo.com
Fri Aug 1 19:56:55 EDT 2003


Pytunnel has been updated.

It now has the ability to act as a standalone tunnelling server.
It is typically useful for tunneling things like ssl through a proxy.

The library is still being worked on but you should find it useful.

You can find it at:

http://savannah.nongnu.org/download/pytunnel/pytunnel.py

Examples:
Standalone mode:
  1)Setup tunnel w/defaults:
    ./pytunnel.py --proxy_host phost --host login.yahoo.com
   2)It returns a port to standard output that it started on. 

Use as a Library:
    1)define your function, to use pytunnel supplied ip address and port
        def tunnel_this(ip='',port=0):
          conn = httplib.HTTPSConnection(ip,port=port)
          conn.putrequest('GET', '/').endheaders()
          response = conn.getresponse()
    2)Build the tunnel       
      tunnel=pytunnel.build(host=login.yahoo.com,\
            proxy_host=phost,proxy_user=u,proxy_pass=p,timeout=0.5)
      tunnel.run(tunnel_this)




More information about the Python-list mailing list