On 10/28/2009 02:24:12 PM, Lucas Mocellin wrote: > Hi all, > > briefly: I'm helping in the development of an educational software to > apply > online tests. The client will connect to the server through OpenVPN > to > perform the test. I would like to check if the OpenVPN port is alive > and > accepting connections (check if there is port filtering, and so on.. > ). > > I'm programming in python. > > Does someone know to achieve that? I'm trying to create a socket and > send > any message to the server, but no response, is there any kind of > "hello" or > something like this?
You could re-implement the beginning of the connection but why not simply use the subprocess module to run openvpn? You can see if it succeeds and if not you can capture output and have a real log from which the user (broadly speaking) can diagnose the problem. Karl <k...@meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein